Chirp SonicLib  4.5.2
Macros
ch201.h File Reference

Internal definitions for the Chirp CH201 ultrasonic sensor. More...

Go to the source code of this file.

Macros

#define CH201_BANDWIDTH_INDEX_1   6
 
#define CH201_BANDWIDTH_INDEX_2    (CH201_BANDWIDTH_INDEX_1 + 1)
 
#define CH201_DATA_MEM_ADDR   0x0200
 
#define CH201_DATA_MEM_SIZE   0x800
 
#define CH201_FW_SIZE   CH201_PROG_MEM_SIZE
 
#define CH201_MAX_TICK_INTERVAL   128
 
#define CH201_PROG_MEM_ADDR   0xF800
 
#define CH201_PROG_MEM_SIZE   0x800
 
#define CH201_SCALEFACTOR_INDEX   4
 

Detailed Description

Internal definitions for the Chirp CH201 ultrasonic sensor.

This file contains various hardware-defined values for the CH201 sensor.

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

◆ CH201_BANDWIDTH_INDEX_1

#define CH201_BANDWIDTH_INDEX_1   6

Index of first sample to use for calculating bandwidth.

◆ CH201_BANDWIDTH_INDEX_2

#define CH201_BANDWIDTH_INDEX_2    (CH201_BANDWIDTH_INDEX_1 + 1)

Index of second sample to use for calculating bandwidth.

◆ CH201_SCALEFACTOR_INDEX

#define CH201_SCALEFACTOR_INDEX   4

Index for calculating scale factor.