Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
serial.c File Reference
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
#include "ca821x-posix-thread/posix-platform.h"
#include "code_utils.h"
Include dependency graph for serial.c:

Functions

void otPlatUartSendDone (void)
 
void otPlatUartReceived (const uint8_t *aBuf, uint16_t aBufLength)
 
void posixPlatformRestoreTerminal (void)
 This method restores the terminal to it's pre-openthread state. More...
 
otError otPlatUartEnable (void)
 
otError otPlatUartDisable (void)
 
otError otPlatUartSend (const uint8_t *aBuf, uint16_t aBufLength)
 
otError otPlatUartFlush (void)
 
void platformUartUpdateFdSet (fd_set *aReadFdSet, fd_set *aWriteFdSet, int *aMaxFd)
 This method updates the file descriptor sets with file descriptors used by the serial driver. More...
 
void platformUartProcess (void)
 This method performs radio driver processing. More...
 

Function Documentation

◆ otPlatUartDisable()

otError otPlatUartDisable ( void  )

◆ otPlatUartEnable()

otError otPlatUartEnable ( void  )

◆ otPlatUartFlush()

otError otPlatUartFlush ( void  )

◆ otPlatUartReceived()

void otPlatUartReceived ( const uint8_t *  aBuf,
uint16_t  aBufLength 
)

◆ otPlatUartSend()

otError otPlatUartSend ( const uint8_t *  aBuf,
uint16_t  aBufLength 
)

◆ otPlatUartSendDone()

void otPlatUartSendDone ( void  )

◆ platformUartProcess()

void platformUartProcess ( void  )

This method performs radio driver processing.

◆ platformUartUpdateFdSet()

void platformUartUpdateFdSet ( fd_set *  aReadFdSet,
fd_set *  aWriteFdSet,
int *  aMaxFd 
)

This method updates the file descriptor sets with file descriptors used by the serial driver.

Parameters
[in,out]aReadFdSetA pointer to the read file descriptors.
[in,out]aWriteFdSetA pointer to the write file descriptors.
[in,out]aMaxFdA pointer to the max file descriptor.

◆ posixPlatformRestoreTerminal()

void posixPlatformRestoreTerminal ( void  )

This method restores the terminal to it's pre-openthread state.