Chirp SonicLib  4.5.2
ch101.h
Go to the documentation of this file.
1 
12 /*
13  Copyright 2016-2023, InvenSense, Inc. All rights reserved.
14 
15  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18  DISCLAIMED.
19 
20  */
21 
22 #ifndef CH101_H_
23 #define CH101_H_
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #define CH101_DATA_MEM_SIZE 0x800
30 #define CH101_DATA_MEM_ADDR 0x0200
31 #define CH101_PROG_MEM_SIZE 0x800
32 #define CH101_PROG_MEM_ADDR 0xF800
33 #define CH101_FW_SIZE CH101_PROG_MEM_SIZE
34 
35 #define CH101_BANDWIDTH_INDEX_1 6
36 #define CH101_BANDWIDTH_INDEX_2 \
37  (CH101_BANDWIDTH_INDEX_1 + 1)
38 #define CH101_SCALEFACTOR_INDEX 4
40 #define CH101_MAX_TICK_INTERVAL 128
41 
42 #define CH101_DCO_LOW (100)
43 #define CH101_DCO_HIGH (250)
44 #define CH101_DCO_SEARCH_THRESHOLD (100) // Hz, if error is above this, do a search
45 #define CH101_REVDRIVE_DEFAULT (2)
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif