MSP430 DriverLib for MSP430F5xx_6xx Devices  2.91.13.01
sd24_b.h
1 //*****************************************************************************
2 //
3 // sd24_b.h - Driver for the SD24_B Module.
4 //
5 //*****************************************************************************
6 
7 #ifndef __MSP430WARE_SD24_B_H__
8 #define __MSP430WARE_SD24_B_H__
9 
10 #include "inc/hw_memmap.h"
11 
12 #ifdef __MSP430_HAS_SD24_B__
13 
14 //*****************************************************************************
15 //
16 // If building with a C++ compiler, make all of the definitions in this header
17 // have a C binding.
18 //
19 //*****************************************************************************
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
25 #include "inc/hw_memmap.h"
26 //*****************************************************************************
27 //
28 //! \brief Used in the SD24_B_init() function as the param parameter.
29 //
30 //*****************************************************************************
31 typedef struct SD24_B_initParam {
32  //! Selects the clock that will be used as the SD24_B core
33  //! \n Valid values are:
34  //! - \b SD24_B_CLOCKSOURCE_MCLK [Default]
35  //! - \b SD24_B_CLOCKSOURCE_SMCLK
36  //! - \b SD24_B_CLOCKSOURCE_ACLK
37  //! - \b SD24_B_CLOCKSOURCE_SD24CLK
39  //! Selects the amount that the clock will be predivided
40  //! \n Valid values are:
41  //! - \b SD24_B_PRECLOCKDIVIDER_1 [Default]
42  //! - \b SD24_B_PRECLOCKDIVIDER_2
43  //! - \b SD24_B_PRECLOCKDIVIDER_4
44  //! - \b SD24_B_PRECLOCKDIVIDER_8
45  //! - \b SD24_B_PRECLOCKDIVIDER_16
46  //! - \b SD24_B_PRECLOCKDIVIDER_32
47  //! - \b SD24_B_PRECLOCKDIVIDER_64
48  //! - \b SD24_B_PRECLOCKDIVIDER_128
49  uint16_t clockPreDivider;
50  //! Selects the amount that the clock will be divided.
51  //! \n Valid values are:
52  //! - \b SD24_B_CLOCKDIVIDER_1 [Default]
53  //! - \b SD24_B_CLOCKDIVIDER_2
54  //! - \b SD24_B_CLOCKDIVIDER_3
55  //! - \b SD24_B_CLOCKDIVIDER_4
56  //! - \b SD24_B_CLOCKDIVIDER_5
57  //! - \b SD24_B_CLOCKDIVIDER_6
58  //! - \b SD24_B_CLOCKDIVIDER_7
59  //! - \b SD24_B_CLOCKDIVIDER_8
60  //! - \b SD24_B_CLOCKDIVIDER_9
61  //! - \b SD24_B_CLOCKDIVIDER_10
62  //! - \b SD24_B_CLOCKDIVIDER_11
63  //! - \b SD24_B_CLOCKDIVIDER_12
64  //! - \b SD24_B_CLOCKDIVIDER_13
65  //! - \b SD24_B_CLOCKDIVIDER_14
66  //! - \b SD24_B_CLOCKDIVIDER_15
67  //! - \b SD24_B_CLOCKDIVIDER_16
68  //! - \b SD24_B_CLOCKDIVIDER_17
69  //! - \b SD24_B_CLOCKDIVIDER_18
70  //! - \b SD24_B_CLOCKDIVIDER_19
71  //! - \b SD24_B_CLOCKDIVIDER_20
72  //! - \b SD24_B_CLOCKDIVIDER_21
73  //! - \b SD24_B_CLOCKDIVIDER_22
74  //! - \b SD24_B_CLOCKDIVIDER_23
75  //! - \b SD24_B_CLOCKDIVIDER_24
76  //! - \b SD24_B_CLOCKDIVIDER_25
77  //! - \b SD24_B_CLOCKDIVIDER_26
78  //! - \b SD24_B_CLOCKDIVIDER_27
79  //! - \b SD24_B_CLOCKDIVIDER_28
80  //! - \b SD24_B_CLOCKDIVIDER_29
81  //! - \b SD24_B_CLOCKDIVIDER_30
82  //! - \b SD24_B_CLOCKDIVIDER_31
83  //! - \b SD24_B_CLOCKDIVIDER_32
84  uint16_t clockDivider;
85  //! Selects the reference source for the SD24_B core
86  //! \n Valid values are:
87  //! - \b SD24_B_REF_EXTERNAL [Default]
88  //! - \b SD24_B_REF_INTERNAL
89  uint16_t referenceSelect;
91 
92 //*****************************************************************************
93 //
94 //! \brief Used in the SD24_B_initConverter() function as the param parameter.
95 //
96 //*****************************************************************************
97 typedef struct SD24_B_initConverterParam {
98  //! Selects the converter that will be configured. Check datasheet for
99  //! available converters on device.
100  //! \n Valid values are:
101  //! - \b SD24_B_CONVERTER_0
102  //! - \b SD24_B_CONVERTER_1
103  //! - \b SD24_B_CONVERTER_2
104  //! - \b SD24_B_CONVERTER_3
105  //! - \b SD24_B_CONVERTER_4
106  //! - \b SD24_B_CONVERTER_5
107  //! - \b SD24_B_CONVERTER_6
108  //! - \b SD24_B_CONVERTER_7
109  uint8_t converter;
110  //! Selects how the data will be aligned in result
111  //! \n Valid values are:
112  //! - \b SD24_B_ALIGN_RIGHT [Default]
113  //! - \b SD24_B_ALIGN_LEFT
114  uint8_t alignment;
115  //! Selects what will trigger the start of the converter
116  //! \n Valid values are:
117  //! - \b SD24_B_CONVERSION_SELECT_SD24SC [Default]
118  //! - \b SD24_B_CONVERSION_SELECT_EXT1
119  //! - \b SD24_B_CONVERSION_SELECT_EXT2
120  //! - \b SD24_B_CONVERSION_SELECT_EXT3
121  //! - \b SD24_B_CONVERSION_SELECT_GROUP0
122  //! - \b SD24_B_CONVERSION_SELECT_GROUP1
123  //! - \b SD24_B_CONVERSION_SELECT_GROUP2
124  //! - \b SD24_B_CONVERSION_SELECT_GROUP3
125  uint8_t startSelect;
126  //! Determines whether the converter will do continuous samples or a single
127  //! sample
128  //! \n Valid values are:
129  //! - \b SD24_B_CONTINUOUS_MODE [Default]
130  //! - \b SD24_B_SINGLE_MODE
131  uint8_t conversionMode;
133 
134 //*****************************************************************************
135 //
136 //! \brief Used in the SD24_B_initConverterAdvanced() function as the param
137 //! parameter.
138 //
139 //*****************************************************************************
141  //! Selects the converter that will be configured. Check datasheet for
142  //! available converters on device.
143  //! \n Valid values are:
144  //! - \b SD24_B_CONVERTER_0
145  //! - \b SD24_B_CONVERTER_1
146  //! - \b SD24_B_CONVERTER_2
147  //! - \b SD24_B_CONVERTER_3
148  //! - \b SD24_B_CONVERTER_4
149  //! - \b SD24_B_CONVERTER_5
150  //! - \b SD24_B_CONVERTER_6
151  //! - \b SD24_B_CONVERTER_7
152  uint8_t converter;
153  //! Selects how the data will be aligned in result
154  //! \n Valid values are:
155  //! - \b SD24_B_ALIGN_RIGHT [Default]
156  //! - \b SD24_B_ALIGN_LEFT
157  uint8_t alignment;
158  //! Selects what will trigger the start of the converter
159  //! \n Valid values are:
160  //! - \b SD24_B_CONVERSION_SELECT_SD24SC [Default]
161  //! - \b SD24_B_CONVERSION_SELECT_EXT1
162  //! - \b SD24_B_CONVERSION_SELECT_EXT2
163  //! - \b SD24_B_CONVERSION_SELECT_EXT3
164  //! - \b SD24_B_CONVERSION_SELECT_GROUP0
165  //! - \b SD24_B_CONVERSION_SELECT_GROUP1
166  //! - \b SD24_B_CONVERSION_SELECT_GROUP2
167  //! - \b SD24_B_CONVERSION_SELECT_GROUP3
168  uint8_t startSelect;
169  //! Determines whether the converter will do continuous samples or a single
170  //! sample
171  //! \n Valid values are:
172  //! - \b SD24_B_CONTINUOUS_MODE [Default]
173  //! - \b SD24_B_SINGLE_MODE
174  uint8_t conversionMode;
175  //! Selects how the data format of the results
176  //! \n Valid values are:
177  //! - \b SD24_B_DATA_FORMAT_BINARY [Default]
178  //! - \b SD24_B_DATA_FORMAT_2COMPLEMENT
179  uint8_t dataFormat;
180  //! Selects the delay for the interrupt
181  //! \n Valid values are:
182  //! - \b SD24_B_FOURTH_SAMPLE_INTERRUPT [Default]
183  //! - \b SD24_B_THIRD_SAMPLE_INTERRUPT
184  //! - \b SD24_B_SECOND_SAMPLE_INTERRUPT
185  //! - \b SD24_B_FIRST_SAMPLE_INTERRUPT
186  uint8_t sampleDelay;
187  //! Selects oversampling ratio for the converter
188  //! \n Valid values are:
189  //! - \b SD24_B_OVERSAMPLE_32
190  //! - \b SD24_B_OVERSAMPLE_64
191  //! - \b SD24_B_OVERSAMPLE_128
192  //! - \b SD24_B_OVERSAMPLE_256
193  //! - \b SD24_B_OVERSAMPLE_512
194  //! - \b SD24_B_OVERSAMPLE_1024
195  uint16_t oversampleRatio;
196  //! Selects the gain for the converter
197  //! \n Valid values are:
198  //! - \b SD24_B_GAIN_1 [Default]
199  //! - \b SD24_B_GAIN_2
200  //! - \b SD24_B_GAIN_4
201  //! - \b SD24_B_GAIN_8
202  //! - \b SD24_B_GAIN_16
203  //! - \b SD24_B_GAIN_32
204  //! - \b SD24_B_GAIN_64
205  //! - \b SD24_B_GAIN_128
206  uint8_t gain;
208 
209 
210 //*****************************************************************************
211 //
212 // The following are values that can be passed to the clockSourceSelect
213 // parameter for functions: SD24_B_init(); the param parameter for functions:
214 // SD24_B_init().
215 //
216 //*****************************************************************************
217 #define SD24_B_CLOCKSOURCE_MCLK (SD24SSEL__MCLK)
218 #define SD24_B_CLOCKSOURCE_SMCLK (SD24SSEL__SMCLK)
219 #define SD24_B_CLOCKSOURCE_ACLK (SD24SSEL__ACLK)
220 #define SD24_B_CLOCKSOURCE_SD24CLK (SD24SSEL__SD24CLK)
221 
222 //*****************************************************************************
223 //
224 // The following are values that can be passed to the referenceSelect parameter
225 // for functions: SD24_B_init(); the param parameter for functions:
226 // SD24_B_init().
227 //
228 //*****************************************************************************
229 #define SD24_B_REF_EXTERNAL (0x00)
230 #define SD24_B_REF_INTERNAL (SD24REFS)
231 
232 //*****************************************************************************
233 //
234 // The following are values that can be passed to the clockPreDivider parameter
235 // for functions: SD24_B_init(); the param parameter for functions:
236 // SD24_B_init().
237 //
238 //*****************************************************************************
239 #define SD24_B_PRECLOCKDIVIDER_1 (SD24PDIV_0)
240 #define SD24_B_PRECLOCKDIVIDER_2 (SD24PDIV_1)
241 #define SD24_B_PRECLOCKDIVIDER_4 (SD24PDIV_2)
242 #define SD24_B_PRECLOCKDIVIDER_8 (SD24PDIV_3)
243 #define SD24_B_PRECLOCKDIVIDER_16 (SD24PDIV_4)
244 #define SD24_B_PRECLOCKDIVIDER_32 (SD24PDIV_5)
245 #define SD24_B_PRECLOCKDIVIDER_64 (SD24PDIV_6)
246 #define SD24_B_PRECLOCKDIVIDER_128 (SD24PDIV_7)
247 
248 //*****************************************************************************
249 //
250 // The following are values that can be passed to the clockDivider parameter
251 // for functions: SD24_B_init(); the param parameter for functions:
252 // SD24_B_init().
253 //
254 //*****************************************************************************
255 #define SD24_B_CLOCKDIVIDER_1 (0x00)
256 #define SD24_B_CLOCKDIVIDER_2 (SD24DIV0)
257 #define SD24_B_CLOCKDIVIDER_3 (SD24DIV1)
258 #define SD24_B_CLOCKDIVIDER_4 (SD24DIV1 | SD24DIV0)
259 #define SD24_B_CLOCKDIVIDER_5 (SD24DIV2)
260 #define SD24_B_CLOCKDIVIDER_6 (SD24DIV2 | SD24DIV0)
261 #define SD24_B_CLOCKDIVIDER_7 (SD24DIV2 | SD24DIV1)
262 #define SD24_B_CLOCKDIVIDER_8 (SD24DIV2 | SD24DIV1 | SD24DIV0)
263 #define SD24_B_CLOCKDIVIDER_9 (SD24DIV3)
264 #define SD24_B_CLOCKDIVIDER_10 (SD24DIV3 | SD24DIV0)
265 #define SD24_B_CLOCKDIVIDER_11 (SD24DIV3 | SD24DIV1)
266 #define SD24_B_CLOCKDIVIDER_12 (SD24DIV3 | SD24DIV1 | SD24DIV0)
267 #define SD24_B_CLOCKDIVIDER_13 (SD24DIV3 | SD24DIV2)
268 #define SD24_B_CLOCKDIVIDER_14 (SD24DIV3 | SD24DIV2 | SD24DIV0)
269 #define SD24_B_CLOCKDIVIDER_15 (SD24DIV3 | SD24DIV2 | SD24DIV1)
270 #define SD24_B_CLOCKDIVIDER_16 (SD24DIV3 | SD24DIV2 | SD24DIV1 | SD24DIV0)
271 #define SD24_B_CLOCKDIVIDER_17 (SD24DIV4)
272 #define SD24_B_CLOCKDIVIDER_18 (SD24DIV4 | SD24DIV0)
273 #define SD24_B_CLOCKDIVIDER_19 (SD24DIV4 | SD24DIV1)
274 #define SD24_B_CLOCKDIVIDER_20 (SD24DIV4 | SD24DIV1 | SD24DIV0)
275 #define SD24_B_CLOCKDIVIDER_21 (SD24DIV4 | SD24DIV2)
276 #define SD24_B_CLOCKDIVIDER_22 (SD24DIV4 | SD24DIV2 | SD24DIV0)
277 #define SD24_B_CLOCKDIVIDER_23 (SD24DIV4 | SD24DIV2 | SD24DIV1)
278 #define SD24_B_CLOCKDIVIDER_24 (SD24DIV4 | SD24DIV2 | SD24DIV1 | SD24DIV0)
279 #define SD24_B_CLOCKDIVIDER_25 (SD24DIV4 | SD24DIV3)
280 #define SD24_B_CLOCKDIVIDER_26 (SD24DIV4 | SD24DIV3 | SD24DIV0)
281 #define SD24_B_CLOCKDIVIDER_27 (SD24DIV4 | SD24DIV3 | SD24DIV1)
282 #define SD24_B_CLOCKDIVIDER_28 (SD24DIV4 | SD24DIV3 | SD24DIV1 | SD24DIV0)
283 #define SD24_B_CLOCKDIVIDER_29 (SD24DIV4 | SD24DIV3 | SD24DIV2)
284 #define SD24_B_CLOCKDIVIDER_30 (SD24DIV4 | SD24DIV3 | SD24DIV2 | SD24DIV0)
285 #define SD24_B_CLOCKDIVIDER_31 (SD24DIV4 | SD24DIV3 | SD24DIV2 | SD24DIV1)
286 #define SD24_B_CLOCKDIVIDER_32 \
287  (SD24DIV4 | SD24DIV3 | SD24DIV2 | SD24DIV1 | SD24DIV0)
288 
289 //*****************************************************************************
290 //
291 // The following are values that can be passed to the param parameter for
292 // functions: SD24_B_initConverter(), and SD24_B_initConverterAdvanced().
293 //
294 //*****************************************************************************
295 #define SD24_B_CONTINUOUS_MODE (0x00)
296 #define SD24_B_SINGLE_MODE (SD24SNGL_H)
297 
298 //*****************************************************************************
299 //
300 // The following are values that can be passed to the converter parameter for
301 // functions: SD24_B_setConverterDataFormat(),
302 // SD24_B_startConverterConversion(), SD24_B_stopConverterConversion(),
303 // SD24_B_setInterruptDelay(), SD24_B_setConversionDelay(),
304 // SD24_B_setOversampling(), SD24_B_setGain(), SD24_B_getResults(),
305 // SD24_B_getHighWordResults(), SD24_B_enableInterrupt(),
306 // SD24_B_disableInterrupt(), SD24_B_clearInterrupt(), and
307 // SD24_B_getInterruptStatus(); the param parameter for functions:
308 // SD24_B_initConverter(), and SD24_B_initConverterAdvanced().
309 //
310 //*****************************************************************************
311 #define SD24_B_CONVERTER_0 0
312 #define SD24_B_CONVERTER_1 1
313 #define SD24_B_CONVERTER_2 2
314 #define SD24_B_CONVERTER_3 3
315 #define SD24_B_CONVERTER_4 4
316 #define SD24_B_CONVERTER_5 5
317 #define SD24_B_CONVERTER_6 6
318 #define SD24_B_CONVERTER_7 7
319 
320 //*****************************************************************************
321 //
322 // The following are values that can be passed to the param parameter for
323 // functions: SD24_B_initConverter(), and SD24_B_initConverterAdvanced().
324 //
325 //*****************************************************************************
326 #define SD24_B_ALIGN_RIGHT (0x00)
327 #define SD24_B_ALIGN_LEFT (SD24ALGN)
328 
329 //*****************************************************************************
330 //
331 // The following are values that can be passed to the param parameter for
332 // functions: SD24_B_initConverter(), and SD24_B_initConverterAdvanced().
333 //
334 //*****************************************************************************
335 #define SD24_B_CONVERSION_SELECT_SD24SC (SD24SCS__SD24SC)
336 #define SD24_B_CONVERSION_SELECT_EXT1 (SD24SCS__EXT1)
337 #define SD24_B_CONVERSION_SELECT_EXT2 (SD24SCS__EXT2)
338 #define SD24_B_CONVERSION_SELECT_EXT3 (SD24SCS__EXT3)
339 #define SD24_B_CONVERSION_SELECT_GROUP0 (SD24SCS__GROUP0)
340 #define SD24_B_CONVERSION_SELECT_GROUP1 (SD24SCS__GROUP1)
341 #define SD24_B_CONVERSION_SELECT_GROUP2 (SD24SCS__GROUP2)
342 #define SD24_B_CONVERSION_SELECT_GROUP3 (SD24SCS__GROUP3)
343 
344 //*****************************************************************************
345 //
346 // The following are values that can be passed to the oversampleRatio parameter
347 // for functions: SD24_B_setOversampling(); the param parameter for functions:
348 // SD24_B_initConverterAdvanced().
349 //
350 //*****************************************************************************
351 #define SD24_B_OVERSAMPLE_32 (OSR__32)
352 #define SD24_B_OVERSAMPLE_64 (OSR__64)
353 #define SD24_B_OVERSAMPLE_128 (OSR__128)
354 #define SD24_B_OVERSAMPLE_256 (OSR__256)
355 #define SD24_B_OVERSAMPLE_512 (OSR__512)
356 #define SD24_B_OVERSAMPLE_1024 (OSR__1024)
357 
358 //*****************************************************************************
359 //
360 // The following are values that can be passed to the dataFormat parameter for
361 // functions: SD24_B_setConverterDataFormat(); the param parameter for
362 // functions: SD24_B_initConverterAdvanced().
363 //
364 //*****************************************************************************
365 #define SD24_B_DATA_FORMAT_BINARY (SD24DF_0)
366 #define SD24_B_DATA_FORMAT_2COMPLEMENT (SD24DF_1)
367 
368 //*****************************************************************************
369 //
370 // The following are values that can be passed to the gain parameter for
371 // functions: SD24_B_setGain(); the param parameter for functions:
372 // SD24_B_initConverterAdvanced().
373 //
374 //*****************************************************************************
375 #define SD24_B_GAIN_1 (SD24GAIN_1)
376 #define SD24_B_GAIN_2 (SD24GAIN_2)
377 #define SD24_B_GAIN_4 (SD24GAIN_4)
378 #define SD24_B_GAIN_8 (SD24GAIN_8)
379 #define SD24_B_GAIN_16 (SD24GAIN_16)
380 #define SD24_B_GAIN_32 (SD24GAIN_32)
381 #define SD24_B_GAIN_64 (SD24GAIN_64)
382 #define SD24_B_GAIN_128 (SD24GAIN_128)
383 
384 //*****************************************************************************
385 //
386 // The following are values that can be passed to the sampleDelay parameter for
387 // functions: SD24_B_setInterruptDelay(); the param parameter for functions:
388 // SD24_B_initConverterAdvanced().
389 //
390 //*****************************************************************************
391 #define SD24_B_FOURTH_SAMPLE_INTERRUPT (SD24INTDLY_0)
392 #define SD24_B_THIRD_SAMPLE_INTERRUPT (SD24INTDLY_1)
393 #define SD24_B_SECOND_SAMPLE_INTERRUPT (SD24INTDLY_2)
394 #define SD24_B_FIRST_SAMPLE_INTERRUPT (SD24INTDLY_3)
395 
396 //*****************************************************************************
397 //
398 // The following are values that can be passed to the group parameter for
399 // functions: SD24_B_startGroupConversion(), and SD24_B_stopGroupConversion().
400 //
401 //*****************************************************************************
402 #define SD24_B_GROUP0 0
403 #define SD24_B_GROUP1 1
404 #define SD24_B_GROUP2 2
405 #define SD24_B_GROUP3 3
406 
407 //*****************************************************************************
408 //
409 // The following are values that can be passed to the interruptFlag parameter
410 // for functions: SD24_B_configureDMATrigger().
411 //
412 //*****************************************************************************
413 #define SD24_B_DMA_TRIGGER_IFG0 (SD24DMA_0)
414 #define SD24_B_DMA_TRIGGER_IFG1 (SD24DMA_1)
415 #define SD24_B_DMA_TRIGGER_IFG2 (SD24DMA_2)
416 #define SD24_B_DMA_TRIGGER_IFG3 (SD24DMA_3)
417 #define SD24_B_DMA_TRIGGER_IFG4 (SD24DMA_4)
418 #define SD24_B_DMA_TRIGGER_IFG5 (SD24DMA_5)
419 #define SD24_B_DMA_TRIGGER_IFG6 (SD24DMA_6)
420 #define SD24_B_DMA_TRIGGER_IFG7 (SD24DMA_7)
421 #define SD24_B_DMA_TRIGGER_TRGIFG (SD24DMA_8)
422 
423 //*****************************************************************************
424 //
425 // The following are values that can be passed to the mask parameter for
426 // functions: SD24_B_enableInterrupt(), SD24_B_disableInterrupt(),
427 // SD24_B_clearInterrupt(), and SD24_B_getInterruptStatus() as well as returned
428 // by the SD24_B_getInterruptStatus() function.
429 //
430 //*****************************************************************************
431 #define SD24_B_CONVERTER_INTERRUPT SD24IE0
432 #define SD24_B_CONVERTER_OVERFLOW_INTERRUPT SD24OVIE0
433 
434 //*****************************************************************************
435 //
436 // Prototypes for the APIs.
437 //
438 //*****************************************************************************
439 
440 //*****************************************************************************
441 //
442 //! \brief Initializes the SD24_B Module
443 //!
444 //! This function initializes the SD24_B module sigma-delta analog-to-digital
445 //! conversions. Specifically the function sets up the clock source for the
446 //! SD24_B core to use for conversions. Upon completion of the initialization
447 //! the SD24_B interrupt registers will be reset and the given parameters will
448 //! be set. The converter configuration settings are independent of this
449 //! function. The values you choose for the clock divider and predivider are
450 //! used to determine the effective clock frequency. The formula used is:
451 //! f_sd24 = f_clk /(divider * predivider)
452 //!
453 //! \param baseAddress is the base address of the SD24_B module.
454 //! \param param is the pointer to struct for initialization.
455 //!
456 //! \return None
457 //
458 //*****************************************************************************
459 extern void SD24_B_init(uint16_t baseAddress,
460  SD24_B_initParam *param);
461 
462 //*****************************************************************************
463 //
464 //! \brief Configure SD24_B converter
465 //!
466 //! This function initializes a converter of the SD24_B module. Upon completion
467 //! the converter will be ready for a conversion and can be started with the
468 //! SD24_B_startGroupConversion() or SD24_B_startConverterConversion()
469 //! depending on the startSelect parameter. Additional configuration such as
470 //! data format can be configured in SD24_B_setConverterDataFormat().
471 //!
472 //! \param baseAddress is the base address of the SD24_B module.
473 //! \param param is the pointer to struct for converter configuration.
474 //!
475 //! \return None
476 //
477 //*****************************************************************************
478 extern void SD24_B_initConverter(uint16_t baseAddress,
480 
481 //*****************************************************************************
482 //
483 //! \brief Configure SD24_B converter - Advanced Configure
484 //!
485 //! This function initializes a converter of the SD24_B module. Upon completion
486 //! the converter will be ready for a conversion and can be started with the
487 //! SD24_B_startGroupConversion() or SD24_B_startConverterConversion()
488 //! depending on the startSelect parameter.
489 //!
490 //! \param baseAddress is the base address of the SD24_B module.
491 //! \param param is the pointer to struct for converter advanced configuration.
492 //!
493 //! \return None
494 //
495 //*****************************************************************************
496 extern void SD24_B_initConverterAdvanced(uint16_t baseAddress,
498 
499 //*****************************************************************************
500 //
501 //! \brief Set SD24_B converter data format
502 //!
503 //! This function sets the converter format so that the resulting data can be
504 //! viewed in either binary or 2's complement.
505 //!
506 //! \param baseAddress is the base address of the SD24_B module.
507 //! \param converter selects the converter that will be configured. Check
508 //! datasheet for available converters on device.
509 //! Valid values are:
510 //! - \b SD24_B_CONVERTER_0
511 //! - \b SD24_B_CONVERTER_1
512 //! - \b SD24_B_CONVERTER_2
513 //! - \b SD24_B_CONVERTER_3
514 //! - \b SD24_B_CONVERTER_4
515 //! - \b SD24_B_CONVERTER_5
516 //! - \b SD24_B_CONVERTER_6
517 //! - \b SD24_B_CONVERTER_7
518 //! \param dataFormat selects how the data format of the results
519 //! Valid values are:
520 //! - \b SD24_B_DATA_FORMAT_BINARY [Default]
521 //! - \b SD24_B_DATA_FORMAT_2COMPLEMENT
522 //! \n Modified bits are \b SD24DFx of \b SD24BCCTLx register.
523 //!
524 //! \return None
525 //
526 //*****************************************************************************
527 extern void SD24_B_setConverterDataFormat(uint16_t baseAddress,
528  uint8_t converter,
529  uint8_t dataFormat);
530 
531 //*****************************************************************************
532 //
533 //! \brief Start Conversion Group
534 //!
535 //! This function starts all the converters that are associated with a group.
536 //! To set a converter to a group use the SD24_B_configureConverter() function.
537 //!
538 //! \param baseAddress is the base address of the SD24_B module.
539 //! \param group selects the group that will be started
540 //! Valid values are:
541 //! - \b SD24_B_GROUP0
542 //! - \b SD24_B_GROUP1
543 //! - \b SD24_B_GROUP2
544 //! - \b SD24_B_GROUP3
545 //! \n Modified bits are \b SD24DGRPxSC of \b SD24BCTL1 register.
546 //!
547 //! \return None
548 //
549 //*****************************************************************************
550 extern void SD24_B_startGroupConversion(uint16_t baseAddress,
551  uint8_t group);
552 
553 //*****************************************************************************
554 //
555 //! \brief Stop Conversion Group
556 //!
557 //! This function stops all the converters that are associated with a group. To
558 //! set a converter to a group use the SD24_B_configureConverter() function.
559 //!
560 //! \param baseAddress is the base address of the SD24_B module.
561 //! \param group selects the group that will be stopped
562 //! Valid values are:
563 //! - \b SD24_B_GROUP0
564 //! - \b SD24_B_GROUP1
565 //! - \b SD24_B_GROUP2
566 //! - \b SD24_B_GROUP3
567 //! \n Modified bits are \b SD24DGRPxSC of \b SD24BCTL1 register.
568 //!
569 //! \return None
570 //
571 //*****************************************************************************
572 extern void SD24_B_stopGroupConversion(uint16_t baseAddress,
573  uint8_t group);
574 
575 //*****************************************************************************
576 //
577 //! \brief Start Conversion for Converter
578 //!
579 //! This function starts a single converter.
580 //!
581 //! \param baseAddress is the base address of the SD24_B module.
582 //! \param converter selects the converter that will be started
583 //! Valid values are:
584 //! - \b SD24_B_CONVERTER_0
585 //! - \b SD24_B_CONVERTER_1
586 //! - \b SD24_B_CONVERTER_2
587 //! - \b SD24_B_CONVERTER_3
588 //! - \b SD24_B_CONVERTER_4
589 //! - \b SD24_B_CONVERTER_5
590 //! - \b SD24_B_CONVERTER_6
591 //! - \b SD24_B_CONVERTER_7
592 //! \n Modified bits are \b SD24SC of \b SD24BCCTLx register.
593 //!
594 //! \return None
595 //
596 //*****************************************************************************
597 extern void SD24_B_startConverterConversion(uint16_t baseAddress,
598  uint8_t converter);
599 
600 //*****************************************************************************
601 //
602 //! \brief Stop Conversion for Converter
603 //!
604 //! This function stops a single converter.
605 //!
606 //! \param baseAddress is the base address of the SD24_B module.
607 //! \param converter selects the converter that will be stopped
608 //! Valid values are:
609 //! - \b SD24_B_CONVERTER_0
610 //! - \b SD24_B_CONVERTER_1
611 //! - \b SD24_B_CONVERTER_2
612 //! - \b SD24_B_CONVERTER_3
613 //! - \b SD24_B_CONVERTER_4
614 //! - \b SD24_B_CONVERTER_5
615 //! - \b SD24_B_CONVERTER_6
616 //! - \b SD24_B_CONVERTER_7
617 //! \n Modified bits are \b SD24SC of \b SD24BCCTLx register.
618 //!
619 //! \return None
620 //
621 //*****************************************************************************
622 extern void SD24_B_stopConverterConversion(uint16_t baseAddress,
623  uint8_t converter);
624 
625 //*****************************************************************************
626 //
627 //! \brief Configures the converter that triggers a DMA transfer
628 //!
629 //! This function chooses which interrupt will trigger a DMA transfer.
630 //!
631 //! \param baseAddress is the base address of the SD24_B module.
632 //! \param interruptFlag selects the converter interrupt that triggers a DMA
633 //! transfer.
634 //! Valid values are:
635 //! - \b SD24_B_DMA_TRIGGER_IFG0
636 //! - \b SD24_B_DMA_TRIGGER_IFG1
637 //! - \b SD24_B_DMA_TRIGGER_IFG2
638 //! - \b SD24_B_DMA_TRIGGER_IFG3
639 //! - \b SD24_B_DMA_TRIGGER_IFG4
640 //! - \b SD24_B_DMA_TRIGGER_IFG5
641 //! - \b SD24_B_DMA_TRIGGER_IFG6
642 //! - \b SD24_B_DMA_TRIGGER_IFG7
643 //! - \b SD24_B_DMA_TRIGGER_TRGIFG
644 //! \n Modified bits are \b SD24DMAx of \b SD24BCTL1 register.
645 //!
646 //! \return None
647 //
648 //*****************************************************************************
649 extern void SD24_B_configureDMATrigger(uint16_t baseAddress,
650  uint16_t interruptFlag);
651 
652 //*****************************************************************************
653 //
654 //! \brief Configures the delay for an interrupt to trigger
655 //!
656 //! This function configures the delay for the first interrupt service request
657 //! for the corresponding converter. This feature delays the interrupt request
658 //! for a completed conversion by up to four conversion cycles allowing the
659 //! digital filter to settle prior to generating an interrupt request.
660 //!
661 //! \param baseAddress is the base address of the SD24_B module.
662 //! \param converter selects the converter that will be stopped
663 //! Valid values are:
664 //! - \b SD24_B_CONVERTER_0
665 //! - \b SD24_B_CONVERTER_1
666 //! - \b SD24_B_CONVERTER_2
667 //! - \b SD24_B_CONVERTER_3
668 //! - \b SD24_B_CONVERTER_4
669 //! - \b SD24_B_CONVERTER_5
670 //! - \b SD24_B_CONVERTER_6
671 //! - \b SD24_B_CONVERTER_7
672 //! \param sampleDelay selects the delay for the interrupt
673 //! Valid values are:
674 //! - \b SD24_B_FOURTH_SAMPLE_INTERRUPT [Default]
675 //! - \b SD24_B_THIRD_SAMPLE_INTERRUPT
676 //! - \b SD24_B_SECOND_SAMPLE_INTERRUPT
677 //! - \b SD24_B_FIRST_SAMPLE_INTERRUPT
678 //! \n Modified bits are \b SD24INTDLYx of \b SD24INCTLx register.
679 //!
680 //! \return None
681 //
682 //*****************************************************************************
683 extern void SD24_B_setInterruptDelay(uint16_t baseAddress,
684  uint8_t converter,
685  uint8_t sampleDelay);
686 
687 //*****************************************************************************
688 //
689 //! \brief Configures the delay for the conversion start
690 //!
691 //! This function configures the delay for the specified converter start.
692 //! Please note the delay should be written before conversion or after
693 //! corresponding conversion is completed. If no delay at start of conversion
694 //! is desired, a previously written non-zero value must be changed to zero
695 //! before starting the conversion.
696 //!
697 //! \param baseAddress is the base address of the SD24_B module.
698 //! \param converter selects the converter that will be delayed
699 //! Valid values are:
700 //! - \b SD24_B_CONVERTER_0
701 //! - \b SD24_B_CONVERTER_1
702 //! - \b SD24_B_CONVERTER_2
703 //! - \b SD24_B_CONVERTER_3
704 //! - \b SD24_B_CONVERTER_4
705 //! - \b SD24_B_CONVERTER_5
706 //! - \b SD24_B_CONVERTER_6
707 //! - \b SD24_B_CONVERTER_7
708 //! \param cycleDelay is the clock cycles to delay ranging from 0 to 1023.
709 //! \n Modified bits are \b SD24PREx of \b SD24BPREx register.
710 //!
711 //! \return None
712 //
713 //*****************************************************************************
714 extern void SD24_B_setConversionDelay(uint16_t baseAddress,
715  uint8_t converter,
716  uint16_t cycleDelay);
717 
718 //*****************************************************************************
719 //
720 //! \brief Configures the oversampling ratio for a converter
721 //!
722 //! This function configures the oversampling ratio for a given converter.
723 //!
724 //! \param baseAddress is the base address of the SD24_B module.
725 //! \param converter selects the converter that will be configured
726 //! Valid values are:
727 //! - \b SD24_B_CONVERTER_0
728 //! - \b SD24_B_CONVERTER_1
729 //! - \b SD24_B_CONVERTER_2
730 //! - \b SD24_B_CONVERTER_3
731 //! - \b SD24_B_CONVERTER_4
732 //! - \b SD24_B_CONVERTER_5
733 //! - \b SD24_B_CONVERTER_6
734 //! - \b SD24_B_CONVERTER_7
735 //! \param oversampleRatio selects oversampling ratio for the converter
736 //! Valid values are:
737 //! - \b SD24_B_OVERSAMPLE_32
738 //! - \b SD24_B_OVERSAMPLE_64
739 //! - \b SD24_B_OVERSAMPLE_128
740 //! - \b SD24_B_OVERSAMPLE_256
741 //! - \b SD24_B_OVERSAMPLE_512
742 //! - \b SD24_B_OVERSAMPLE_1024
743 //! \n Modified bits are \b SD24OSRx of \b SD24BOSRx register.
744 //!
745 //! \return None
746 //
747 //*****************************************************************************
748 extern void SD24_B_setOversampling(uint16_t baseAddress,
749  uint8_t converter,
750  uint16_t oversampleRatio);
751 
752 //*****************************************************************************
753 //
754 //! \brief Configures the gain for the converter
755 //!
756 //! This function configures the gain for a single converter.
757 //!
758 //! \param baseAddress is the base address of the SD24_B module.
759 //! \param converter selects the converter that will be configured
760 //! Valid values are:
761 //! - \b SD24_B_CONVERTER_0
762 //! - \b SD24_B_CONVERTER_1
763 //! - \b SD24_B_CONVERTER_2
764 //! - \b SD24_B_CONVERTER_3
765 //! - \b SD24_B_CONVERTER_4
766 //! - \b SD24_B_CONVERTER_5
767 //! - \b SD24_B_CONVERTER_6
768 //! - \b SD24_B_CONVERTER_7
769 //! \param gain selects the gain for the converter
770 //! Valid values are:
771 //! - \b SD24_B_GAIN_1 [Default]
772 //! - \b SD24_B_GAIN_2
773 //! - \b SD24_B_GAIN_4
774 //! - \b SD24_B_GAIN_8
775 //! - \b SD24_B_GAIN_16
776 //! - \b SD24_B_GAIN_32
777 //! - \b SD24_B_GAIN_64
778 //! - \b SD24_B_GAIN_128
779 //! \n Modified bits are \b SD24GAINx of \b SD24BINCTLx register.
780 //!
781 //! \return None
782 //
783 //*****************************************************************************
784 extern void SD24_B_setGain(uint16_t baseAddress,
785  uint8_t converter,
786  uint8_t gain);
787 
788 //*****************************************************************************
789 //
790 //! \brief Returns the results for a converter
791 //!
792 //! This function gets the results from the SD24BMEMLx and SD24MEMHx registers
793 //! and concatenates them to form a long. The actual result is a maximum 24
794 //! bits.
795 //!
796 //! \param baseAddress is the base address of the SD24_B module.
797 //! \param converter selects the converter who's results will be returned
798 //! Valid values are:
799 //! - \b SD24_B_CONVERTER_0
800 //! - \b SD24_B_CONVERTER_1
801 //! - \b SD24_B_CONVERTER_2
802 //! - \b SD24_B_CONVERTER_3
803 //! - \b SD24_B_CONVERTER_4
804 //! - \b SD24_B_CONVERTER_5
805 //! - \b SD24_B_CONVERTER_6
806 //! - \b SD24_B_CONVERTER_7
807 //!
808 //! \return Result of conversion
809 //
810 //*****************************************************************************
811 extern uint32_t SD24_B_getResults(uint16_t baseAddress,
812  uint8_t converter);
813 
814 //*****************************************************************************
815 //
816 //! \brief Returns the high word results for a converter
817 //!
818 //! This function gets the results from the SD24MEMHx register and returns it.
819 //!
820 //! \param baseAddress is the base address of the SD24_B module.
821 //! \param converter selects the converter who's results will be returned
822 //! Valid values are:
823 //! - \b SD24_B_CONVERTER_0
824 //! - \b SD24_B_CONVERTER_1
825 //! - \b SD24_B_CONVERTER_2
826 //! - \b SD24_B_CONVERTER_3
827 //! - \b SD24_B_CONVERTER_4
828 //! - \b SD24_B_CONVERTER_5
829 //! - \b SD24_B_CONVERTER_6
830 //! - \b SD24_B_CONVERTER_7
831 //!
832 //! \return Result of conversion
833 //
834 //*****************************************************************************
835 extern uint16_t SD24_B_getHighWordResults(uint16_t baseAddress,
836  uint8_t converter);
837 
838 //*****************************************************************************
839 //
840 //! \brief Enables interrupts for the SD24_B Module
841 //!
842 //! This function enables interrupts for the SD24_B module. Does not clear
843 //! interrupt flags.
844 //!
845 //! \param baseAddress is the base address of the SD24_B module.
846 //! \param converter is the selected converter.
847 //! Valid values are:
848 //! - \b SD24_B_CONVERTER_0
849 //! - \b SD24_B_CONVERTER_1
850 //! - \b SD24_B_CONVERTER_2
851 //! - \b SD24_B_CONVERTER_3
852 //! - \b SD24_B_CONVERTER_4
853 //! - \b SD24_B_CONVERTER_5
854 //! - \b SD24_B_CONVERTER_6
855 //! - \b SD24_B_CONVERTER_7
856 //! \param mask is the bit mask of the converter interrupt sources to be
857 //! enabled.
858 //! Mask value is the logical OR of any of the following:
859 //! - \b SD24_B_CONVERTER_INTERRUPT
860 //! - \b SD24_B_CONVERTER_OVERFLOW_INTERRUPT
861 //! \n Modified bits are \b SD24OVIEx of \b SD24BIE register.
862 //!
863 //! \return None
864 //
865 //*****************************************************************************
866 extern void SD24_B_enableInterrupt(uint16_t baseAddress,
867  uint8_t converter,
868  uint16_t mask);
869 
870 //*****************************************************************************
871 //
872 //! \brief Disables interrupts for the SD24_B Module
873 //!
874 //! This function disables interrupts for the SD24_B module.
875 //!
876 //! \param baseAddress is the base address of the SD24_B module.
877 //! \param converter is the selected converter.
878 //! Valid values are:
879 //! - \b SD24_B_CONVERTER_0
880 //! - \b SD24_B_CONVERTER_1
881 //! - \b SD24_B_CONVERTER_2
882 //! - \b SD24_B_CONVERTER_3
883 //! - \b SD24_B_CONVERTER_4
884 //! - \b SD24_B_CONVERTER_5
885 //! - \b SD24_B_CONVERTER_6
886 //! - \b SD24_B_CONVERTER_7
887 //! \param mask is the bit mask of the converter interrupt sources to be
888 //! disabled.
889 //! Mask value is the logical OR of any of the following:
890 //! - \b SD24_B_CONVERTER_INTERRUPT
891 //! - \b SD24_B_CONVERTER_OVERFLOW_INTERRUPT
892 //! \n Modified bits are \b SD24OVIEx of \b SD24BIE register.
893 //!
894 //! Modified bits of \b SD24BIE register.
895 //!
896 //! \return None
897 //
898 //*****************************************************************************
899 extern void SD24_B_disableInterrupt(uint16_t baseAddress,
900  uint8_t converter,
901  uint16_t mask);
902 
903 //*****************************************************************************
904 //
905 //! \brief Clears interrupts for the SD24_B Module
906 //!
907 //! This function clears interrupt flags for the SD24_B module.
908 //!
909 //! \param baseAddress is the base address of the SD24_B module.
910 //! \param converter is the selected converter.
911 //! Valid values are:
912 //! - \b SD24_B_CONVERTER_0
913 //! - \b SD24_B_CONVERTER_1
914 //! - \b SD24_B_CONVERTER_2
915 //! - \b SD24_B_CONVERTER_3
916 //! - \b SD24_B_CONVERTER_4
917 //! - \b SD24_B_CONVERTER_5
918 //! - \b SD24_B_CONVERTER_6
919 //! - \b SD24_B_CONVERTER_7
920 //! \param mask is the bit mask of the converter interrupt sources to clear.
921 //! Mask value is the logical OR of any of the following:
922 //! - \b SD24_B_CONVERTER_INTERRUPT
923 //! - \b SD24_B_CONVERTER_OVERFLOW_INTERRUPT
924 //! \n Modified bits are \b SD24OVIFGx of \b SD24BIFG register.
925 //!
926 //! \return None
927 //
928 //*****************************************************************************
929 extern void SD24_B_clearInterrupt(uint16_t baseAddress,
930  uint8_t converter,
931  uint16_t mask);
932 
933 //*****************************************************************************
934 //
935 //! \brief Returns the interrupt status for the SD24_B Module
936 //!
937 //! This function returns interrupt flag statuses for the SD24_B module.
938 //!
939 //! \param baseAddress is the base address of the SD24_B module.
940 //! \param converter is the selected converter.
941 //! Valid values are:
942 //! - \b SD24_B_CONVERTER_0
943 //! - \b SD24_B_CONVERTER_1
944 //! - \b SD24_B_CONVERTER_2
945 //! - \b SD24_B_CONVERTER_3
946 //! - \b SD24_B_CONVERTER_4
947 //! - \b SD24_B_CONVERTER_5
948 //! - \b SD24_B_CONVERTER_6
949 //! - \b SD24_B_CONVERTER_7
950 //! \param mask is the bit mask of the converter interrupt sources to return.
951 //! Mask value is the logical OR of any of the following:
952 //! - \b SD24_B_CONVERTER_INTERRUPT
953 //! - \b SD24_B_CONVERTER_OVERFLOW_INTERRUPT
954 //!
955 //! \return Logical OR of any of the following:
956 //! - \b SD24_B_CONVERTER_INTERRUPT
957 //! - \b SD24_B_CONVERTER_OVERFLOW_INTERRUPT
958 //! \n indicating the status of the masked interrupts
959 //
960 //*****************************************************************************
961 extern uint16_t SD24_B_getInterruptStatus(uint16_t baseAddress,
962  uint8_t converter,
963  uint16_t mask);
964 
965 //*****************************************************************************
966 //
967 // Mark the end of the C bindings section for C++ compilers.
968 //
969 //*****************************************************************************
970 #ifdef __cplusplus
971 }
972 #endif
973 
974 #endif
975 #endif // __MSP430WARE_SD24_B_H__
void SD24_B_setConverterDataFormat(uint16_t baseAddress, uint8_t converter, uint8_t dataFormat)
Set SD24_B converter data format.
Definition: sd24_b.c:82
void SD24_B_setOversampling(uint16_t baseAddress, uint8_t converter, uint16_t oversampleRatio)
Configures the oversampling ratio for a converter.
Definition: sd24_b.c:182
Used in the SD24_B_init() function as the param parameter.
Definition: sd24_b.h:31
uint8_t converter
Definition: sd24_b.h:152
void SD24_B_startGroupConversion(uint16_t baseAddress, uint8_t group)
Start Conversion Group.
Definition: sd24_b.c:94
uint32_t SD24_B_getResults(uint16_t baseAddress, uint8_t converter)
Returns the results for a converter.
Definition: sd24_b.c:207
void SD24_B_init(uint16_t baseAddress, SD24_B_initParam *param)
Initializes the SD24_B Module.
Definition: sd24_b.c:21
uint16_t referenceSelect
Definition: sd24_b.h:89
void SD24_B_startConverterConversion(uint16_t baseAddress, uint8_t converter)
Start Conversion for Converter.
Definition: sd24_b.c:124
uint16_t SD24_B_getInterruptStatus(uint16_t baseAddress, uint8_t converter, uint16_t mask)
Returns the interrupt status for the SD24_B Module.
Definition: sd24_b.c:256
uint8_t converter
Definition: sd24_b.h:109
void SD24_B_stopGroupConversion(uint16_t baseAddress, uint8_t group)
Stop Conversion Group.
Definition: sd24_b.c:109
void SD24_B_initConverter(uint16_t baseAddress, SD24_B_initConverterParam *param)
Configure SD24_B converter.
Definition: sd24_b.c:41
uint8_t alignment
Definition: sd24_b.h:114
uint8_t dataFormat
Definition: sd24_b.h:179
uint8_t conversionMode
Definition: sd24_b.h:174
uint16_t oversampleRatio
Definition: sd24_b.h:195
uint8_t startSelect
Definition: sd24_b.h:125
void SD24_B_setConversionDelay(uint16_t baseAddress, uint8_t converter, uint16_t cycleDelay)
Configures the delay for the conversion start.
Definition: sd24_b.c:170
void SD24_B_enableInterrupt(uint16_t baseAddress, uint8_t converter, uint16_t mask)
Enables interrupts for the SD24_B Module.
Definition: sd24_b.c:234
void SD24_B_setGain(uint16_t baseAddress, uint8_t converter, uint8_t gain)
Configures the gain for the converter.
Definition: sd24_b.c:195
uint8_t gain
Definition: sd24_b.h:206
uint8_t conversionMode
Definition: sd24_b.h:131
void SD24_B_configureDMATrigger(uint16_t baseAddress, uint16_t interruptFlag)
Configures the converter that triggers a DMA transfer.
Definition: sd24_b.c:148
void SD24_B_initConverterAdvanced(uint16_t baseAddress, SD24_B_initConverterAdvancedParam *param)
Configure SD24_B converter - Advanced Configure.
Definition: sd24_b.c:53
Used in the SD24_B_initConverterAdvanced() function as the param parameter.
Definition: sd24_b.h:140
uint16_t clockSourceSelect
Definition: sd24_b.h:38
uint16_t clockPreDivider
Definition: sd24_b.h:49
void SD24_B_setInterruptDelay(uint16_t baseAddress, uint8_t converter, uint8_t sampleDelay)
Configures the delay for an interrupt to trigger.
Definition: sd24_b.c:158
uint8_t startSelect
Definition: sd24_b.h:168
Used in the SD24_B_initConverter() function as the param parameter.
Definition: sd24_b.h:97
uint8_t alignment
Definition: sd24_b.h:157
void SD24_B_disableInterrupt(uint16_t baseAddress, uint8_t converter, uint16_t mask)
Disables interrupts for the SD24_B Module.
Definition: sd24_b.c:242
uint8_t sampleDelay
Definition: sd24_b.h:186
void SD24_B_clearInterrupt(uint16_t baseAddress, uint8_t converter, uint16_t mask)
Clears interrupts for the SD24_B Module.
Definition: sd24_b.c:249
void SD24_B_stopConverterConversion(uint16_t baseAddress, uint8_t converter)
Stop Conversion for Converter.
Definition: sd24_b.c:136
uint16_t clockDivider
Definition: sd24_b.h:84
uint16_t SD24_B_getHighWordResults(uint16_t baseAddress, uint8_t converter)
Returns the high word results for a converter.
Definition: sd24_b.c:222

Copyright 2020, Texas Instruments Incorporated