diff options
| author | hathach <[email protected]> | 2019-05-02 20:30:44 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-02 20:30:44 +0700 |
| commit | 867e69ed9d1ef44a7574ccf6543c8a46ef8d8e6c (patch) | |
| tree | 59b0e0aad89d7735585737be52fd2daffdbab5c0 /src/class/cdc/cdc_device.h | |
| parent | 2341ecb4188b1998e1e682a09e9b04570929a5a4 (diff) | |
| parent | 7e2088765daf15f59f43c9e7cffb46b9ae997e19 (diff) | |
Merge pull request #61 from hathach/develop
enhance HID, add HID out endpoint support
Diffstat (limited to 'src/class/cdc/cdc_device.h')
| -rw-r--r-- | src/class/cdc/cdc_device.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_device.h b/src/class/cdc/cdc_device.h index 6c59bac7a..18d6f842f 100644 --- a/src/class/cdc/cdc_device.h +++ b/src/class/cdc/cdc_device.h @@ -89,9 +89,17 @@ static inline bool tud_cdc_write_flush (void) //--------------------------------------------------------------------+
// APPLICATION CALLBACK API (WEAK is optional)
//--------------------------------------------------------------------+
+
+// Invoked when received new data
ATTR_WEAK void tud_cdc_rx_cb(uint8_t itf);
+
+// Invoked when received `wanted_char`
ATTR_WEAK void tud_cdc_rx_wanted_cb(uint8_t itf, char wanted_char);
+
+// Invoked when line state DTR & RTS are changed via SET_CONTROL_LINE_STATE
ATTR_WEAK void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts);
+
+// Invoked when line coding is change via SET_LINE_CODING
ATTR_WEAK void tud_cdc_line_coding_cb(uint8_t itf, cdc_line_coding_t const* p_line_coding);
/** @} */
|
