Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: UART9BIT.h
- Revision:
- 7:af4ceb878eee
- Parent:
- 6:64f5dad70ee2
- Child:
- 8:716d4274f7b7
diff -r 64f5dad70ee2 -r af4ceb878eee UART9BIT.h
--- a/UART9BIT.h Wed Aug 21 16:27:30 2019 +0800
+++ b/UART9BIT.h Fri Aug 23 19:05:10 2019 +0800
@@ -31,9 +31,10 @@
void format(int bits = 9, Parity parity = UART9BIT::None, int stop_bits = 1);
void GetUartName(void);
+int GitRxDataLen(void);
int write(const uint16_t *buffer, int length, const event_callback_t &callback, int event = SERIAL_EVENT_TX_COMPLETE);
int read(uint16_t *buffer, int length, const event_callback_t &callback, int event = SERIAL_EVENT_RX_COMPLETE, unsigned char char_match = SERIAL_RESERVED_CHAR_MATCH);
-
+void SetRxDataLen(size_t len);
protected:
bool Enable9Bit;