This module includes the platform abstraction for UART communication.
More...
This module includes the platform abstraction for UART communication.
ThreadError otPlatUartDisable |
( |
void |
| ) |
|
Disable the UART.
- Return values
-
::kThreadError_None | Successfully disabled the UART. |
::kThreadError_Failed | Failed to disable the UART. |
ThreadError otPlatUartEnable |
( |
void |
| ) |
|
Enable the UART.
- Return values
-
::kThreadError_None | Successfully enabled the UART. |
::kThreadError_Failed | Failed to enabled the UART. |
void otPlatUartReceived |
( |
const uint8_t * |
aBuf, |
|
|
uint16_t |
aBufLength |
|
) |
| |
The UART driver calls this method to notify OpenThread that bytes have been received.
- Parameters
-
[in] | aBuf | A pointer to the received bytes. |
[in] | aBufLength | The number of bytes received. |
ThreadError otPlatUartSend |
( |
const uint8_t * |
aBuf, |
|
|
uint16_t |
aBufLength |
|
) |
| |
Send bytes over the UART.
- Parameters
-
[in] | aBuf | A pointer to the data buffer. |
[in] | aBufLength | Number of bytes to transmit. |
- Return values
-
::kThreadError_None | Successfully started transmission. |
::kThreadError_Failed | Failed to start the transmission. |
void otPlatUartSendDone |
( |
void |
| ) |
|
The UART driver calls this method to notify OpenThread that the requested bytes have been sent.