10 #ifndef PAS_CO2_I2C_HPP_ 11 #define PAS_CO2_I2C_HPP_ 15 #if IS_INTF(PAS_CO2_INTF_I2C) 59 const uint8_t addr7bits = 0x28;
Definition: pas-co2-sbus.hpp:33
PAS CO2 Serial Interface.
PAS CO2 I2C Platform Abstraction Layer.
I2C(I2CPAL *const i2cpal, uint32_t freqHz=dfltFreq)
I2C interface constructor.
Definition: pas-co2-i2c.cpp:24
Definition: pas-co2-i2c.hpp:21
Error_t
Definition: pas-co2-types.hpp:24
Definition: pas-co2-sbus.hpp:23
Proto_t
Definition: pas-co2-sbus.hpp:31
Definition: pas-co2-pal-i2c.hpp:28
Definition: pas-co2-i2c.hpp:29
Error_t init(void)
Initializes the I2C interface.
Definition: pas-co2-i2c.cpp:50
Error_t deinit(void)
Deinitializes the I2C interface.
Definition: pas-co2-i2c.cpp:79
virtual ~I2C(void)
I2C interface destructor.
Definition: pas-co2-i2c.cpp:35
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-i2c.cpp:103
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-i2c.cpp:129
Proto_t getProtocol(void)
Returns the bus protocol.
Definition: pas-co2-i2c.hpp:53
PAS CO2 Library Configuration.
static const uint32_t dfltFreq
Definition: pas-co2-i2c.hpp:33