vendor: Add tx callback
Other drivers already have notification about data sent. It allows batter control in application on vendor protocol level.
This commit is contained in:
2
src/class/vendor/vendor_device.h
vendored
2
src/class/vendor/vendor_device.h
vendored
@@ -71,6 +71,8 @@ static inline uint32_t tud_vendor_write_available (void);
|
||||
|
||||
// Invoked when received new data
|
||||
TU_ATTR_WEAK void tud_vendor_rx_cb(uint8_t itf);
|
||||
// Invoked when last rx transfer finished
|
||||
TU_ATTR_WEAK void tud_vendor_tx_cb(uint8_t itf, uint32_t sent_bytes);
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Inline Functions
|
||||
|
||||
Reference in New Issue
Block a user