nRF5 SDK for Thread v0.9.0
Functions

This module includes the platform abstraction for UART communication. More...

Functions

ThreadError otPlatUartEnable (void)
 
ThreadError otPlatUartDisable (void)
 
ThreadError otPlatUartSend (const uint8_t *aBuf, uint16_t aBufLength)
 
void otPlatUartSendDone (void)
 
void otPlatUartReceived (const uint8_t *aBuf, uint16_t aBufLength)
 

Detailed Description

This module includes the platform abstraction for UART communication.

Function Documentation

ThreadError otPlatUartDisable ( void  )

Disable the UART.

Return values
::kThreadError_NoneSuccessfully disabled the UART.
::kThreadError_FailedFailed to disable the UART.
ThreadError otPlatUartEnable ( void  )

Enable the UART.

Return values
::kThreadError_NoneSuccessfully enabled the UART.
::kThreadError_FailedFailed 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]aBufA pointer to the received bytes.
[in]aBufLengthThe number of bytes received.
ThreadError otPlatUartSend ( const uint8_t *  aBuf,
uint16_t  aBufLength 
)

Send bytes over the UART.

Parameters
[in]aBufA pointer to the data buffer.
[in]aBufLengthNumber of bytes to transmit.
Return values
::kThreadError_NoneSuccessfully started transmission.
::kThreadError_FailedFailed to start the transmission.
void otPlatUartSendDone ( void  )

The UART driver calls this method to notify OpenThread that the requested bytes have been sent.


Documentation feedback | Developer Zone | Subscribe | Updated