Chirp SonicLib  4.5.2
Macros
icu.h File Reference

Internal definitions for TDK/Chirp ICU ultrasonic sensors. More...

#include <invn/soniclib/details/ch_asic_shasta.h>

Go to the source code of this file.

Macros

#define ICU_BANDWIDTH_INDEX_1   10
 
#define ICU_BANDWIDTH_INDEX_2   11
 
#define ICU_COMMON_FREQCOUNTERCYCLES   (128)
 
#define ICU_COMMON_READY_FREQ_LOCKED   (0)
 
#define ICU_CPU_ID   SHASTA_CPU_ID_HI_VALUE
 
#define ICU_DATA_MEM_ADDR   SHASTA_DATA_MEM_ADDR
 
#define ICU_DATA_MEM_SIZE   SHASTA_DATA_MEM_SIZE
 
#define ICU_FREQ_SEARCH_HIGH   (3)
 
#define ICU_FREQ_SEARCH_LOW   (-2)
 
#define ICU_FREQ_TRIM_LOW   (0)
 
#define ICU_FW_SIZE   ICU_PROG_MEM_SIZE
 
#define ICU_MAX_TICK_INTERVAL   256
 
#define ICU_PROG_MEM_ADDR   SHASTA_PROG_MEM_ADDR
 
#define ICU_PROG_MEM_SIZE   SHASTA_PROG_MEM_SIZE
 
#define ICU_SCALEFACTOR_INDEX   6
 

Detailed Description

Internal definitions for TDK/Chirp ICU ultrasonic sensors.

This file contains various hardware-defined values for ICU series sensors, including ICU-20201.

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

◆ ICU_BANDWIDTH_INDEX_1

#define ICU_BANDWIDTH_INDEX_1   10

Index of first sample for bandwidth calc

◆ ICU_BANDWIDTH_INDEX_2

#define ICU_BANDWIDTH_INDEX_2   11

Index of second sample for bandwidth calc

◆ ICU_CPU_ID

#define ICU_CPU_ID   SHASTA_CPU_ID_HI_VALUE

Value in sensor ID reg

◆ ICU_SCALEFACTOR_INDEX

#define ICU_SCALEFACTOR_INDEX   6

Index for calculating scale factor.