Mark Chen / NU480_UART_9BIT
Revision:
8:716d4274f7b7
Parent:
7:af4ceb878eee
Child:
9:bd6af3d4c651
diff -r af4ceb878eee -r 716d4274f7b7 UART9BIT.h
--- a/UART9BIT.h	Fri Aug 23 19:05:10 2019 +0800
+++ b/UART9BIT.h	Mon Aug 26 13:33:10 2019 +0800
@@ -22,7 +22,7 @@
 
 namespace mbed {
 
-class UART9BIT :  public SerialBase 
+class UART9BIT :  public Serial 
 {
 
 public:
@@ -35,6 +35,8 @@
 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);
+uint16_t getu16(void);
+
 
 protected:
   bool Enable9Bit;