PAS CO2 Sensor  1.0.3
C++ library for Infineon Photoacoustic Spectroscopy (PAS) XENSIV™ CO2 miniaturized sensor
pasco2 Namespace Reference

Classes

struct  Diag_t
 
class  GPIO
 
class  I2C
 
class  I2CPAL
 
class  Logger
 
class  LoggerPAL
 
struct  MeasStatus_t
 
class  PWM
 
class  PWMSW
 
class  Reg
 
class  SBus
 
class  Timer
 
class  UART
 
class  UARTPAL
 

Enumerations

Error codes
enum  Error_t {
  OK = 0, INTF_ERROR = -1, RESET_ERROR = -2, CONFIG_ERROR = -3,
  IC_ERROR = -14, IC_POWERON_ERROR = -15, IC_POWER12V_ERROR = -16, IC_TEMP_ERROR = -17,
  IC_COMM_ERROR = -18
}
 
Power status flags
enum  StatusFlags_t { POWER3V3 = 0x02, POWER12V = 0x04 }
 
Sensor status
enum  Status_t {
  UNINITED = 0x00, INITED = 0x01, LOGIC_ONLY_ON = INITED | POWER3V3, IR_ONLY_ON = INITED | POWER12V,
  ON = LOGIC_ONLY_ON | IR_ONLY_ON
}
 
Operation modes
enum  OpMode_t { MODE_IDLE = 0, MODE_SINGLE_SHOT = 1, MODE_CONTINUOUS_MEAS = 2 }
 
PWM modes
enum  PWMMode_t { PWM_SINGLE_PULSE = 0, PWM_TRAIN_PULSE = 1 }
 
Automatic baseline compensation modes
enum  ABOC_t { ABOC_DISABLED = 0, ABOC_ENABLED_PERIODIC = 1, ABOC_ENABLED_FORCED = 2 }
 
Sensor interfaces
enum  Intf_t { INTF_PWM, INTF_UART, INTF_I2C }
 
Interrupt modes
enum  Int_t {
  INT_DISABLED = 0, INT_ALARM_ACTIVE = 1, INT_DATA_READY = 2, INT_SERIAL_BUS_BUSY = 3,
  INT_EARLY_MEAS = 4
}
 
Interrupt output configuration
enum  IntIOConf_t { INT_IO_PUSH_PULL_ACTIVE_LOW = 0, INT_IO_PUSH_PULL_ACTIVE_HIGH = 1 }
 
Alarm threshold modes
enum  Alarm_t { ALARM_TH_CROSS_DOWN = 0, ALARM_TH_CROSS_UP = 1 }
 

Functions

I2C i2c (static_cast< I2CPAL * >(&i2cpalino))
 
Logger cotwo_log (static_cast< LoggerPAL * >(&logpalino))
 

Variables

I2C i2c
 
Logger cotwo_log
 Library logger. More...
 

Function Documentation

◆ i2c()

I2C pasco2::i2c ( static_cast< I2CPAL * > &  i2cpalino)

◆ cotwo_log()

Logger pasco2::cotwo_log ( static_cast< LoggerPAL * > &  logpalino)

Variable Documentation

◆ i2c

I2C pasco2::i2c

◆ cotwo_log

Logger pasco2::cotwo_log

Library logger.