diff options
| author | hathach <[email protected]> | 2013-07-04 12:25:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-04 12:25:39 +0700 |
| commit | 391e132d6bf37bcbb4211729b3728a85c4f5d174 (patch) | |
| tree | d11a05b7682441fc9a5165138bb6e697f67781a7 /tinyusb/class/cdc_host.h | |
| parent | 8c0bc3871304201c2135504bbc18228de2e891d0 (diff) | |
no big deal, only rename tusb_std_request_t to tusb_control_request_t
Diffstat (limited to 'tinyusb/class/cdc_host.h')
| -rw-r--r-- | tinyusb/class/cdc_host.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tinyusb/class/cdc_host.h b/tinyusb/class/cdc_host.h index ac8cf7acb..1d852c4eb 100644 --- a/tinyusb/class/cdc_host.h +++ b/tinyusb/class/cdc_host.h @@ -68,11 +68,21 @@ bool tusbh_cdc_rndis_is_mounted(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RES 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); -//------------- Application Callback -------------// +//------------- CDC Application Callback -------------// void tusbh_cdc_mounted_cb(uint8_t dev_addr) ATTR_WEAK; void tusbh_cdc_unmounted_isr(uint8_t dev_addr) ATTR_WEAK; void tusbh_cdc_isr(uint8_t dev_addr, tusb_event_t event) ATTR_WEAK; void tusbh_cdc_xfer_isr(uint8_t dev_addr, tusb_event_t event, cdc_pipeid_t pipe_id, uint32_t xferred_bytes) ATTR_WEAK; + +//------------- RNDIS Application Callback (overshadow CDC callbacks) -------------// +#if TUSB_CFG_HOST_CDC_RNDIS + +void tusbh_cdc_rndis_mounted_cb(uint8_t dev_addr) ATTR_WEAK; +void tusbh_cdc_rndis_unmounted_isr(uint8_t dev_addr) ATTR_WEAK; + + +#endif + //--------------------------------------------------------------------+ // USBH-CLASS API //--------------------------------------------------------------------+ |
