Measurement mode initialization structure.
Public Attributes#
Selects the conversion sample mode.
Selects the conversion trigger source.
Enables DMA operation.
Disables dividing the accumulated result.
Selects the number of samples to accumulate per conversion.
Selects the Exponential Moving Average sample weighting.
Enables the comparator and selects the comparison type.
Comparator threshold value.
Selects an APORT channel for a single conversion.
Mask selects inputs 0 to 31.
Mask selects inputs 32 to 63.
Ground inactive inputs during a conversion.
Selects the converter type.
Selects the Successive Approximation (SAR) converter resolution.
Selects the Delta Modulation (DM) converter resolution.
Sets the number of DM iterations (comparisons) per cycle.
Sets number of DM converter cycles.
Sets the DM converter initial delta value.
Disables DM automatic delta size reduction per cycle.
Selects the reset phase timing.
Selects the output drive strength.
Selects the converter gain.
Public Attribute Documentation#
sampleMode#
CSEN_SampleMode_TypeDef CSEN_InitMode_TypeDef::sampleMode
Selects the conversion sample mode.
390
of file platform/emlib/inc/em_csen.h
trigSel#
CSEN_TrigSel_TypeDef CSEN_InitMode_TypeDef::trigSel
Selects the conversion trigger source.
393
of file platform/emlib/inc/em_csen.h
enableDma#
bool CSEN_InitMode_TypeDef::enableDma
Enables DMA operation.
396
of file platform/emlib/inc/em_csen.h
sumOnly#
bool CSEN_InitMode_TypeDef::sumOnly
Disables dividing the accumulated result.
399
of file platform/emlib/inc/em_csen.h
accMode#
CSEN_AccMode_TypeDef CSEN_InitMode_TypeDef::accMode
Selects the number of samples to accumulate per conversion.
402
of file platform/emlib/inc/em_csen.h
emaSample#
CSEN_EMASample_TypeDef CSEN_InitMode_TypeDef::emaSample
Selects the Exponential Moving Average sample weighting.
405
of file platform/emlib/inc/em_csen.h
cmpMode#
CSEN_CmpMode_TypeDef CSEN_InitMode_TypeDef::cmpMode
Enables the comparator and selects the comparison type.
408
of file platform/emlib/inc/em_csen.h
cmpThr#
uint16_t CSEN_InitMode_TypeDef::cmpThr
Comparator threshold value.
Meaning depends on cmpMode
.
411
of file platform/emlib/inc/em_csen.h
singleSel#
CSEN_SingleSel_TypeDef CSEN_InitMode_TypeDef::singleSel
Selects an APORT channel for a single conversion.
414
of file platform/emlib/inc/em_csen.h
inputMask0#
uint32_t CSEN_InitMode_TypeDef::inputMask0
Mask selects inputs 0 to 31.
Effect depends on sampleMode
. If sample mode is bonded, then mask selects inputs to short together. If sample mode is scan, then mask selects which inputs will be scanned. If sample mode is single and auto-ground is on (autoGnd
is true), mask selects which pins are grounded.
423
of file platform/emlib/inc/em_csen.h
inputMask1#
uint32_t CSEN_InitMode_TypeDef::inputMask1
Mask selects inputs 32 to 63.
See inputMask0
for more information.
426
of file platform/emlib/inc/em_csen.h
autoGnd#
bool CSEN_InitMode_TypeDef::autoGnd
Ground inactive inputs during a conversion.
429
of file platform/emlib/inc/em_csen.h
convSel#
CSEN_ConvSel_TypeDef CSEN_InitMode_TypeDef::convSel
Selects the converter type.
432
of file platform/emlib/inc/em_csen.h
sarRes#
CSEN_SARRes_TypeDef CSEN_InitMode_TypeDef::sarRes
Selects the Successive Approximation (SAR) converter resolution.
435
of file platform/emlib/inc/em_csen.h
dmRes#
CSEN_DMRes_TypeDef CSEN_InitMode_TypeDef::dmRes
Selects the Delta Modulation (DM) converter resolution.
438
of file platform/emlib/inc/em_csen.h
dmIterPerCycle#
uint8_t CSEN_InitMode_TypeDef::dmIterPerCycle
Sets the number of DM iterations (comparisons) per cycle.
Only applies to the Delta Modulation converter.
442
of file platform/emlib/inc/em_csen.h
dmCycles#
uint8_t CSEN_InitMode_TypeDef::dmCycles
Sets number of DM converter cycles.
Only applies to the Delta Modulation converter.
446
of file platform/emlib/inc/em_csen.h
dmDelta#
uint8_t CSEN_InitMode_TypeDef::dmDelta
Sets the DM converter initial delta value.
Only applies to the Delta Modulation converter.
450
of file platform/emlib/inc/em_csen.h
dmFixedDelta#
bool CSEN_InitMode_TypeDef::dmFixedDelta
Disables DM automatic delta size reduction per cycle.
Only applies to the Delta Modulation converter.
454
of file platform/emlib/inc/em_csen.h
resetPhase#
CSEN_ResetPhaseSel_TypeDef CSEN_InitMode_TypeDef::resetPhase
Selects the reset phase timing.
Most measurements should use the default value. See reference manual for details on when to adjust.
458
of file platform/emlib/inc/em_csen.h
driveSel#
CSEN_DriveSel_TypeDef CSEN_InitMode_TypeDef::driveSel
Selects the output drive strength.
Most measurements should use the default value. See reference manual for details on when to adjust.
462
of file platform/emlib/inc/em_csen.h
gainSel#
CSEN_GainSel_TypeDef CSEN_InitMode_TypeDef::gainSel
Selects the converter gain.
465
of file platform/emlib/inc/em_csen.h