21 #ifndef CH_RANGEFINDER_TYPES_H_
22 #define CH_RANGEFINDER_TYPES_H_
32 #define CH101_COMMON_NUM_THRESHOLDS (6)
33 #define CHX01_COMMON_NUM_THRESHOLDS (6)
35 #ifdef INCLUDE_SHASTA_SUPPORT
36 #define CH_NUM_THRESHOLDS (LEN_THRESH)
37 #elif defined(INCLUDE_WHITNEY_SUPPORT)
38 #define CH_NUM_THRESHOLDS (6)
46 typedef uint8_t (*ch_set_threshold_func_t)(
ch_dev_t *dev_ptr, uint8_t threshold_index, uint16_t amplitude);
47 typedef uint16_t (*ch_get_threshold_func_t)(
ch_dev_t *dev_ptr, uint8_t threshold_index);
50 typedef uint8_t (*ch_set_static_range_func_t)(
ch_dev_t *dev_ptr, uint16_t static_range);
51 typedef uint8_t (*ch_set_rx_holdoff_func_t)(
ch_dev_t *dev_ptr, uint16_t rx_holdoff);
52 typedef uint16_t (*ch_get_rx_holdoff_func_t)(
ch_dev_t *dev_ptr);
53 typedef uint32_t (*ch_get_tof_us_func_t)(
ch_dev_t *dev_ptr);
56 ch_set_threshold_func_t set_threshold;
57 ch_get_threshold_func_t get_threshold;
58 ch_set_thresholds_func_t set_thresholds;
59 ch_get_thresholds_func_t get_thresholds;
60 ch_set_static_range_func_t set_static_range;
61 ch_set_rx_holdoff_func_t set_rx_holdoff;
62 ch_get_rx_holdoff_func_t get_rx_holdoff;
63 ch_get_tof_us_func_t get_tof_us;
#define CH_NUM_THRESHOLDS
Definition: ch_rangefinder_types.h:36
SonicLib public API and support functions for TDK/InvenSense ultrasonic sensors (originally developed...
Chirp sensor device descriptor structure.
Definition: soniclib.h:732
Algorithm configuration.
Definition: ch_rangefinder_types.h:67
ch_thresholds_t * thresh_ptr
Definition: ch_rangefinder_types.h:70
uint16_t static_range
Definition: ch_rangefinder_types.h:68
Definition: ch_rangefinder_types.h:55
Detection threshold value.
Definition: soniclib.h:436
Multiple detection threshold structure.
Definition: ch_rangefinder_types.h:42