#include "drivers/serial.h"
#include "target.h"
#include "../config/serial.h"
Go to the source code of this file.
|
void | serialInit (bool softserialEnabled) |
|
serialPort_t * | findSharedSerialPort (const struct serial_config *self, uint16_t functionMask, serialPortFunction_e sharedWithFunction) |
|
serialPort_t * | findNextSharedSerialPort (const struct serial_config *self, uint16_t functionMask, serialPortFunction_e sharedWithFunction) |
|
void | serialRemovePort (serialPortIdentifier_e identifier) |
|
uint8_t | serialGetAvailablePortCount (void) |
|
bool | serialIsPortAvailable (serialPortIdentifier_e identifier) |
|
bool | isSerialConfigValid (const struct serial_config *serialConfig) |
|
const struct serial_port_config * | serialFindPortConfiguration (const struct serial_config *self, serialPortIdentifier_e identifier) |
|
bool | doesConfigurationUsePort (const struct serial_config *self, serialPortIdentifier_e portIdentifier) |
|
const struct serial_port_config * | findSerialPortConfig (const struct serial_config *self, serialPortFunction_e function) |
|
const struct serial_port_config * | findNextSerialPortConfig (const struct serial_config *self, serialPortFunction_e function) |
|
portSharing_e | determinePortSharing (const struct serial_port_config *portConfig, serialPortFunction_e function) |
|
bool | isSerialPortShared (const struct serial_port_config *portConfig, uint16_t functionMask, serialPortFunction_e sharedWithFunction) |
|
bool | isSerialPortOpen (const struct serial_port_config *portConfig) |
|
serialPort_t * | openSerialPort (serialPortIdentifier_e identifier, serialPortFunction_e function, serialReceiveCallbackPtr callback, uint32_t baudrate, portMode_t mode, portOptions_t options) |
|
void | closeSerialPort (serialPort_t *serialPort) |
|
void | waitForSerialPortToFinishTransmitting (serialPort_t *serialPort) |
|
baudRate_e | lookupBaudRateIndex (uint32_t baudRate) |
|
void | evaluateOtherData (serialPort_t *serialPort, uint8_t receivedChar) |
|
void | handleSerial (void) |
|
void evaluateOtherData |
( |
serialPort_t * |
serialPort, |
|
|
uint8_t |
receivedChar |
|
) |
| |
void handleSerial |
( |
void |
| ) |
|
bool isSerialConfigValid |
( |
const struct serial_config * |
serialConfig | ) |
|
baudRate_e lookupBaudRateIndex |
( |
uint32_t |
baudRate | ) |
|
uint8_t serialGetAvailablePortCount |
( |
void |
| ) |
|
void serialInit |
( |
bool |
softserialEnabled | ) |
|
void waitForSerialPortToFinishTransmitting |
( |
serialPort_t * |
serialPort | ) |
|
const uint32_t baudRates[] |