Home
last modified time | relevance | path

Searched refs:sampleIndex (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/hsadc/
Dfsl_hsadc.c787 void HSADC_SetSampleConfig(HSADC_Type *base, uint16_t sampleIndex, const hsadc_sample_config_t *con… in HSADC_SetSampleConfig() argument
789 assert(sampleIndex < HSADC_RSLT_COUNT); in HSADC_SetSampleConfig()
824 if (sampleIndex < 8U) in HSADC_SetSampleConfig()
826 tmp16 = base->ZXCTRL1 & ~HSADC_ZXCTRL_ZCE_MASK(sampleIndex); in HSADC_SetSampleConfig()
827 tmp16 |= HSADC_ZXCTRL_ZCE(sampleIndex, config->zeroCrossingMode); in HSADC_SetSampleConfig()
830 else if (sampleIndex < 16U) in HSADC_SetSampleConfig()
832 sampleIndex -= 8U; in HSADC_SetSampleConfig()
833 tmp16 = base->ZXCTRL2 & ~HSADC_ZXCTRL_ZCE_MASK(sampleIndex); in HSADC_SetSampleConfig()
834 tmp16 |= HSADC_ZXCTRL_ZCE(sampleIndex, config->zeroCrossingMode); in HSADC_SetSampleConfig()
836 sampleIndex += 8U; in HSADC_SetSampleConfig()
[all …]
Dfsl_hsadc.h420 void HSADC_SetSampleConfig(HSADC_Type *base, uint16_t sampleIndex, const hsadc_sample_config_t *con…
573 static inline uint16_t HSADC_GetSampleResultValue(HSADC_Type *base, uint16_t sampleIndex) in HSADC_GetSampleResultValue() argument
575 return base->RSLT[sampleIndex]; in HSADC_GetSampleResultValue()