diff options
| author | hathach <[email protected]> | 2013-07-02 16:41:13 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-02 16:41:13 +0700 |
| commit | 6ce90e2bd8d1599df22af8dc670d4187a1ec6dc5 (patch) | |
| tree | 65d8a8eb72322d5b09e35aa42ea5f05e4d2a5663 /tinyusb/class/cdc_host.h | |
| parent | 51f894b0bf31fd046cca6251679b188bed3e3024 (diff) | |
add tusbh_cdc_send, t usbh_cdc_receive
add cdc_serial_app for virtual com demo
Diffstat (limited to 'tinyusb/class/cdc_host.h')
| -rw-r--r-- | tinyusb/class/cdc_host.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/class/cdc_host.h b/tinyusb/class/cdc_host.h index 2b39a6fd7..fde2e2e11 100644 --- a/tinyusb/class/cdc_host.h +++ b/tinyusb/class/cdc_host.h @@ -57,12 +57,12 @@ //--------------------------------------------------------------------+ // APPLICATION PUBLIC API //--------------------------------------------------------------------+ -//bool tusbh_cdc_acm_is_mounted(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT; bool tusbh_cdc_serial_is_mounted(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT; bool tusbh_cdc_rndis_is_mounted(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT; -tusb_interface_status_t tusbh_cdc_send(void const * p_data, uint32_t length, bool is_notify); - +void tusbh_cdc_isr(uint8_t dev_addr, tusb_event_t event) ATTR_WEAK; +tusb_error_t tusbh_cdc_send(uint8_t dev_addr, void const * p_data, uint32_t length, bool is_notify); +tusb_error_t tusbh_cdc_receive(uint8_t dev_addr, void * p_buffer, uint32_t length, bool is_notify); //--------------------------------------------------------------------+ // USBH-CLASS API //--------------------------------------------------------------------+ |
