MSP430™CapTIvateSoftwareLibraryAPIGuide 1_70_00_03

rom_captivate_msp430fr2522_family.h
Go to the documentation of this file.
1 //*****************************************************************************
2 //
3 // rom_captivate_msp430fr2522_family.h
4 // Macros to facilitate calling functions in the ROM.
5 //
6 // Copyright (c) 2017 Texas Instruments Incorporated. All rights reserved.
7 // TI Information - Selective Disclosure
8 //
9 //*****************************************************************************
10 //
11
12 #ifndef ROM_CAPTIVATE_MSP430FR2522_H_
13 #define ROM_CAPTIVATE_MSP430FR2522_H_
14
15 #if (defined(__TI_COMPILER_VERSION__) && !defined(__LARGE_CODE_MODEL__)) || \
16 (defined(__IAR_SYSTEMS_ICC__) && (__CODE_MODEL__==__CODE_MODEL_SMALL__))
17
18 //*****************************************************************************
19 //
20 // CapTIvate ROM API Definitions
21 // - ROM_CAPTIVATE_APITABLE defines the beginning of the ROM section.
22 // - ROM_CAPTIVATETABLE is the ROM defined indirect address of the jump table.
23 // - ROM_CAPTIVATE_FXNTABLE is the direct address of the jump table.
24 // - ROM_CAPTIVATE_JUMPTABLE is the table address to use, and should be
25 // selected as ROM_CAPTIVATETABLE or ROM_CAPTIVATE_FXNTABLE.
26 //
27 //*****************************************************************************
28 #define ROM_CAPTIVATE_APITABLE ((uint16_t *)0x4000)
29 #define ROM_CAPTIVATE_VERSIONL (ROM_CAPTIVATE_APITABLE[0])
30 #define ROM_CAPTIVATE_VERSIONH (ROM_CAPTIVATE_APITABLE[1])
31 #define ROM_CAPTIVATETABLE ((uint16_t *)(ROM_CAPTIVATE_APITABLE[2]))
32 #define ROM_CAPTIVATE_FXNTABLE ((uint16_t *)0x4006)
33 #define ROM_CAPTIVATE_JUMPTABLE (ROM_CAPTIVATE_FXNTABLE)
34
35 //*****************************************************************************
36 //
37 // Macro to obtain ROM build version.
38 //
39 //*****************************************************************************
40 #define ROM_CAPTIVATE_getVersion \
41 ((uint32_t)ROM_CAPTIVATE_VERSIONH<<16|ROM_CAPTIVATE_VERSIONL)
42
43 //*****************************************************************************
44 //
45 // Macros for calling CAPTIVATE ROM functions in the CAPTIVATE API.
46 //
47 //*****************************************************************************
48 // ROM Function Definition: CAPT_selectTimerSource
49 #define ROM_CAPT_selectTimerSource \
50 ((void (*)(uint8_t source))ROM_CAPTIVATE_JUMPTABLE[0])
51
52 // ROM Function Definition: CAPT_computeArcTanApprox
53 #define ROM_CAPT_computeArcTanApprox \
54 ((uint16_t (*)(int32_t i32XComp, \
55 int32_t i32YComp))ROM_CAPTIVATE_JUMPTABLE[1])
56
57 // ROM Function Definition: CAPT_clearChannelOffState
58 #define ROM_CAPT_clearChannelOffState \
59 ((void (*)(uint8_t ui8Block, \
60 uint8_t ui8Pin))ROM_CAPTIVATE_JUMPTABLE[2])
61
62 // ROM Function Definition: CAPT_clearTimer
63 #define ROM_CAPT_clearTimer \
64 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[3])
65
66 // ROM Function Definition: CAPT_getChecksum
67 #define ROM_CAPT_getChecksum \
68 ((uint16_t (*)(const uint8_t *pBuffer, \
69 const uint16_t ui16Length))ROM_CAPTIVATE_JUMPTABLE[4])
70
71 // ROM Function Definition: CAPT_verifyChecksum
72 #define ROM_CAPT_verifyChecksum \
73 ((bool (*)(const uint8_t *pBuffer, \
74 const uint16_t ui16Length, \
75 const uint16_t ui16Checksum))ROM_CAPTIVATE_JUMPTABLE[5])
76
77 // ROM Function Definition: CAPT_updateTouch
78 #define ROM_CAPT_updateTouch \
79 ((bool (*)(tSensor *pSensor, \
80 tElement *pElement))ROM_CAPTIVATE_JUMPTABLE[6])
81
82 // ROM Function Definition: CAPT_getCyclePacket
83 #define ROM_CAPT_getCyclePacket \
84 ((uint16_t (*)(tSensor **sensorArray, \
85 uint8_t ui8SensorID, \
86 uint8_t ui8Cycle, \
87 uint8_t *pBuffer))ROM_CAPTIVATE_JUMPTABLE[7])
88
89 // ROM Function Definition: CAPT_clearCAPLPMCFG
90 #define ROM_CAPT_clearCAPLPMCFG \
91 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[8])
92
93 // ROM Function Definition: CAPT_clearChannelOnState
94 #define ROM_CAPT_clearChannelOnState \
95 ((void (*)(uint8_t ui8Block, \
96 uint8_t ui8Pin))ROM_CAPTIVATE_JUMPTABLE[9])
97
98 // ROM Function Definition: CAPT_pollResetStatus
99 #define ROM_CAPT_pollResetStatus \
100 ((bool (*)(void))ROM_CAPTIVATE_JUMPTABLE[10])
101
102 // ROM Function Definition: CAPT_pollCIPF
103 #define ROM_CAPT_pollCIPF \
104 ((bool (*)(void))ROM_CAPTIVATE_JUMPTABLE[11])
105
106 // ROM Function Definition: CAPT_computeWheelWrap
107 #define ROM_CAPT_computeWheelWrap \
108 ((uint16_t (*)(int16_t i16Position, \
109 uint16_t ui16MaxPosition))ROM_CAPTIVATE_JUMPTABLE[12])
110
111 // ROM Function Definition: CAPT_powerOn
112 #define ROM_CAPT_powerOn \
113 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[13])
114
115 // ROM Function Definition: CAPT_startTimer
116 #define ROM_CAPT_startTimer \
117 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[14])
118
119 // ROM Function Definition: CAPT_accessSensorParameter
120 #define ROM_CAPT_accessSensorParameter \
121 ((tTLParameterAccessResult (*)( tSensor **sensorArray, \
122 tParameterPacket *pPacket))ROM_CAPTIVATE_JUMPTABLE[16])
123
124 // ROM Function Definition: CAPT_clearCAPSTART
125 #define ROM_CAPT_clearCAPSTART \
126 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[17])
127
128 // ROM Function Definition: CAPT_processSlider
129 #define ROM_CAPT_processSlider \
130 ((void (*)(tSensor *pSlider))ROM_CAPTIVATE_JUMPTABLE[18])
131
132 // ROM Function Definition: CAPT_stopTimer
133 #define ROM_CAPT_stopTimer \
134 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[19])
135
136 // ROM Function Definition: CAPT_setChannelOnState
137 #define ROM_CAPT_setChannelOnState \
138 ((void (*)(uint8_t ui8Block, \
139 uint8_t ui8Pin))ROM_CAPTIVATE_JUMPTABLE[20])
140
141 // ROM Function Definition: CAPT_initByteQueue
142 #define ROM_CAPT_initByteQueue \
143 ((bool (*)(tByteQueue *pQueue, \
144 uint8_t *pBufferArray, \
145 uint16_t ui16BufferArraySize))ROM_CAPTIVATE_JUMPTABLE[21])
146
147 // ROM Function Definition: CAPT_reseedFilterAll
148 #define ROM_CAPT_reseedFilterAll \
149 ((void (*)(tSensor *pSensor, \
150 tFilterOption WhatToFilter))ROM_CAPTIVATE_JUMPTABLE[22])
151
152 // ROM Function Definition: CAPT_writeOffsetTap
153 #define ROM_CAPT_writeOffsetTap \
154 ((void (*)(uint8_t ui8Block, \
155 uint16_t ui16Value))ROM_CAPTIVATE_JUMPTABLE[23])
156
157 // ROM Function Definition: CAPT_setChannelOffState
158 #define ROM_CAPT_setChannelOffState \
159 ((void (*)(uint8_t ui8Block, \
160 uint8_t ui8Pin))ROM_CAPTIVATE_JUMPTABLE[24])
161
162 // ROM Function Definition: CAPT_readOffsetTap
163 #define ROM_CAPT_readOffsetTap \
164 ((uint16_t (*)(uint8_t ui8Block))ROM_CAPTIVATE_JUMPTABLE[28])
165
166 // ROM Function Definition: CAPT_enableISR
167 #define ROM_CAPT_enableISR \
168 ((void (*)(uint16_t interruptEnable))ROM_CAPTIVATE_JUMPTABLE[29])
169
170 // ROM Function Definition: CAPT_disableSensorSyncEvent
171 #define ROM_CAPT_disableSensorSyncEvent \
172 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[30])
173
174 // ROM Function Definition: CAPT_readConversion
175 #define ROM_CAPT_readConversion \
176 ((uint16_t (*)(uint8_t ui8Block))ROM_CAPTIVATE_JUMPTABLE[31])
177
178 // ROM Function Definition: CAPT_clearCCounter
179 #define ROM_CAPT_clearCCounter \
180 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[32])
181
182 // ROM Function Definition: CAPT_updateProx
183 #define ROM_CAPT_updateProx \
184 ((bool (*)(tSensor *pSensor, \
185 tElement *pElement))ROM_CAPTIVATE_JUMPTABLE[33])
186
187 // ROM Function Definition: CAPT_isByteQueueEmpty
188 #define ROM_CAPT_isByteQueueEmpty \
189 ((bool (*)(tByteQueue *pQueue))ROM_CAPTIVATE_JUMPTABLE[34])
190
191 // ROM Function Definition: CAPT_readTimerCompRegister
192 #define ROM_CAPT_readTimerCompRegister \
193 ((uint16_t (*)(void))ROM_CAPTIVATE_JUMPTABLE[35])
194
195 // ROM Function Definition: CAPT_applySensorFreq
196 #define ROM_CAPT_applySensorFreq \
197 ((void (*)(uint8_t freqSelect, \
198 tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[36])
199
200 // ROM Function Definition: CAPT_saveCycleResults
201 #define ROM_CAPT_saveCycleResults \
202 ((void (*)(tSensor *pSensor , \
203 tCycle *pCycle))ROM_CAPTIVATE_JUMPTABLE[37])
204
205 // ROM Function Definition: CAPT_togglePingPongBuffer
206 #define ROM_CAPT_togglePingPongBuffer \
207 ((bool (*)(tPingPongBuffer *PPBuffer))ROM_CAPTIVATE_JUMPTABLE[38])
208
209 // ROM Function Definition: CAPT_powerOff
210 #define ROM_CAPT_powerOff \
211 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[39])
212
213 // ROM Function Definition: CAPT_clearChannelEnable
214 #define ROM_CAPT_clearChannelEnable \
215 ((void (*)(uint8_t ui8Block, \
216 uint8_t ui8Pin))ROM_CAPTIVATE_JUMPTABLE[40])
217
218 // ROM Function Definition: CAPT_reset
219 #define ROM_CAPT_reset \
220 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[41])
221
222 // ROM Function Definition: CAPT_setChannelEnable
223 #define ROM_CAPT_setChannelEnable \
224 ((void (*)(uint8_t ui8Block, \
225 uint8_t ui8Pin))ROM_CAPTIVATE_JUMPTABLE[42])
226
227 // ROM Function Definition: CAPT_writeCoarseGain
228 #define ROM_CAPT_writeCoarseGain \
229 ((void (*)(uint8_t ui8Block, \
230 uint8_t ui8Value))ROM_CAPTIVATE_JUMPTABLE[44])
231
232 // ROM Function Definition: CAPT_computeSliderVectors
233 #define ROM_CAPT_computeSliderVectors \
234 ((uint16_t (*)(tSensor *pSlider))ROM_CAPTIVATE_JUMPTABLE[46])
235
236 // ROM Function Definition: CAPT_readFineGain
237 #define ROM_CAPT_readFineGain \
238 ((uint8_t (*)(uint8_t ui8Block))ROM_CAPTIVATE_JUMPTABLE[47])
239
240 // ROM Function Definition: CAPT_applySensorParams
241 #define ROM_CAPT_applySensorParams \
242 ((void (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[48])
243
244 // ROM Function Definition: CAPT_stuffSyncBytes
245 #define ROM_CAPT_stuffSyncBytes \
246 ((uint16_t (*)(uint8_t *pBuffer, \
247 uint16_t ui16Length))ROM_CAPTIVATE_JUMPTABLE[49])
248
249 // ROM Function Definition: CAPT_engageFSM
250 #define ROM_CAPT_engageFSM \
251 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[50])
252
253 // ROM Function Definition: CAPT_enableRefCap
254 #define ROM_CAPT_enableRefCap \
255 ((void (*)(tElement* pElement, \
256 uint8_t capSize))ROM_CAPTIVATE_JUMPTABLE[51])
257
258 // ROM Function Definition: CAPT_stopCCounter
259 #define ROM_CAPT_stopCCounter \
260 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[52])
261
262 // ROM Function Definition: CAPT_processReceivedData
263 #define ROM_CAPT_processReceivedData \
264 ((bool (*)(tByteQueue *pReceiveQueue, \
265 tParameterPacket *pPacket, \
266 tTLProtocolProcessingVariables *pVariables))ROM_CAPTIVATE_JUMPTABLE[53])
267
268 // ROM Function Definition: CAPT_enableSensorIO
269 #define ROM_CAPT_enableSensorIO \
270 ((void (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[54])
271
272 // ROM Function Definition: CAPT_computeIIRFilterFast
273 #define ROM_CAPT_computeIIRFilterFast \
274 ((IQ16_t (*)(IQ16_t *pRaw, \
275 IQ16_t *pFiltered, \
276 uint8_t ui8Beta))ROM_CAPTIVATE_JUMPTABLE[55])
277
278 // ROM Function Definition: CAPT_clearCycleIO
279 #define ROM_CAPT_clearCycleIO \
280 ((void (*)(tSensor *pSensor, \
281 tCycle *pCycle))ROM_CAPTIVATE_JUMPTABLE[56])
282
283 // ROM Function Definition: CAPT_disableSensorIO
284 #define ROM_CAPT_disableSensorIO \
285 ((void (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[57])
286
287 // ROM Function Definition: CAPT_clearSensorProxTouch
288 #define ROM_CAPT_clearSensorProxTouch \
289 ((void (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[58])
290
291 // ROM Function Definition: CAPT_selectCCounterInterval
292 #define ROM_CAPT_selectCCounterInterval \
293 ((void (*)(uint8_t counterSel))ROM_CAPTIVATE_JUMPTABLE[59])
294
295 // ROM Function Definition: CAPT_setCycleIO
296 #define ROM_CAPT_setCycleIO \
297 ((void (*)(tSensor *pSensor, \
298 tCycle *pCycle))ROM_CAPTIVATE_JUMPTABLE[60])
299
300 // ROM Function Definition: CAPT_initPingPongBuffer
301 #define ROM_CAPT_initPingPongBuffer \
302 ((bool (*)(tPingPongBuffer *PPBuffer, \
303 uint8_t *pBuffer1, \
304 uint8_t *pBuffer2))ROM_CAPTIVATE_JUMPTABLE[61])
305
306 // ROM Function Definition: CAPT_pushOntoByteQueue
307 #define ROM_CAPT_pushOntoByteQueue \
308 ((int8_t (*)(tByteQueue *pQueue, \
309 uint8_t ui8DataToAdd))ROM_CAPTIVATE_JUMPTABLE[62])
310
311 // ROM Function Definition: CAPT_writeTimerCompRegister
312 #define ROM_CAPT_writeTimerCompRegister \
313 ((void (*)(uint16_t compRegister))ROM_CAPTIVATE_JUMPTABLE[63])
314
315 // ROM Function Definition: CAPT_readTimerRegister
316 #define ROM_CAPT_readTimerRegister \
317 ((uint16_t (*)(void))ROM_CAPTIVATE_JUMPTABLE[64])
318
319 // ROM Function Definition: CAPT_initSensorIO
320 #define ROM_CAPT_initSensorIO \
321 ((void (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[65])
322
323 // ROM Function Definition: CAPT_writeFineGain
324 #define ROM_CAPT_writeFineGain \
325 ((void (*)(uint8_t ui8Block, \
326 uint8_t ui8Value))ROM_CAPTIVATE_JUMPTABLE[67])
327
328 // ROM Function Definition: CAPT_startCCounter
329 #define ROM_CAPT_startCCounter \
330 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[70])
331
332 // ROM Function Definition: CAPT_applyCycleFSM
333 #define ROM_CAPT_applyCycleFSM \
334 ((void (*)(tCycle *pCycle))ROM_CAPTIVATE_JUMPTABLE[71])
335
336 // ROM Function Definition: CAPT_setCAPSTART
337 #define ROM_CAPT_setCAPSTART \
338 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[73])
339
340 // ROM Function Definition: CAPT_reseedFilter
341 #define ROM_CAPT_reseedFilter \
342 ((void (*)(IQ16_t *pFilter, \
343 uint16_t ui16ReseedValue))ROM_CAPTIVATE_JUMPTABLE[74])
344
345 // ROM Function Definition: CAPT_saveCycleRawResults
346 #define ROM_CAPT_saveCycleRawResults \
347 ((void (*)(uint8_t indexFreq, \
348 tSensor *pSensor, \
349 tCycle *pCycle))ROM_CAPTIVATE_JUMPTABLE[75])
350
351 // ROM Function Definition: CAPT_updateFSMTouch
352 #define ROM_CAPT_updateFSMTouch \
353 ((void (*)(tSensor *pSensor, \
354 tElement *pElement))ROM_CAPTIVATE_JUMPTABLE[76])
355
356 // ROM Function Definition: CAPT_setCAPLPMCFG
357 #define ROM_CAPT_setCAPLPMCFG \
358 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[77])
359
360 // ROM Function Definition: CAPT_getByteQueueSize
361 #define ROM_CAPT_getByteQueueSize \
362 ((uint16_t (*)(tByteQueue *pQueue))ROM_CAPTIVATE_JUMPTABLE[78])
363
364 // ROM Function Definition: CAPT_setChannelActive
365 #define ROM_CAPT_setChannelActive \
366 ((void (*)(uint8_t ui8Block, \
367 uint8_t ui8Pin))ROM_CAPTIVATE_JUMPTABLE[79])
368
369 // ROM Function Definition: CAPT_pullFromByteQueue
370 #define ROM_CAPT_pullFromByteQueue \
371 ((int8_t (*)(tByteQueue *pQueue, \
372 uint8_t *pDestination))ROM_CAPTIVATE_JUMPTABLE[80])
373
374 // ROM Function Definition: CAPT_updateFSMProx
375 #define ROM_CAPT_updateFSMProx \
376 ((void (*)(tSensor *pSensor, \
377 tElement *pElement))ROM_CAPTIVATE_JUMPTABLE[81])
378
379 // ROM Function Definition: CAPT_disableTimerTrigMeasurement
380 #define ROM_CAPT_disableTimerTrigMeasurement \
381 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[83])
382
383 // ROM Function Definition: CAPT_selectTimerSourceDivider
384 #define ROM_CAPT_selectTimerSourceDivider \
385 ((void (*)(uint8_t sourceDiv))ROM_CAPTIVATE_JUMPTABLE[84])
386
387 // ROM Function Definition: CAPT_processButtons
388 #define ROM_CAPT_processButtons \
389 ((void (*)(tSensor *pButtonGroup))ROM_CAPTIVATE_JUMPTABLE[85])
390
391 // ROM Function Definition: CAPT_disableRefCap
392 #define ROM_CAPT_disableRefCap \
393 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[86])
394
395 // ROM Function Definition: CAPT_releaseStabilization
396 #define ROM_CAPT_releaseStabilization \
397 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[87])
398
399 // ROM Function Definition: CAPT_enableTimerTrigMeasurement
400 #define ROM_CAPT_enableTimerTrigMeasurement \
401 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[88])
402
403 // ROM Function Definition: CAPT_enableSensorSyncEvent
404 #define ROM_CAPT_enableSensorSyncEvent \
405 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[89])
406
407 // ROM Function Definition: CAPT_bypassFSM
408 #define ROM_CAPT_bypassFSM \
409 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[90])
410
411 // ROM Function Definition: CAPT_updateLTA
412 #define ROM_CAPT_updateLTA \
413 ((void (*)(tSensor *pSensor, \
414 tElement *pElement))ROM_CAPTIVATE_JUMPTABLE[91])
415
416 // ROM Function Definition: CAPT_readCoarseGain
417 #define ROM_CAPT_readCoarseGain \
418 ((uint8_t (*)(uint8_t ui8Block))ROM_CAPTIVATE_JUMPTABLE[92])
419
420 // ROM Function Definition: CAPT_registerCallback
421 #define ROM_CAPT_registerCallback \
422 ((void (*)(tSensor *pSensor, \
423 void (* user_callback)(tSensor *pSensor)))ROM_CAPTIVATE_JUMPTABLE[93])
424
425 // ROM Function Definition: CAPT_applyCycleComp
426 #define ROM_CAPT_applyCycleComp \
427 ((void (*)(uint8_t freqOffset, \
428 tCycle * pCycle))ROM_CAPTIVATE_JUMPTABLE[94])
429
430 // ROM Function Definition: CAPT_updateSensorProxTouch
431 #define ROM_CAPT_updateSensorProxTouch \
432 ((void (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[95])
433
434 // ROM Function Definition: CAPT_clearChannelActive
435 #define ROM_CAPT_clearChannelActive \
436 ((void (*)(uint8_t ui8Block, \
437 uint8_t ui8Pin))ROM_CAPTIVATE_JUMPTABLE[96])
438
439 // ROM Function Definition: CAPT_getSensorPacket
440 #define ROM_CAPT_getSensorPacket \
441 ((uint16_t (*)(tSensor **sensorArray, \
442 uint8_t ui8SensorID, \
443 uint8_t *pBuffer))ROM_CAPTIVATE_JUMPTABLE[97])
444
445 // ROM Function Definition: CAPT_disableISR
446 #define ROM_CAPT_disableISR \
447 ((void (*)(uint16_t interruptDisable))ROM_CAPTIVATE_JUMPTABLE[98])
448
449 // ROM Function Definition: CAPT_isByteQueueFull
450 #define ROM_CAPT_isByteQueueFull \
451 ((bool (*)(tByteQueue *pQueue))ROM_CAPTIVATE_JUMPTABLE[99])
452
453 // ROM Function Definition: CAPT_forceSensorIO
454 #define ROM_CAPT_forceSensorIO \
455 ((void (*)(tSenseTechnology rxBarTx, \
456 tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[100])
457
458 // ROM Function Definition: CAPT_computeIIRFilter
459 #define ROM_CAPT_computeIIRFilter \
460 ((IQ16_t (*)(IQ16_t *pRaw, \
461 IQ16_t *pFiltered, \
462 uint8_t ui8Beta))ROM_CAPTIVATE_JUMPTABLE[101])
463
464 // ROM Function Definition: CAPT_blockOnFlag
465 #define ROM_CAPT_blockOnFlag \
466 ((void (*)(volatile bool *pFlag, \
467 uint8_t ui8LPM))ROM_CAPTIVATE_JUMPTABLE[102])
468
469 // ROM Function Definition: CAPT_loadCycle
470 #define ROM_CAPT_loadCycle \
471 ((void (*)(tSensor *pSensor, \
472 uint8_t ui8Cycle, \
473 uint8_t ui8Freq, \
474 bool bFSM))ROM_CAPTIVATE_JUMPTABLE[103])
475
476 // ROM Function Definition: CAPT_unloadCycle
477 #define ROM_CAPT_unloadCycle \
478 ((void (*)(tSensor *pSensor, \
479 uint8_t ui8Cycle, \
480 uint8_t ui8Index, \
481 bool bFSM))ROM_CAPTIVATE_JUMPTABLE[104])
482
483 // ROM Function Definition: CAPT_startConversion
484 #define ROM_CAPT_startConversion \
485 ((void (*)(volatile bool *pbEndOfConversionFlag))ROM_CAPTIVATE_JUMPTABLE[105])
486
487 // ROM Function Definition: CAPT_cleanupAfterConversion
488 #define ROM_CAPT_cleanupAfterConversion \
489 ((void (*)(void))ROM_CAPTIVATE_JUMPTABLE[106])
490
491 // ROM Function Definition: CAPT_startConversionAndWaitUntilDone
492 #define ROM_CAPT_startConversionAndWaitUntilDone \
493 ((void (*)( volatile bool *pbEndOfConversionFlag, \
494 uint8_t ui8LPM))ROM_CAPTIVATE_JUMPTABLE[107])
495
496 // ROM Function Definition: CAPT_clearIFG
497 #define ROM_CAPT_clearIFG \
498 ((void (*)(uint16_t ui16InterruptMask))ROM_CAPTIVATE_JUMPTABLE[108])
499
500 // ROM Function Definition: CAPT_calibrateGain
501 #define ROM_CAPT_calibrateGain \
502 ((void (*)(tSensor *pSensor, \
503 volatile bool *pbEndOfConversionFlag, \
504 uint8_t ui8Frequency))ROM_CAPTIVATE_JUMPTABLE[109])
505
506 // ROM Function Definition: CAPT_calibrateOffset
507 #define ROM_CAPT_calibrateOffset \
508 ((void (*)(tSensor *pSensor, \
509 volatile bool *pbEndOfConversionFlag, \
510 uint8_t ui8Frequency))ROM_CAPTIVATE_JUMPTABLE[110])
511
512 // ROM Function Definition: CAPT_testForRecalibration
513 #define ROM_CAPT_testForRecalibration \
514 ((bool (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[111])
515
516 // ROM Function Definition: CAPT_flagAllElementsForReseed
517 #define ROM_CAPT_flagAllElementsForReseed \
518 ((void (*)(tSensor* pSensor))ROM_CAPTIVATE_JUMPTABLE[112])
519
520 // ROM Function Definition: CAPT_resolveMultiFreqSet
521 #define ROM_CAPT_resolveMultiFreqSet \
522 ((void (*)(const uint16_t *pNewSet, \
523 uint16_t *pResult, \
524 uint16_t *pNoiseLevel, \
525 bool bRemoveOutlier))ROM_CAPTIVATE_JUMPTABLE[113])
526
527 // ROM Function Definition: CAPT_updateSensorTimeout
528 #define ROM_CAPT_updateSensorTimeout \
529 ((void (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[114])
530
531 // ROM Function Definition: CAPT_updateSensorNoise
532 #define ROM_CAPT_updateSensorNoise \
533 ((void (*)(tSensor *pSensor))ROM_CAPTIVATE_JUMPTABLE[115])
534
535 // ROM Function Definition: CAPT_convertAbsToRel
536 #define ROM_CAPT_convertAbsToRel \
537 ((uint8_t (*)(uint16_t ui16Ref, \
538 uint16_t ui16Abs))ROM_CAPTIVATE_JUMPTABLE[116])
539
540 // ROM Function Definition: CAPT_convertRelToAbs
541 #define ROM_CAPT_convertRelToAbs \
542 ((uint16_t (*)(uint16_t ui16Ref, \
543 uint8_t ui8Rel))ROM_CAPTIVATE_JUMPTABLE[117])
544
545
546 #else
547 #error "Large code/data models are not supported"
548 #endif
549
550 #endif // ROM_CAPTIVATE_MSP430FR2522_H_

© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale