23 #include "../config/serial.h"
serialPort_t * serialPort
Definition: serial.h:37
uint16_t functionMask
Definition: serial.h:32
portSharing_e
Definition: serial.h:41
void evaluateOtherData(serialPort_t *serialPort, uint8_t receivedChar)
serialPort_t * findSharedSerialPort(const struct serial_config *self, uint16_t functionMask, serialPortFunction_e sharedWithFunction)
Definition: serial.c:139
#define SERIAL_PORT_COUNT
Definition: target.h:92
uint8_t serialGetAvailablePortCount(void)
Definition: serial.c:347
baudRate_e lookupBaudRateIndex(uint32_t baudRate)
Definition: serial.c:52
serialPortIdentifier_e
serial port identifiers
Definition: serial.h:28
void closeSerialPort(serialPort_t *serialPort)
Definition: serial.c:295
uint8_t mode
Definition: gimbal.h:49
bool isSerialConfigValid(const struct serial_config *serialConfig)
Definition: serial.c:165
void waitForSerialPortToFinishTransmitting(serialPort_t *serialPort)
Definition: serial.c:362
serialPortIdentifier_e identifier
Definition: serial.h:36
serialPortFunction_e
Definition: serial.h:47
const struct serial_port_config * findSerialPortConfig(const struct serial_config *self, serialPortFunction_e function)
Definition: serial.c:95
portMode_t
Definition: serial.h:24
serialPortIdentifier_e identifier
Definition: serial.h:31
void serialInit(bool softserialEnabled)
Definition: serial.c:311
baudRate_e
Definition: serial.h:60
struct serialPortUsage_s serialPortUsage_t
portOptions_t
Definition: serial.h:30
const struct serial_port_config * serialFindPortConfiguration(const struct serial_config *self, serialPortIdentifier_e identifier)
Definition: serial.c:208
const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT]
Definition: config.c:255
const uint32_t baudRates[]
Definition: serial.c:48
void(* serialReceiveCallbackPtr)(uint16_t data)
Definition: serial.h:41
void serialRemovePort(serialPortIdentifier_e identifier)
Definition: serial.c:337
bool isSerialPortOpen(const struct serial_port_config *portConfig)
Definition: serial.c:130
serialPort_t * findNextSharedSerialPort(const struct serial_config *self, uint16_t functionMask, serialPortFunction_e sharedWithFunction)
Definition: serial.c:146
serialPort_t * openSerialPort(serialPortIdentifier_e identifier, serialPortFunction_e function, serialReceiveCallbackPtr callback, uint32_t baudrate, portMode_t mode, portOptions_t options)
Definition: serial.c:226
portSharing_e determinePortSharing(const struct serial_port_config *portConfig, serialPortFunction_e function)
Definition: serial.c:117
bool doesConfigurationUsePort(const struct serial_config *self, serialPortIdentifier_e portIdentifier)
Definition: serial.c:220
bool serialIsPortAvailable(serialPortIdentifier_e identifier)
Definition: serial.c:352
const struct serial_port_config * findNextSerialPortConfig(const struct serial_config *self, serialPortFunction_e function)
Definition: serial.c:101
bool isSerialPortShared(const struct serial_port_config *portConfig, uint16_t functionMask, serialPortFunction_e sharedWithFunction)
Definition: serial.c:125