10 #ifndef PAS_CO2_UART_HPP_ 11 #define PAS_CO2_UART_HPP_ 15 #if IS_INTF(PAS_CO2_INTF_UART) virtual bool isAckFrame(const char *frame, const uint8_t len)
Checks if a frame is an ack reply frame.
Definition: pas-co2-uart.cpp:325
StopBits_t
Definition: pas-co2-pal-uart.hpp:66
Error_t init(void)
Initializes the I2C interface.
Definition: pas-co2-uart.cpp:52
virtual uint8_t disassembleReadReplyFrame(const char *frame)
Disassembles the read response frame.
Definition: pas-co2-uart.cpp:284
virtual bool isNackFrame(const char *frame, const uint8_t len)
Checks if a frame is an nack reply frame.
Definition: pas-co2-uart.cpp:354
PAS CO2 Serial Interface.
Parity_t
Definition: pas-co2-pal-uart.hpp:54
PAS CO2 UART Platform Abstraction Layer.
Definition: pas-co2-uart.hpp:31
Definition: pas-co2-i2c.hpp:21
char uint4ToHexChar(const uint8_t uint4)
Converts an unsigned 4 bits integer to its hexadecimal ascii value.
Definition: pas-co2-uart.cpp:210
Error_t
Definition: pas-co2-types.hpp:24
Definition: pas-co2-sbus.hpp:23
Definition: pas-co2-pal-uart.hpp:32
Error_t read(const uint8_t regAddr, uint8_t *data, uint16_t length)
Reads data from a register or set of consecutive registers.
Definition: pas-co2-uart.cpp:155
Proto_t
Definition: pas-co2-sbus.hpp:31
virtual void assembleWriteRequestFrame(const uint8_t regAddr, const uint8_t regVal, char *frame)
Assembles the register write request frame.
Definition: pas-co2-uart.cpp:231
DataBits_t
Definition: pas-co2-pal-uart.hpp:40
Definition: pas-co2-pal-uart.hpp:45
Definition: pas-co2-pal-uart.hpp:56
virtual void assembleReadRequestFrame(const uint8_t regAddr, char *frame)
Assembles the register read request frame.
Definition: pas-co2-uart.cpp:260
~UART(void)
UUART interface desconstructor.
Definition: pas-co2-uart.cpp:37
Error_t write(const uint8_t regAddr, const uint8_t *data, uint16_t length)
Writes data to a register or set of consecutive registers.
Definition: pas-co2-uart.cpp:97
UART(UARTPAL *const uartpal, uint32_t baudrateBps=dfltBaudrateBps)
UART interface constructor.
Definition: pas-co2-uart.cpp:25
static const uint32_t dfltBaudrateBps
Definition: pas-co2-uart.hpp:35
Error_t deinit(void)
Deinitializes the serial interface.
Definition: pas-co2-uart.cpp:73
Proto_t getProtocol(void)
Gets the specific serial protocol.
Definition: pas-co2-uart.hpp:50
PAS CO2 Library Configuration.
Definition: pas-co2-pal-uart.hpp:68
Definition: pas-co2-sbus.hpp:34