236 int32_t
count, int32_t* status);
@ HAL_ENUM
Definition: Value.h:14
HAL_SerialPort
Definition: SerialPort.h:17
int32_t HAL_ReadSerial(HAL_SerialPortHandle handle, char *buffer, int32_t count, int32_t *status)
Reads data from the serial port.
HAL_SerialPortHandle HAL_InitializeSerialPortDirect(HAL_SerialPort port, const char *portName, int32_t *status)
Initializes a serial port with a direct name.
void HAL_SetSerialParity(HAL_SerialPortHandle handle, int32_t parity, int32_t *status)
Sets the number of parity bits on a serial port.
void HAL_SetSerialDataBits(HAL_SerialPortHandle handle, int32_t bits, int32_t *status)
Sets the number of data bits on a serial port.
void HAL_SetSerialWriteBufferSize(HAL_SerialPortHandle handle, int32_t size, int32_t *status)
Sets the size of the write buffer.
void HAL_SetSerialFlowControl(HAL_SerialPortHandle handle, int32_t flow, int32_t *status)
Sets the flow control mode of a serial port.
HAL_SerialPortHandle HAL_InitializeSerialPort(HAL_SerialPort port, int32_t *status)
Initializes a serial port.
int32_t HAL_GetSerialBytesReceived(HAL_SerialPortHandle handle, int32_t *status)
Gets the number of bytes currently in the read buffer.
void HAL_FlushSerial(HAL_SerialPortHandle handle, int32_t *status)
Flushes the serial write buffer out to the port.
void HAL_SetSerialReadBufferSize(HAL_SerialPortHandle handle, int32_t size, int32_t *status)
Sets the size of the read buffer.
int HAL_GetSerialFD(HAL_SerialPortHandle handle, int32_t *status)
Gets the raw serial port file descriptor from a handle.
void HAL_CloseSerial(HAL_SerialPortHandle handle, int32_t *status)
Closes a serial port.
int32_t HAL_WriteSerial(HAL_SerialPortHandle handle, const char *buffer, int32_t count, int32_t *status)
Writes data to the serial port.
void HAL_DisableSerialTermination(HAL_SerialPortHandle handle, int32_t *status)
Disables a termination character for reads.
void HAL_SetSerialBaudRate(HAL_SerialPortHandle handle, int32_t baud, int32_t *status)
Sets the baud rate of a serial port.
void HAL_SetSerialWriteMode(HAL_SerialPortHandle handle, int32_t mode, int32_t *status)
Sets the write mode on a serial port.
void HAL_SetSerialTimeout(HAL_SerialPortHandle handle, double timeout, int32_t *status)
Sets the minimum serial read timeout of a port.
void HAL_ClearSerial(HAL_SerialPortHandle handle, int32_t *status)
Clears the receive buffer of the serial port.
void HAL_SetSerialStopBits(HAL_SerialPortHandle handle, int32_t stopBits, int32_t *status)
Sets the number of stop bits on a serial port.
void HAL_EnableSerialTermination(HAL_SerialPortHandle handle, char terminator, int32_t *status)
Sets the termination character that terminates a read.
@ HAL_SerialPort_USB2
Definition: SerialPort.h:21
@ HAL_SerialPort_USB1
Definition: SerialPort.h:20
@ HAL_SerialPort_Onboard
Definition: SerialPort.h:18
@ HAL_SerialPort_MXP
Definition: SerialPort.h:19
HAL_Handle HAL_SerialPortHandle
Definition: Types.h:49
constexpr auto count() -> size_t
Definition: core.h:1203
bits
Definition: data.h:44