gpio_usb_uart.h 555 B

123456789101112131415161718
  1. #pragma once
  2. #include <gui/view.h>
  3. #include "../gpio_custom_event.h"
  4. #include "../usb_uart_bridge.h"
  5. typedef struct GpioUsbUart GpioUsbUart;
  6. typedef void (*GpioUsbUartCallback)(GpioCustomEvent event, void* context);
  7. GpioUsbUart* gpio_usb_uart_alloc();
  8. void gpio_usb_uart_free(GpioUsbUart* usb_uart);
  9. View* gpio_usb_uart_get_view(GpioUsbUart* usb_uart);
  10. void gpio_usb_uart_set_callback(GpioUsbUart* usb_uart, GpioUsbUartCallback callback, void* context);
  11. void gpio_usb_uart_update_state(GpioUsbUart* instance, UsbUartConfig* cfg, UsbUartState* st);