Chirp SonicLib  4.5.2
Classes | Macros | Typedefs
ch_rangefinder_types.h File Reference

Internal driver types for operation with the Chirp ultrasonic sensor. More...

#include <stdint.h>
#include <invn/soniclib/soniclib.h>

Go to the source code of this file.

Classes

struct  ch_rangefinder_algo_config_t
 Algorithm configuration. More...
 
struct  ch_rangefinder_api_funcs_t
 
struct  ch_thresholds_t
 Multiple detection threshold structure. More...
 

Macros

#define CH101_COMMON_NUM_THRESHOLDS   (6)
 
#define CH_NUM_THRESHOLDS   (LEN_THRESH)
 
#define CHX01_COMMON_NUM_THRESHOLDS   (6)
 

Typedefs

typedef uint16_t(* ch_get_rx_holdoff_func_t) (ch_dev_t *dev_ptr)
 
typedef uint16_t(* ch_get_threshold_func_t) (ch_dev_t *dev_ptr, uint8_t threshold_index)
 
typedef uint8_t(* ch_get_thresholds_func_t) (ch_dev_t *dev_ptr, ch_thresholds_t *thresh_ptr)
 
typedef uint32_t(* ch_get_tof_us_func_t) (ch_dev_t *dev_ptr)
 
typedef uint8_t(* ch_set_rx_holdoff_func_t) (ch_dev_t *dev_ptr, uint16_t rx_holdoff)
 
typedef uint8_t(* ch_set_static_range_func_t) (ch_dev_t *dev_ptr, uint16_t static_range)
 
typedef uint8_t(* ch_set_threshold_func_t) (ch_dev_t *dev_ptr, uint8_t threshold_index, uint16_t amplitude)
 
typedef uint8_t(* ch_set_thresholds_func_t) (ch_dev_t *dev_ptr, ch_thresholds_t *thresh_ptr)
 

Detailed Description

Internal driver types for operation with the Chirp ultrasonic sensor.

This file contains range finding types shared whith firmware doing range finding.

You should not need to edit this file or call the driver functions directly. Doing so will reduce your ability to benefit from future enhancements and releases from Chirp.

Macro Definition Documentation

◆ CH_NUM_THRESHOLDS

#define CH_NUM_THRESHOLDS   (LEN_THRESH)

Number of internal detection thresholds (Shasta).