apc1sensor 2.1.0.0
apc1sensor_t Struct Reference

APC1 Sensor Demo context object. More...

#include <apc1sensor.h>

Data Fields

digital_out_t set
 
digital_out_t rst
 
i2c_master_t i2c
 
uart_t uart
 
uint8_t slave_address
 
uint8_t uart_rx_buffer [APC1SENSOR_RX_DRV_BUFFER_SIZE]
 
uint8_t uart_tx_buffer [APC1SENSOR_TX_DRV_BUFFER_SIZE]
 
apc1sensor_drv_t drv_sel
 
uint8_t meas_mode
 

Detailed Description

APC1 Sensor Demo context object.

Context object definition of APC1 Sensor Demo driver.

Field Documentation

◆ drv_sel

Master driver interface selector.

◆ i2c

i2c_master_t i2c

I2C driver object.

◆ meas_mode

uint8_t meas_mode

Measurement mode selection (UART only).

◆ rst

digital_out_t rst

Reset pin.

◆ set

digital_out_t set

Operating mode set pin.

◆ slave_address

uint8_t slave_address

Device slave address (used for I2C driver).

◆ uart

uart_t uart

UART driver object.

◆ uart_rx_buffer

uint8_t uart_rx_buffer[APC1SENSOR_RX_DRV_BUFFER_SIZE]

Buffer size.

◆ uart_tx_buffer

uint8_t uart_tx_buffer[APC1SENSOR_TX_DRV_BUFFER_SIZE]

Buffer size.


The documentation for this struct was generated from the following file: