UART
This module includes the platform abstraction for UART communication.
Summary
Functions |
|
---|---|
otPlatUartDisable(void)
|
Disable the UART.
|
otPlatUartEnable(void)
|
Enable the UART.
|
otPlatUartFlush(void)
|
Flush the outgoing transmit buffer and wait for the data to be sent.
|
otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength)
|
void
The UART driver calls this method to notify OpenThread that bytes have been received.
|
otPlatUartSend(const uint8_t *aBuf, uint16_t aBufLength)
|
Send bytes over the UART.
|
otPlatUartSendDone(void)
|
void
The UART driver calls this method to notify OpenThread that the requested bytes have been sent.
|
Functions
otPlatUartDisable
otError otPlatUartDisable( void )
Disable the UART.
Details | |||||
---|---|---|---|---|---|
Return Values |
|
otPlatUartEnable
otError otPlatUartEnable( void )
Enable the UART.
Details | |||||
---|---|---|---|---|---|
Return Values |
|
otPlatUartFlush
otError otPlatUartFlush( void )
Flush the outgoing transmit buffer and wait for the data to be sent.
This is called when the CLI UART interface has a full buffer but still wishes to send more data.
Details | |||||||
---|---|---|---|---|---|---|---|
Return Values |
|
otPlatUartReceived
void otPlatUartReceived( const uint8_t *aBuf, uint16_t aBufLength )
The UART driver calls this method to notify OpenThread that bytes have been received.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otPlatUartSend
otError otPlatUartSend( const uint8_t *aBuf, uint16_t aBufLength )
Send bytes over the UART.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otPlatUartSendDone
void otPlatUartSendDone( void )
The UART driver calls this method to notify OpenThread that the requested bytes have been sent.