USB device stack
Dependents: blinky_max32630fthr FTHR_USB_serial FTHR_OLED HSP_RPC_GUI_3_0_1 ... more
Fork of USBDevice by
Diff: USBSerial/USBCDC.h
- Revision:
- 15:849c0c0f2769
- Parent:
- 6:d0945750af57
- Child:
- 19:fcb63a105965
--- a/USBSerial/USBCDC.h Thu Sep 12 14:45:27 2013 +0100
+++ b/USBSerial/USBCDC.h Tue Nov 05 09:45:23 2013 +0000
@@ -99,9 +99,21 @@
* @returns true if successful
*/
bool readEP_NB(uint8_t * buffer, uint32_t * size);
+
+ /*
+ * Called by USBCallback_requestCompleted when CDC line coding is changed
+ * Warning: Called in ISR
+ *
+ * @param baud The baud rate
+ * @param bits The number of bits in a word (5-8)
+ * @param parity The parity
+ * @param stop The number of stop bits (1 or 2)
+ */
+ virtual void lineCodingChanged(int baud, int bits, int parity, int stop) {};
protected:
virtual bool USBCallback_request();
+ virtual void USBCallback_requestCompleted(uint8_t *buf, uint32_t length);
virtual bool USBCallback_setConfiguration(uint8_t configuration);
volatile bool terminal_connected;
