10 #ifndef PAS_CO2_REG_HPP_ 11 #define PAS_CO2_REG_HPP_ 131 REG_ACCESS_R = (0x01U),
132 REG_ACCESS_W = (0x02U),
133 REG_ACCESS_RW = (0x03U),
134 REG_ACCESS_RH = (0x05U),
135 REG_ACCESS_RWH = (0x07U),
136 REG_ACCESS_S = (0x08U),
137 REG_ACCESS_RHS = (0x0DU),
138 REG_ACCESS_RES = (0x10U)
153 static const BitField_t bitFields[];
202 static const uint8_t softResetValue = 0xA3;
204 bool getBitField (BitField_t bitField, uint8_t & bitFValue);
205 bool setBitField (BitField_t bitField, uint8_t bitFNewValue);
Definition: pas-co2-reg.hpp:44
Definition: pas-co2-reg.hpp:34
void setABOCMode(const ABOC_t abocMode)
Definition: pas-co2-reg.cpp:212
Alarm_t getAlarmType(void)
Definition: pas-co2-reg.cpp:311
void clearAlarmFlag(void)
Definition: pas-co2-reg.cpp:278
Definition: pas-co2-reg.hpp:38
int16_t getAlarmThreshold(void)
Definition: pas-co2-reg.cpp:325
uint8_t getRevisionID(void)
Definition: pas-co2-reg.cpp:82
int16_t getMeasRate(void)
Definition: pas-co2-reg.cpp:151
~Reg()
Definition: pas-co2-reg.cpp:68
Reg()
Definition: pas-co2-reg.cpp:62
void setStratchPad(const uint8_t value)
Definition: pas-co2-reg.cpp:391
PWMMode_t getPWMMode(void)
Definition: pas-co2-reg.cpp:189
void enablePWMOutput(void)
Definition: pas-co2-reg.cpp:170
void clearInterruptFlag(void)
Definition: pas-co2-reg.cpp:264
Int_t getInterruptFunc(void)
Definition: pas-co2-reg.cpp:297
OpMode_t getOperationMode(void)
Definition: pas-co2-reg.cpp:218
Definition: pas-co2-i2c.hpp:21
IntIOConf_t
Definition: pas-co2-types.hpp:129
void disablePWMOutput(void)
Definition: pas-co2-reg.cpp:175
void clearCommErrorFlag(void)
Definition: pas-co2-reg.cpp:146
void setPressCompReference(const uint16_t pressRef)
Definition: pas-co2-reg.cpp:357
PWMMode_t
Definition: pas-co2-types.hpp:80
bool is12VOutofRange(void)
Definition: pas-co2-reg.cpp:123
Definition: pas-co2-reg.hpp:40
Definition: pas-co2-reg.hpp:45
Definition: pas-co2-reg.hpp:48
Definition: pas-co2-reg.hpp:49
uint16_t getCO2PPM(void)
Definition: pas-co2-reg.cpp:233
void setMeasRate(const int16_t period)
Definition: pas-co2-reg.cpp:164
Definition: pas-co2-reg.hpp:46
bool isSensorReady(void)
Definition: pas-co2-reg.cpp:91
int16_t getABOCReference(void)
Definition: pas-co2-reg.cpp:363
ABOC_t
Definition: pas-co2-types.hpp:91
void setAlarmType(const Alarm_t func)
Definition: pas-co2-reg.cpp:320
Definition: pas-co2-reg.hpp:43
uint8_t getProductID(void)
Definition: pas-co2-reg.cpp:73
void setInterruptIOConf(const IntIOConf_t ioConf)
Definition: pas-co2-reg.cpp:292
void setInterrutFunc(const Int_t func)
Definition: pas-co2-reg.cpp:306
Definition: pas-co2-reg.hpp:35
Definition: pas-co2-reg.hpp:24
ABOC_t getABOCMode(void)
Definition: pas-co2-reg.cpp:203
IntIOConf_t getInterruptIOConf(void)
Definition: pas-co2-reg.cpp:283
bool isDataReady(void)
Definition: pas-co2-reg.cpp:246
static const uint8_t regCount
Definition: pas-co2-reg.hpp:54
Addr_t
Definition: pas-co2-reg.hpp:32
bool isPWMPinEnabled(void)
Definition: pas-co2-reg.cpp:100
bool isAlarmSet(void)
Definition: pas-co2-reg.cpp:269
Definition: pas-co2-reg.hpp:39
bool isTempOutofRange(void)
Definition: pas-co2-reg.cpp:109
void clear12VOutofRangeFlag(void)
Definition: pas-co2-reg.cpp:132
void setPWMMode(const PWMMode_t mode)
Definition: pas-co2-reg.cpp:198
uint8_t regMap[regCount]
Definition: pas-co2-reg.hpp:55
Int_t
Definition: pas-co2-types.hpp:115
void setAlarmThreshold(const int16_t alarmTh)
Definition: pas-co2-reg.cpp:338
void setABOCReference(const int16_t abocRef)
Definition: pas-co2-reg.cpp:376
OpMode_t
Definition: pas-co2-types.hpp:68
Alarm_t
Definition: pas-co2-types.hpp:140
bool hasCommErrorOccurred(void)
Definition: pas-co2-reg.cpp:137
uint16_t getPressCompReference(void)
Definition: pas-co2-reg.cpp:344
bool isPWMOutputEnabled(void)
Definition: pas-co2-reg.cpp:180
Definition: pas-co2-reg.hpp:42
Definition: pas-co2-reg.hpp:47
Definition: pas-co2-reg.hpp:41
Definition: pas-co2-reg.hpp:37
void setSoftReset(void)
Definition: pas-co2-reg.cpp:396
void setOperationMode(const OpMode_t mode)
Definition: pas-co2-reg.cpp:227
void clearTempOutofRangeFlag(void)
Definition: pas-co2-reg.cpp:118
uint8_t getScratchPad(void)
Definition: pas-co2-reg.cpp:382
Definition: pas-co2-reg.hpp:50
bool hasInterruptOcurred(void)
Definition: pas-co2-reg.cpp:255
Definition: pas-co2-reg.hpp:36