diff options
| author | hathach <[email protected]> | 2013-07-19 02:30:22 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-19 02:30:22 +0700 |
| commit | a522263a9d43679ea9ffa499c1ea0efba4a523ad (patch) | |
| tree | fef67ed8ab6eff8347e30fbe8b6ac7cbf82e173d /tinyusb/class/cdc_host.c | |
| parent | ce865721a56bade9a99661e425b9dd85d7510296 (diff) | |
add implementation for
- tusbh_cdc_rndis_is_mounted
- tusbh_cdc_rndis_get_mac_addr
Diffstat (limited to 'tinyusb/class/cdc_host.c')
| -rw-r--r-- | tinyusb/class/cdc_host.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tinyusb/class/cdc_host.c b/tinyusb/class/cdc_host.c index 5dd37810b..49899c63b 100644 --- a/tinyusb/class/cdc_host.c +++ b/tinyusb/class/cdc_host.c @@ -91,6 +91,11 @@ bool tusbh_cdc_serial_is_mounted(uint8_t dev_addr) (cdch_data[dev_addr-1].interface_protocol <= CDC_COMM_PROTOCOL_ATCOMMAND_CDMA); } +bool tusbh_cdc_rndis_is_mounted(uint8_t dev_addr) +{ + return tusbh_cdc_is_mounted(dev_addr) && cdch_data[dev_addr-1].is_rndis; +} + tusb_error_t tusbh_cdc_send(uint8_t dev_addr, void const * p_data, uint32_t length, bool is_notify) { ASSERT( tusbh_cdc_is_mounted(dev_addr), TUSB_ERROR_CDCH_DEVICE_NOT_MOUNTED); |
