Chirp SonicLib  2.1.0
Public Attributes | List of all members
ch_group_t Struct Reference

Chirp sensor group configuration structure. More...

#include <soniclib.h>

Public Attributes

uint8_t num_ports
 
uint8_t num_i2c_buses
 
uint8_t sensor_count
 
uint16_t i2c_drv_flags
 
uint16_t rtc_cal_pulse_ms
 
uint16_t pretrig_delay_us
 
chdrv_discovery_hook_t disco_hook
 
ch_io_int_callback_t io_int_callback
 
ch_io_complete_callback_t io_complete_callback
 
ch_dev_tdevice [CHIRP_MAX_NUM_SENSORS]
 
uint8_t num_connected [CHIRP_NUM_I2C_BUSES]
 
chdrv_i2c_queue_t i2c_queue [CHIRP_NUM_I2C_BUSES]
 

Detailed Description

Chirp sensor group configuration structure.

Note
The CHIRP_MAX_NUM_SENSORS and CHIRP_NUM_I2C_BUSES symbols must be defined by the user. Normally this is done in the chirp_board_config.h header file that is part of the board support package.

Member Data Documentation

◆ device

ch_dev_t* ch_group_t::device[CHIRP_MAX_NUM_SENSORS]

Array of pointers to ch_dev_t structures for individual sensors

◆ disco_hook

chdrv_discovery_hook_t ch_group_t::disco_hook

Addr of hook routine to call when device found on bus

◆ i2c_drv_flags

uint16_t ch_group_t::i2c_drv_flags

Flags for special I2C handling by Chirp driver, from chbsp_get_i2c_info()

◆ i2c_queue

chdrv_i2c_queue_t ch_group_t::i2c_queue[CHIRP_NUM_I2C_BUSES]

Array of I2C non-blocking transaction queues (one per bus)

◆ io_complete_callback

ch_io_complete_callback_t ch_group_t::io_complete_callback

Addr of routine to call when non-blocking I/O completes

◆ io_int_callback

ch_io_int_callback_t ch_group_t::io_int_callback

Addr of routine to call when sensor interrupts

◆ num_connected

uint8_t ch_group_t::num_connected[CHIRP_NUM_I2C_BUSES]

Array of counters for connected sensors per bus

◆ num_i2c_buses

uint8_t ch_group_t::num_i2c_buses

Number of I2C buses on this board

◆ num_ports

uint8_t ch_group_t::num_ports

Number of ports (max possible sensor connections)

◆ pretrig_delay_us

uint16_t ch_group_t::pretrig_delay_us

Pre-trigger delay for rx-only sensors (in us)

◆ rtc_cal_pulse_ms

uint16_t ch_group_t::rtc_cal_pulse_ms

Real-time clock calibration pulse length (in ms)

◆ sensor_count

uint8_t ch_group_t::sensor_count

Number of sensors detected


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