33 #ifndef CH101_FLOOR_H_ 34 #define CH101_FLOOR_H_ 41 #define CH101_FLOOR_REG_OPMODE 0x01 42 #define CH101_FLOOR_REG_TICK_INTERVAL 0x02 43 #define CH101_FLOOR_REG_RX_WIN_END 0x04 44 #define CH101_FLOOR_REG_PERIOD 0x05 45 #define CH101_FLOOR_REG_CAL_TRIG 0x06 46 #define CH101_FLOOR_REG_MAX_RANGE 0x07 47 #define CH101_FLOOR_REG_CALC 0x08 48 #define CH101_FLOOR_REG_RX_GAIN_ATTEN_1 0x10 49 #define CH101_FLOOR_REG_RX_HOLDOFF 0x11 50 #define CH101_FLOOR_REG_RX_GAIN_ATTEN_2 0x12 51 #define CH101_FLOOR_REG_READY 0x14 52 #define CH101_FLOOR_REG_TOF_SF 0x16 53 #define CH101_FLOOR_REG_AMPLITUDE_LOW 0x18 54 #define CH101_FLOOR_REG_AMPLITUDE_HIGH 0x1A 55 #define CH101_FLOOR_REG_CAL_RESULT 0x0A 56 #define CH101_FLOOR_REG_DATA 0x1C 58 #define CH101_FLOOR_MAX_SAMPLES (150) 60 extern const char *ch101_floor_version;
61 extern const uint8_t ch101_floor_fw[CH101_FW_SIZE];
63 uint16_t get_ch101_floor_fw_ram_init_addr(
void);
64 uint16_t get_ch101_floor_fw_ram_init_size(
void);
66 const unsigned char * get_ram_ch101_floor_init_ptr(
void);
68 uint8_t ch101_floor_init(
ch_dev_t *dev_ptr,
ch_group_t *grp_ptr, uint8_t i2c_addr, uint8_t dev_num, uint8_t i2c_bus_index);
70 void ch101_floor_store_bandwidth(
ch_dev_t *dev_ptr);
Chirp SonicLib public API and support functions for Chirp ultrasonic sensors.
Internal definitions for the Chirp CH101 ultrasonic sensor.
Chirp sensor device structure.
Definition: soniclib.h:349
Chirp sensor group configuration structure.
Definition: soniclib.h:329