42 #ifndef ti_drivers_adc_adcbufmsp432__include 43 #define ti_drivers_adc_adcbufmsp432__include 48 #include <ti/devices/DeviceFamily.h> 49 #include <ti/devices/msp432p4xx/driverlib/sysctl_a.h> 51 #include <ti/drivers/dpl/HwiP.h> 52 #include <ti/drivers/dpl/SemaphoreP.h> 56 #include <ti/devices/msp432p4xx/driverlib/adc14.h> 77 #define ADCBufMSP432_CMD_ENTER_ADC_ULTRA_LOW_POWER_MODE ADCBuf_CMD_RESERVED + 1 88 #define ADCBufMSP432_CMD_EXIT_ADC_ULTRA_LOW_POWER_MODE ADCBuf_CMD_RESERVED + 2 123 #define ADCBufMSP432_P4_0_A13 ((13 << 10) | 0x0340) 124 #define ADCBufMSP432_P4_1_A12 ((12 << 10) | 0x0341) 125 #define ADCBufMSP432_P4_2_A11 ((11 << 10) | 0x0342) 126 #define ADCBufMSP432_P4_3_A10 ((10 << 10) | 0x0343) 127 #define ADCBufMSP432_P4_4_A9 ((9 << 10) | 0x0344) 128 #define ADCBufMSP432_P4_5_A8 ((8 << 10) | 0x0345) 129 #define ADCBufMSP432_P4_6_A7 ((7 << 10) | 0x0346) 130 #define ADCBufMSP432_P4_7_A6 ((6 << 10) | 0x0347) 133 #define ADCBufMSP432_P5_0_A5 ((5 << 10) | 0x0350) 134 #define ADCBufMSP432_P5_1_A4 ((4 << 10) | 0x0351) 135 #define ADCBufMSP432_P5_2_A3 ((3 << 10) | 0x0352) 136 #define ADCBufMSP432_P5_3_A2 ((2 << 10) | 0x0353) 137 #define ADCBufMSP432_P5_4_A1 ((1 << 10) | 0x0354) 138 #define ADCBufMSP432_P5_5_A0 ((0 << 10) | 0x0355) 141 #define ADCBufMSP432_P6_0_A15 ((15 << 10) | 0x0360) 142 #define ADCBufMSP432_P6_1_A14 ((14 << 10) | 0x0361) 145 #define ADCBufMSP432_P8_2_A23 ((23 << 10) | 0x0382) 146 #define ADCBufMSP432_P8_3_A22 ((22 << 10) | 0x0383) 147 #define ADCBufMSP432_P8_4_A21 ((21 << 10) | 0x0384) 148 #define ADCBufMSP432_P8_5_A20 ((20 << 10) | 0x0385) 149 #define ADCBufMSP432_P8_6_A19 ((19 << 10) | 0x0386) 150 #define ADCBufMSP432_P8_7_A18 ((18 << 10) | 0x0387) 153 #define ADCBufMSP432_P9_0_A17 ((17 << 10) | 0x0390) 154 #define ADCBufMSP432_P9_1_A16 ((16 << 10) | 0x0391) 156 #define ADCBufMSP432_PIN_NONE 0 157 #define ADCBufMSP432_INTERNAL_SOURCE_PIN 0 uint_fast16_t conversionSampleIdx
Definition: ADCBufMSP432.h:372
const ADCBuf_FxnTable ADCBufMSP432_fxnTable
ADCBufMSP432_DifferentialMode adcInputMode
Definition: ADCBufMSP432.h:289
Definition: ADCBufMSP432.h:193
Definition: ADCBufMSP432.h:246
Definition: ADCBufMSP432.h:224
UDMAMSP432 Transfer configuration.
Definition: UDMAMSP432.h:154
Definition: ADCBufMSP432.h:209
Definition: ADCBufMSP432.h:211
ADCBufMSP432_SamplingDuration samplingDuration
Definition: ADCBufMSP432.h:385
ADCBuf_Conversion * conversions
Definition: ADCBufMSP432.h:363
uint_fast8_t pingpongFlag
Definition: ADCBufMSP432.h:359
Definition: ADCBufMSP432.h:177
Definition: ADCBufMSP432.h:190
float tempCalDifference
Definition: ADCBufMSP432.h:399
uint32_t semaphoreTimeout
Definition: ADCBufMSP432.h:377
Definition: ADCBufMSP432.h:223
Definition: ADCBufMSP432.h:175
Definition: ADCBufMSP432.h:189
uint8_t useDMA
Definition: ADCBufMSP432.h:336
Definition: ADCBufMSP432.h:196
Analog to Digital Conversion Buffer (ADCBuf) Input Driver.
bool isOpen
Definition: ADCBufMSP432.h:391
Definition: ADCBufMSP432.h:207
Definition: ADCBufMSP432.h:257
ADCBufMSP432 Object.
Definition: ADCBufMSP432.h:352
ADCBuf_Callback callBackFxn
Definition: ADCBufMSP432.h:365
Definition: ADCBufMSP432.h:226
SemaphoreP_Handle convertComplete
Definition: ADCBufMSP432.h:354
uint_fast16_t adcPin
Definition: ADCBufMSP432.h:282
ADCBufMSP432_SamplingDuration samplingDuration
Definition: ADCBufMSP432.h:271
Definition: ADCBufMSP432.h:237
ADCBufMSP432_ClockSource clockSource
Definition: ADCBufMSP432.h:344
UDMAMSP432 Ping Pong Transfer configuration.
Definition: UDMAMSP432.h:173
ADCBufMSP432_Channels * channelSetting
Definition: ADCBufMSP432.h:332
Definition: ADCBufMSP432.h:210
ADCBufMSP432 Hardware attributes These fields are populated by PinMux tool but user is allowed to cha...
Definition: ADCBufMSP432.h:328
uint32_t samplingFrequency
Definition: ADCBufMSP432.h:379
Definition: ADCBufMSP432.h:191
Definition: ADCBufMSP432.h:258
uint32_t intPriority
Definition: ADCBufMSP432.h:330
Definition: ADCBufMSP432.h:225
Definition: ADCBufMSP432.h:208
Definition: ADCBufMSP432.h:195
ADCBufMSP432_TriggerSource adcTriggerSource
Definition: ADCBufMSP432.h:340
uint32_t refVoltage
Definition: ADCBufMSP432.h:287
Definition: ADCBufMSP432.h:192
uint8_t dmaIntNum
Definition: ADCBufMSP432.h:338
HwiP_Handle hwiHandle
Definition: ADCBufMSP432.h:356
uint_fast16_t adcDifferentialPin
Definition: ADCBufMSP432.h:291
The definition of an ADCBuf function table that contains the required set of functions to control a s...
Definition: ADCBuf.h:600
Definition: ADCBufMSP432.h:194
ADCBufMSP432_TimerReferenceSource adcTimerTriggerSource
Definition: ADCBufMSP432.h:334
uDMA driver implementation for MSP432.
ADCBufMSP432_TimerReferenceSource
ADCMSP432 timer trigger source These fields are used by ADCBufMSP432_HWAttrs to specify the Timer Cap...
Definition: ADCBufMSP432.h:205
ADCBufMSP432_SamplingDuration
ADCMSP432 sampling duration These fields define the MSP432 ADC sampling duration (sample and hold tim...
Definition: ADCBufMSP432.h:188
Definition: ADCBufMSP432.h:221
ADCBufMSP432_InternalSourceMode
ADCMSP432 Internal Source Mode These fields are used by ADCBufMSP432_HWAttrs to specify if a internal...
Definition: ADCBufMSP432.h:255
ADCBufMSP432_DifferentialMode
ADCMSP432 Differential Mode These fields are used by ADCBufMSP432_HWAttrs to specify if ADC different...
Definition: ADCBufMSP432.h:245
UDMAMSP432 Global configuration.
Definition: UDMAMSP432.h:127
uint32_t tempCal30
Definition: ADCBufMSP432.h:395
uint32_t timerAddr
Definition: ADCBufMSP432.h:388
ADCMSP432 Channel setting These fields define channel-specific settings: GPIO and reference voltage...
Definition: ADCBufMSP432.h:280
ADCBufMSP432_ClockSource
ADCMSP432 clock source These fields are used by ADCBufMSP432_HWAttrs to specify the clock source for ...
Definition: ADCBufMSP432.h:220
uint_fast8_t channelCount
Definition: ADCBufMSP432.h:361
Definition: ADCBufMSP432.h:178
uint32_t internalSourceMask
Definition: ADCBufMSP432.h:393
uint32_t timerDutyCycle
Definition: ADCBufMSP432.h:342
uint_fast16_t * intlResultBuf
Definition: ADCBufMSP432.h:367
Definition: ADCBufMSP432.h:247
ADCBuf_Recurrence_Mode
Recurrence behavior of a ADCBuf_Conversion specified in the ADCBuf_Params.
Definition: ADCBuf.h:404
ADCBuf_Return_Mode
Return behavior for ADCBuf_convert() specified in the ADCBuf_Params.
Definition: ADCBuf.h:446
Definition: ADCBufMSP432.h:236
Definition: ADCBufMSP432.h:222
UDMAMSP432_PingPongTransfer pingpongDMATransfer
Definition: ADCBufMSP432.h:403
Definition: ADCBufMSP432.h:206
ADCBuf_Return_Mode returnMode
Definition: ADCBufMSP432.h:383
MSP432 specific extension to ADCBuf_Params.
Definition: ADCBufMSP432.h:269
uint_fast16_t conversionSampleCount
Definition: ADCBufMSP432.h:374
void(* ADCBuf_Callback)(ADCBuf_Handle handle, ADCBuf_Conversion *conversion, void *completedADCBuffer, uint32_t completedChannel)
The definition of a callback function.
Definition: ADCBuf.h:391
ADCBufMSP432_ReferenceSource
ADCMSP432 reference source These fields are used by ADCBufMSP432_HWAttrs to specify the reference vol...
Definition: ADCBufMSP432.h:174
ADCBufMSP432_InternalSourceMode adcInternalSource
Definition: ADCBufMSP432.h:293
UDMAMSP432_Handle dmaHandle
Definition: ADCBufMSP432.h:401
Defines a conversion to be used with ADCBuf_convert().
Definition: ADCBuf.h:315
UDMAMSP432_Transfer dmaTransfer
Definition: ADCBufMSP432.h:405
ADCBufMSP432_ReferenceSource refSource
Definition: ADCBufMSP432.h:284
Definition: ADCBufMSP432.h:176
ADCBufMSP432_TriggerSource
ADCMSP432 trigger source These fields are used by ADCBufMSP432_HWAttrs to specify the trigger source ...
Definition: ADCBufMSP432.h:235
Definition: ADCBufMSP432.h:256
ADCBuf_Recurrence_Mode recurrenceMode
Definition: ADCBufMSP432.h:381
Definition: ADCBufMSP432.h:212
uint16_t * conversionSampleBuf
Definition: ADCBufMSP432.h:370
uint32_t tempCal85
Definition: ADCBufMSP432.h:397