-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathas3933_cfg.h
113 lines (102 loc) · 2.46 KB
/
as3933_cfg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
* as3933_cfg.h
*
* Created on: 12 cze 2020
* Author: kurza
*/
#ifndef AS3933_CFG_H_
#define AS3933_CFG_H_
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "as3933_defs.h"
#include "as3933_regs.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL VARIABLES
**********************/
// @formatter:off
static as3933_reg_setting_t as3933_config_register[] =
{
{ R0, 0b00001000 },
// Correlator disable, Antena dumper (R1.4) enable, AGC up&down
{ R1, 0b00110001 },
//R2.5 - 3dB gain boost, R2.[1:0] LOOSE freq tolerance
{ R2, 0b00000000 },
//Hyst R3.[7:6] 00 - 40mV, 10 - 20mV
{ R3, 0b00000000 },
//Antena dumper r4.[5:4] 00 - 1kOm, 01 - 3kOm, 10 - 9kOm, 11 - 27 kOm
//Gain reduction R4.[3:0]
{ R4, 0b00000000 },
//R7[5:7] Timeout
{ R7, 0b11101011 }, // timeout on
//{R7, 0b00001011}, // timeout off
// { R8, 0b00000000 },
//AGC enable
// { R9, 0b00000000 },
// { R16, 0b00000000 },
//Capacitors setting
{ R17, 0b00011111 },
{ R18, 0b00011111 },
{ R19, 0b00011111 }
};
// @formatter:on
/*
{ R0, 0b00001110 },
// Correlator disable, Antena dumper (R1.4) enable, AGC up&down
{ R1, 0b00110001 },
//R2.5 - 3dB gain boost, R2.[1:0] LOOSE freq tolerance
{ R2, 0b00000000 },
//Hyst R3.[7:6] 00 - 40mV, 10 - 20mV
{ R3, 0b00000000 },
//Antena dumper r4.[5:4] 00 - 1kOm, 01 - 3kOm, 10 - 9kOm, 11 - 27 kOm
//Gain reduction R4.[3:0]
{ R4, 0b00001110 },
//R7[5:7] Timeout
{ R7, 0b11101011 }, // timeout on
//{R7, 0b00001011}, // timeout off
// { R8, 0b00000000 },
//AGC enable
// { R9, 0b00000000 },
// { R16, 0b00000000 },
//Capacitors setting
// { R17, 0b00000101 },
// { R18, 0b00001111 },
// { R19, 0b00010001 }
*/
//static as3933_init_cmd_t as3933_default_register[] = {
// {R0, 0b00001110},
// {R1, 0b00100011},
// {R2, 0b00000000},
// {R3, 0b00100000},
// {R4, 0b00010000},
// {R5, 0b01101001},
// {R6, 0b10010110},
// {R7, 0b00001011},
// {R8, 0b00000000},
// {R9, 0b00000000},
// {R16, 0b00000000},
// {R17, 0b00000101},
// {R18, 0b00001111},
// {R19, 0b00010001}};
// {R17, 0b00000000},
// {R18, 0b00000000},
// {R19, 0b00000000}};
/**********************
* GLOBAL PROTOTYPES
**********************/
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* AS3933_CFG_H_ */