FreeCalypso > hg > freecalypso-tools
comparison target-utils/include/abbdefs.h @ 499:44a1de4264d8
target-utils: added support for secret register page 2 of Iota ABB
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 25 May 2019 22:20:34 +0000 |
parents | e7502631a0f9 |
children |
comparison
equal
deleted
inserted
replaced
498:ca98f800bbf3 | 499:44a1de4264d8 |
---|---|
1 /* lifted from OsmocomBB */ | 1 /* lifted from OsmocomBB, then modified for page 2 support */ |
2 | 2 |
3 #ifndef _TWL3025_H | 3 #ifndef _TWL3025_H |
4 #define _TWL3025_H | 4 #define _TWL3025_H |
5 | 5 |
6 #define PAGE(n) (n << 7) | 6 #define PAGE(n) (n << 6) |
7 enum twl3025_reg { | 7 enum twl3025_reg { |
8 VRPCCFG = PAGE(1) | 30, | 8 VRPCCFG = PAGE(1) | 30, |
9 VRPCDEV = PAGE(0) | 30, | 9 VRPCDEV = PAGE(0) | 30, |
10 VRPCMSK = PAGE(1) | 31, | 10 VRPCMSK = PAGE(1) | 31, |
11 VRPCMSKABB = PAGE(1) | 29, | 11 VRPCMSKABB = PAGE(1) | 29, |
12 VRPCSTS = PAGE(0) | 31, | 12 VRPCSTS = PAGE(0) | 31, |
13 VRPCAUX = PAGE(2) | 30, /* secret undocumented register! */ | |
13 /* Monitoring ADC Registers */ | 14 /* Monitoring ADC Registers */ |
14 MADCTRL = PAGE(0) | 13, | 15 MADCTRL = PAGE(0) | 13, |
15 MADCSTAT = PAGE(0) | 24, | 16 MADCSTAT = PAGE(0) | 24, |
16 VBATREG = PAGE(0) | 15, | 17 VBATREG = PAGE(0) | 15, |
17 VCHGREG = PAGE(0) | 16, | 18 VCHGREG = PAGE(0) | 16, |