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

Internal definitions for the Chirp CH201 GPR Static Target Rejection sensor firmware. More...

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

Go to the source code of this file.

Macros

#define CH201_GPR_STR_REG_OPMODE   0x01
 
#define CH201_GPR_STR_REG_TICK_INTERVAL   0x02
 
#define CH201_GPR_STR_REG_LOW_GAIN_RXLEN   0x04
 
#define CH201_GPR_STR_REG_PERIOD   0x05
 
#define CH201_GPR_STR_REG_CAL_TRIG   0x06
 
#define CH201_GPR_STR_REG_MAX_RANGE   0x07
 
#define CH201_GPR_STR_REG_INTCFG   0x08
 
#define CH201_GPR_STR_REG_THRESH_LEN_1   0x09
 
#define CH201_GPR_STR_REG_TX_LENGTH   0x10
 
#define CH201_GPR_STR_REG_RX_GAIN   0x11
 
#define CH201_GPR_STR_REG_CAL_RESULT   0x0A
 
#define CH201_GPR_STR_REG_THRESH_1   0x0C
 
#define CH201_GPR_STR_REG_THRESH_0   0x0E
 
#define CH201_GPR_STR_REG_READY   0x14
 
#define CH201_GPR_STR_REG_TOF_SF   0x16
 
#define CH201_GPR_STR_REG_TOF   0x18
 
#define CH201_GPR_STR_REG_AMPLITUDE   0x1A
 
#define CH201_GPR_STR_REG_DATA   0x1C
 
#define CH201_GPR_STR_MAX_SAMPLES   (290)
 
#define CH201_GPR_STR_THRESHOLD_NUMBER   2
 

Functions

uint16_t get_ch201_gpr_str_fw_ram_init_addr (void)
 
uint16_t get_ch201_gpr_str_fw_ram_init_size (void)
 
const unsigned char * get_ram_ch201_gpr_str_init_ptr (void)
 
uint8_t ch201_gpr_str_init (ch_dev_t *dev_ptr, ch_group_t *grp_ptr, uint8_t i2c_addr, uint8_t dev_num, uint8_t i2c_bus_index)
 

Variables

const char * ch201_gpr_str_version
 
const uint8_t ch201_gpr_str_fw [CH201_FW_SIZE]
 

Detailed Description

Internal definitions for the Chirp CH201 GPR Static Target Rejection sensor firmware.

This file contains register offsets and other values for use with the CH201 GPR Static Target Rejection 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.