MSP430UltrasonicLibrary  02_20_00_15
USSGenericRegDef.h
Go to the documentation of this file.
1 #ifndef _USSINTERNALREG_H_
2 #define _USSINTERNALREG_H_
3 
4 #include <msp430.h>
5 
6 #if defined(__MSP430_HAS_SAPH__)
7 #define __MSP430_BASEADDRESS_GENERIC_SAPH__ __MSP430_BASEADDRESS_SAPH__
8 #elif defined(__MSP430_BASEADDRESS_SAPH_A__)
9 #define __MSP430_BASEADDRESS_GENERIC_SAPH__ __MSP430_BASEADDRESS_SAPH_A__
10 #else
11 #error "SAPH module not supported by USS SW Library"
12 #endif
13 
14 /* SAPHMCNF Control Bits */
15 #define LPBE (0x0800) /* */
16 #define LPBE_0 (0x0000) /* For manual bias mode and regular ASQ bias mode. In this
17  configuration the user controls by the ASQBSW has full control
18  over the TxBias and RxBias switches. */
19 #define LPBE_1 (0x0800) /* Low power bias mode. In this mode the ASQ uses the CHxEBSW and
20  PGABSW as auxiliary values to achieve faster channel setting
21  on reactive input loads. The ASQ has full controls over the
22  bias switch multiplexer. */
23 #define CPEO (0x0100) /* */
24 #define CPEO_0 (0x0000) /* Charge pump is turned on by SDHS and ASQ related requests
25  only. */
26 #define CPEO_1 (0x0100) /* Charge pump is turned on regardless of SDHS and ASQ related
27  charge pump requests. */
28 //#define BIMP (0x0000) /* */
29 #define BIMP_0 (0x0000) /* 200 Ohms buffer impedance for RxBias and TxBias */
30 #define BIMP_1 (0x0001) /* 600 Ohms buffer impedance for RxBias and TxBias */
31 #define BIMP_2 (0x0002) /* 1200 Ohms buffer impedance for RxBias and TxBias (default) */
32 #define BIMP_3 (0x0003) /* 2800 Ohms buffer impedance for RxBias and TxBias */
33 
34 
35 #define LBHDEL_0 (0x0000) /* no additional delay */
36 #define LBHDEL_1 (0x1000) /* additional hold off delay of ~100us (512 REFCLKs) */
37 #define LBHDEL_1_H (0x0010)
38 #define LBHDEL_2 (0x2000) /* additional hold off delay of ~200us (1024 REFCLKs) */
39 #define LBHDEL_2_H (0x0020)
40 #define LBHDEL_3 (0x3000) /* additional hold off delay of ~300us (1536 REFCLKs) */
41 #define LBHDEL_3_H (0x0030)
42 
43 #define USSSWRST (0x0080) /* */
44 #define USSSWRST_L (0x0080)
45 #define USSSWRST_0 (0x0000) /* Disabled. USS (and sub modules) reset released for operation */
46 #define USSSWRST_1 (0x0080) /* Enabled. USS (and sub modules) logic held in reset state */
47 #define USSSWRST_1_L (0x0080)
48 
49 
50 
51 
52 #define GENERIC_SAPH_IIDX (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0000))
53 #define GENERIC_SAPH_MIS (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0002))
54 #define GENERIC_SAPH_RIS (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0004))
55 #define GENERIC_SAPH_IMSC (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0006))
56 #define GENERIC_SAPH_ICR (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0008))
57 #define GENERIC_SAPH_ISR (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x000A))
58 #define GENERIC_SAPH_DESCLO (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x000C))
59 #define GENERIC_SAPH_DESCHI (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x000E))
60 #define GENERIC_SAPH_KEY (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0010))
61 #define GENERIC_SAPH_OCTL0 (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0012))
62 #define GENERIC_SAPH_OCTL1 (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0014))
63 #define GENERIC_SAPH_OSEL (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0016))
64 #define GENERIC_SAPH_CH0PUT (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0020))
65 #define GENERIC_SAPH_CH0PDT (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0022))
66 #define GENERIC_SAPH_CH0TT (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0024))
67 #define GENERIC_SAPH_CH1PUT (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0026))
68 #define GENERIC_SAPH_CH1PDT (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0028))
69 #define GENERIC_SAPH_CH1TT (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x002A))
70 #define GENERIC_SAPH_MCNF (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x002C))
71 #define GENERIC_SAPH_TACTL (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x002E))
72 #define GENERIC_SAPH_ICTL0 (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0030))
73 #define GENERIC_SAPH_BCTL (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0034))
74 #define GENERIC_SAPH_PGC (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0040))
75 #define GENERIC_SAPH_LP_E_PULS (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0042))
76 #define GENERIC_SAPH_HP_E_PULS (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0044))
77 #define GENERIC_SAPH_PGCTL (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0046))
78 #define GENERIC_SAPH_PPGTRIG (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0048))
79 #ifdef __MSP430_BASEADDRESS_SAPH_A__
80 #define GENERIC_SAPH_XPGCTL (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x004A))
81 #define GENERIC_SAPH_LP_X_PULS (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x004C))
82 #define GENERIC_SAPH_HP_X_PULS (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x004E))
83 #endif
84 #define GENERIC_SAPH_ASCTL0 (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0060))
85 #define GENERIC_SAPH_ASCTL1 (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0062))
86 #define GENERIC_SAPH_ASQTRIG (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0064))
87 #define GENERIC_SAPH_APOL (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0066))
88 #define GENERIC_SAPH_APLEV (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0068))
89 #define GENERIC_SAPH_APHIZ (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x006A))
90 #define GENERIC_SAPH_ATM_A (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x006E))
91 #define GENERIC_SAPH_ATM_B (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0070))
92 #define GENERIC_SAPH_ATM_C (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0072))
93 #define GENERIC_SAPH_ATM_D (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0074))
94 #define GENERIC_SAPH_ATM_E (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0076))
95 #define GENERIC_SAPH_ATM_F (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x0078))
96 #define GENERIC_SAPH_TBCTL (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x007A))
97 #define GENERIC_SAPH_ATIMLO (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x007C))
98 #define GENERIC_SAPH_ATIMHI (*(int *)(__MSP430_BASEADDRESS_GENERIC_SAPH__ + 0x007E))
99 
100 
101 
102 #endif
© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale