NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
serial_softserial.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SOFTSERIAL_BUFFER_SIZE   256
 

Enumerations

enum  softSerialPortIndex_e { SOFTSERIAL1 = 0, SOFTSERIAL2 }
 

Functions

serialPort_topenSoftSerial (softSerialPortIndex_e portIndex, serialReceiveCallbackPtr callback, uint32_t baud, portOptions_t options)
 
void softSerialWriteByte (serialPort_t *instance, uint8_t ch)
 
uint8_t softSerialRxBytesWaiting (serialPort_t *instance)
 
uint8_t softSerialTxBytesFree (serialPort_t *instance)
 
uint8_t softSerialReadByte (serialPort_t *instance)
 
void softSerialSetBaudRate (serialPort_t *s, uint32_t baudRate)
 
bool isSoftSerialTransmitBufferEmpty (serialPort_t *s)
 

Macro Definition Documentation

#define SOFTSERIAL_BUFFER_SIZE   256

Enumeration Type Documentation

Enumerator
SOFTSERIAL1 
SOFTSERIAL2 

Function Documentation

bool isSoftSerialTransmitBufferEmpty ( serialPort_t s)
serialPort_t* openSoftSerial ( softSerialPortIndex_e  portIndex,
serialReceiveCallbackPtr  callback,
uint32_t  baud,
portOptions_t  options 
)
uint8_t softSerialReadByte ( serialPort_t instance)
uint8_t softSerialRxBytesWaiting ( serialPort_t instance)
void softSerialSetBaudRate ( serialPort_t s,
uint32_t  baudRate 
)
uint8_t softSerialTxBytesFree ( serialPort_t instance)
void softSerialWriteByte ( serialPort_t instance,
uint8_t  ch 
)