#include <otSerialThread.h>
Public Member Functions | |
otSerialThread () | |
void | init (U8 comPort, S32 baud=115200, U32 bufferSize=256, U8 eotChar=13, bool console=true) |
void | close () |
void | clear () |
U32 | count () |
bool | ready () |
void | read (U8 *dstBuffer) |
U8 | waitChar (S32 timeOut=-1) |
bool | getString (U8 *dstBuffer, U32 maxChars, S32 timeOut=-1) |
U8 | charAt (U32 pos) |
void | callBack (U8 rxedChar) |
|
Library that manages a serial line under interrupt. Once the buffer size and the terminator character value are established, the library manages the received messages by returning them as a string. |
|
|
|
Read a byte from the buffer
|
|
Clear ready flag |
|
Close the library and free all allocated memory |
|
Read received characters
|
|
Wait until a string as been received
|
|
Init the library
|
|
Read a message
|
|
Check if a new message is available
|
|
Wait until a character as been received
|