10 #ifndef PAS_CO2_PAL_UART_HPP_ 11 #define PAS_CO2_PAL_UART_HPP_ 15 #if IS_INTF(PAS_CO2_INTF_UART) 20 #undef UART_PARITY_NONE 21 #undef UART_PARITY_ODD 22 #undef UART_PARITY_EVEN 115 uint16_t & length) = 0;
128 uint16_t & length) = 0;
139 uint32_t timeoutMs) = 0;
Definition: pas-co2-pal-uart.hpp:44
virtual Error_t write(const uint8_t *data, uint16_t &length)=0
Writes in the UART interface.
virtual Error_t init()=0
Initializes the UART interface.
StopBits_t
Definition: pas-co2-pal-uart.hpp:66
virtual Error_t read(uint8_t *data, uint16_t &length)=0
Reads from the UART interface.
Parity_t
Definition: pas-co2-pal-uart.hpp:54
Definition: pas-co2-pal-uart.hpp:57
Definition: pas-co2-i2c.hpp:21
Error_t
Definition: pas-co2-types.hpp:24
Definition: pas-co2-pal-uart.hpp:43
Definition: pas-co2-pal-uart.hpp:32
virtual Error_t waitReceive(uint16_t bytesRcvd, uint32_t timeoutMs)=0
Waits for a maximum timeout for the specified amount of bytes to be received.
Definition: pas-co2-pal-uart.hpp:69
DataBits_t
Definition: pas-co2-pal-uart.hpp:40
Definition: pas-co2-pal-uart.hpp:45
Definition: pas-co2-pal-uart.hpp:56
virtual Error_t deinit()=0
Deinitializes the UART interface.
Definition: pas-co2-pal-uart.hpp:42
virtual Error_t config(const uint32_t baudrate, const DataBits_t dataBits, const Parity_t parity, const StopBits_t stopBits)=0
Configures the UART interface settings.
PAS CO2 Library Configuration.
Definition: pas-co2-pal-uart.hpp:46
Definition: pas-co2-pal-uart.hpp:68
Definition: pas-co2-pal-uart.hpp:58