7 #ifndef __MSP430WARE_TLV_H__
8 #define __MSP430WARE_TLV_H__
10 #include "inc/hw_memmap.h"
12 #ifdef __MSP430_HAS_TLV__
25 #include "inc/hw_memmap.h"
31 struct s_TLV_Die_Record {
33 uint16_t die_x_position;
34 uint16_t die_y_position;
35 uint16_t test_results;
38 struct s_TLV_ADC_Cal_Data {
39 uint16_t adc_gain_factor;
41 uint16_t adc_ref15_30_temp;
42 uint16_t adc_ref15_85_temp;
43 uint16_t adc_ref20_30_temp;
44 uint16_t adc_ref20_85_temp;
45 uint16_t adc_ref25_30_temp;
46 uint16_t adc_ref25_85_temp;
49 struct s_TLV_Timer_D_Cal_Data {
51 uint16_t TDH0CTL1_128;
52 uint16_t TDH0CTL1_200;
53 uint16_t TDH0CTL1_256;
56 struct s_TLV_REF_Cal_Data {
62 struct s_Peripheral_Memory_Data {
75 #define TLV_TAG_LDTAG TLV_LDTAG
76 #define TLV_TAG_PDTAG TLV_PDTAG
77 #define TLV_TAG_Reserved3 TLV_Reserved3
78 #define TLV_TAG_Reserved4 TLV_Reserved4
79 #define TLV_TAG_BLANK TLV_BLANK
80 #define TLV_TAG_Reserved6 TLV_Reserved6
81 #define TLV_TAG_Reserved7 TLV_Reserved7
82 #define TLV_TAG_TAGEND TLV_TAGEND
83 #define TLV_TAG_TAGEXT TLV_TAGEXT
84 #define TLV_TAG_TIMER_D_CAL TLV_TIMERDCAL
85 #define TLV_DEVICE_ID_0 0x1A04
86 #define TLV_DEVICE_ID_1 0x1A05
87 #define TLV_TAG_DIERECORD TLV_DIERECORD
88 #define TLV_TAG_ADCCAL TLV_ADCCAL
89 #define TLV_TAG_ADC12CAL TLV_ADC12CAL
90 #define TLV_TAG_ADC10CAL TLV_ADC10CAL
91 #define TLV_TAG_REFCAL TLV_REFCAL
99 #define TLV_PID_NO_MODULE (0x00)
100 #define TLV_PID_PORTMAPPING (0x10)
101 #define TLV_PID_MSP430CPUXV2 (0x23)
102 #define TLV_PID_JTAG (0x09)
103 #define TLV_PID_SBW (0x0F)
104 #define TLV_PID_EEM_XS (0x02)
105 #define TLV_PID_EEM_S (0x03)
106 #define TLV_PID_EEM_M (0x04)
107 #define TLV_PID_EEM_L (0x05)
108 #define TLV_PID_PMM (0x30)
109 #define TLV_PID_PMM_FR (0x32)
110 #define TLV_PID_FCTL (0x39)
111 #define TLV_PID_CRC16 (0x3C)
112 #define TLV_PID_CRC16_RB (0x3D)
113 #define TLV_PID_WDT_A (0x40)
114 #define TLV_PID_SFR (0x41)
115 #define TLV_PID_SYS (0x42)
116 #define TLV_PID_RAMCTL (0x44)
117 #define TLV_PID_DMA_1 (0x46)
118 #define TLV_PID_DMA_3 (0x47)
119 #define TLV_PID_UCS (0x48)
120 #define TLV_PID_DMA_6 (0x4A)
121 #define TLV_PID_DMA_2 (0x4B)
122 #define TLV_PID_PORT1_2 (0x51)
123 #define TLV_PID_PORT3_4 (0x52)
124 #define TLV_PID_PORT5_6 (0x53)
125 #define TLV_PID_PORT7_8 (0x54)
126 #define TLV_PID_PORT9_10 (0x55)
127 #define TLV_PID_PORT11_12 (0x56)
128 #define TLV_PID_PORTU (0x5E)
129 #define TLV_PID_PORTJ (0x5F)
130 #define TLV_PID_TA2 (0x60)
131 #define TLV_PID_TA3 (0x61)
132 #define TLV_PID_TA5 (0x62)
133 #define TLV_PID_TA7 (0x63)
134 #define TLV_PID_TB3 (0x65)
135 #define TLV_PID_TB5 (0x66)
136 #define TLV_PID_TB7 (0x67)
137 #define TLV_PID_RTC (0x68)
138 #define TLV_PID_BT_RTC (0x69)
139 #define TLV_PID_BBS (0x6A)
140 #define TLV_PID_RTC_B (0x6B)
141 #define TLV_PID_TD2 (0x6C)
142 #define TLV_PID_TD3 (0x6D)
143 #define TLV_PID_TD5 (0x6E)
144 #define TLV_PID_TD7 (0x6F)
145 #define TLV_PID_TEC (0x70)
146 #define TLV_PID_RTC_C (0x71)
147 #define TLV_PID_AES (0x80)
148 #define TLV_PID_MPY16 (0x84)
149 #define TLV_PID_MPY32 (0x85)
150 #define TLV_PID_MPU (0x86)
151 #define TLV_PID_USCI_AB (0x90)
152 #define TLV_PID_USCI_A (0x91)
153 #define TLV_PID_USCI_B (0x92)
154 #define TLV_PID_EUSCI_A (0x94)
155 #define TLV_PID_EUSCI_B (0x95)
156 #define TLV_PID_REF (0xA0)
157 #define TLV_PID_COMP_B (0xA8)
158 #define TLV_PID_COMP_D (0xA9)
159 #define TLV_PID_USB (0x98)
160 #define TLV_PID_LCD_B (0xB1)
161 #define TLV_PID_LCD_C (0xB2)
162 #define TLV_PID_DAC12_A (0xC0)
163 #define TLV_PID_SD16_B_1 (0xC8)
164 #define TLV_PID_SD16_B_2 (0xC9)
165 #define TLV_PID_SD16_B_3 (0xCA)
166 #define TLV_PID_SD16_B_4 (0xCB)
167 #define TLV_PID_SD16_B_5 (0xCC)
168 #define TLV_PID_SD16_B_6 (0xCD)
169 #define TLV_PID_SD16_B_7 (0xCE)
170 #define TLV_PID_SD16_B_8 (0xCF)
171 #define TLV_PID_ADC12_A (0xD1)
172 #define TLV_PID_ADC10_A (0xD3)
173 #define TLV_PID_ADC10_B (0xD4)
174 #define TLV_PID_SD16_A (0xD8)
175 #define TLV_PID_TI_BSL (0xFC)
230 extern void TLV_getInfo(uint8_t tag,
233 uint16_t **data_address);
243 extern uint16_t TLV_getDeviceType(
void);
267 extern uint16_t TLV_getMemory(uint8_t instance);
371 extern uint16_t TLV_getPeripheral(uint8_t tag,
391 extern uint8_t TLV_getInterrupt(uint8_t tag);
403 #endif // __MSP430WARE_TLV_H__