usb.h 392 B

123456789101112
  1. #ifndef MICROPY_INCLUDED_TEENSY_USB_H
  2. #define MICROPY_INCLUDED_TEENSY_USB_H
  3. bool usb_vcp_is_connected(void);
  4. bool usb_vcp_is_enabled(void);
  5. int usb_vcp_rx_num(void);
  6. int usb_vcp_recv_byte(uint8_t *ptr);
  7. void usb_vcp_send_str(const char* str);
  8. void usb_vcp_send_strn(const char* str, int len);
  9. void usb_vcp_send_strn_cooked(const char *str, int len);
  10. #endif // MICROPY_INCLUDED_TEENSY_USB_H