NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
serial.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <platform.h>
#include "serial.h"
Include dependency graph for serial.c:

Functions

void serialPrint (serialPort_t *instance, const char *str)
 
uint32_t serialGetBaudRate (serialPort_t *instance)
 
void serialWrite (serialPort_t *instance, uint8_t ch)
 
void serialWriteBuf (serialPort_t *instance, uint8_t *data, int count)
 
uint8_t serialRxBytesWaiting (serialPort_t *instance)
 
uint8_t serialTxBytesFree (serialPort_t *instance)
 
uint8_t serialRead (serialPort_t *instance)
 
void serialSetBaudRate (serialPort_t *instance, uint32_t baudRate)
 
bool isSerialTransmitBufferEmpty (serialPort_t *instance)
 
void serialSetMode (serialPort_t *instance, portMode_t mode)
 
void serialWriteBufShim (void *instance, uint8_t *data, int count)
 
void serialBeginWrite (serialPort_t *instance)
 
void serialEndWrite (serialPort_t *instance)
 

Function Documentation

bool isSerialTransmitBufferEmpty ( serialPort_t instance)
void serialBeginWrite ( serialPort_t instance)
void serialEndWrite ( serialPort_t instance)
uint32_t serialGetBaudRate ( serialPort_t instance)
void serialPrint ( serialPort_t instance,
const char *  str 
)

Here is the call graph for this function:

uint8_t serialRead ( serialPort_t instance)
uint8_t serialRxBytesWaiting ( serialPort_t instance)
void serialSetBaudRate ( serialPort_t instance,
uint32_t  baudRate 
)
void serialSetMode ( serialPort_t instance,
portMode_t  mode 
)
uint8_t serialTxBytesFree ( serialPort_t instance)
void serialWrite ( serialPort_t instance,
uint8_t  ch 
)
void serialWriteBuf ( serialPort_t instance,
uint8_t *  data,
int  count 
)

Here is the call graph for this function:

void serialWriteBufShim ( void *  instance,
uint8_t *  data,
int  count 
)

Here is the call graph for this function: