Chirp SonicLib  2.1.0
Macros | Functions | Variables
ch101_sonicsync.h File Reference

Internal definitions for the Chirp CH101 SonicSync sensor firmware. More...

#include "ch101.h"
#include "soniclib.h"
#include <stdint.h>

Go to the source code of this file.

Macros

#define CH101_SONICSYNC_REG_OPMODE   0x01
 
#define CH101_SONICSYNC_REG_TICK_INTERVAL   0x02
 
#define CH101_SONICSYNC_REG_PERIOD   0x05
 
#define CH101_SONICSYNC_REG_MAX_RANGE   0x07
 
#define CH101_SONICSYNC_REG_TIME_PLAN   0x09
 
#define CH101_SONICSYNC_REG_STAT_RANGE   0x12
 
#define CH101_SONICSYNC_REG_STAT_COEFF   0x13
 
#define CH101_SONICSYNC_REG_READY   0x14
 
#define CH101_SONICSYNC_REG_TOF_SF   0x16
 
#define CH101_SONICSYNC_REG_TOF   0x18
 
#define CH101_SONICSYNC_REG_AMPLITUDE   0x1A
 
#define CH101_SONICSYNC_REG_CAL_TRIG   0x06
 
#define CH101_SONICSYNC_REG_CAL_RESULT   0x0A
 
#define CH101_SONICSYNC_REG_DATA   0x1C
 
#define CH101_SONICSYNC_MAX_SAMPLES   (150)
 
#define CH101_SONICSYNC_READY_FREQ_LOCKED   (0x02 | 0x04)
 

Functions

uint16_t get_ch101_sonicsync_master_fw_ram_init_addr (void)
 
uint16_t get_ch101_sonicsync_master_fw_ram_init_size (void)
 
uint16_t get_ch101_sonicsync_slave_fw_ram_init_addr (void)
 
uint16_t get_ch101_sonicsync_slave_fw_ram_init_size (void)
 
const unsigned char * get_ram_ch101_sonicsync_master_init_ptr (void)
 
const unsigned char * get_ram_ch101_sonicsync_slave_init_ptr (void)
 
uint8_t ch101_sonicsync_master_init (ch_dev_t *dev_ptr, ch_group_t *grp_ptr, uint8_t i2c_addr, uint8_t dev_num, uint8_t i2c_bus_index)
 
uint8_t ch101_sonicsync_slave_init (ch_dev_t *dev_ptr, ch_group_t *grp_ptr, uint8_t i2c_addr, uint8_t dev_num, uint8_t i2c_bus_index)
 
uint8_t ch_sonicsync_get_locked_state (ch_dev_t *dev_ptr)
 

Variables

const char * ch101_sonicsync_master_version
 
const char * ch101_sonicsync_slave_version
 
const uint8_t ch101_sonicsync_master_fw [CH101_FW_SIZE]
 
const uint8_t ch101_sonicsync_slave_fw [CH101_FW_SIZE]
 

Detailed Description

Internal definitions for the Chirp CH101 SonicSync sensor firmware.

This file contains register offsets and other values for use with the CH101 SonicSync sensor firmware. These values are subject to change without notice.

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.