Lines Matching refs:chId

191 void SINC_SetChannelConfig(SINC_Type *base, sinc_channel_id_t chId, sinc_channel_config_t *chConfig)  in SINC_SetChannelConfig()  argument
195 SINC_EnableChannel(base, chId, false); in SINC_SetChannelConfig()
198 SINC_SetChannelInputOption(base, chId, chConfig->chInputOption); in SINC_SetChannelConfig()
201 SINC_SetChannelConversionOption(base, chId, chConfig->chConvOption); in SINC_SetChannelConfig()
204 SINC_SetChannelProtectionOption(base, chId, chConfig->chProtectionOption); in SINC_SetChannelConfig()
206 SINC_EnableChannelFIFO(base, chId, chConfig->bEnableFifo); in SINC_SetChannelConfig()
207 SINC_SetChannelFifoWatermark(base, chId, chConfig->u8FifoWaterMark); in SINC_SetChannelConfig()
209 SINC_EnableChannelPrimaryDma(base, chId, chConfig->bEnablePrimaryDma); in SINC_SetChannelConfig()
212 SINC_SetChannelAltDmaSource(base, chId, chConfig->altDmaSource); in SINC_SetChannelConfig()
215 SINC_SetChannelResultDataFormat(base, chId, chConfig->dataFormat); in SINC_SetChannelConfig()
217 SINC_EnableChannel(base, chId, chConfig->bEnableChannel); in SINC_SetChannelConfig()
227 void SINC_SetChannelInputOption(SINC_Type *base, sinc_channel_id_t chId, sinc_channel_input_option_… in SINC_SetChannelInputOption() argument
233 u32Tmp = ((base->CHANNEL[(uint8_t)chId].CCFR) & in SINC_SetChannelInputOption()
237 base->CHANNEL[(uint8_t)chId].CCFR = u32Tmp; in SINC_SetChannelInputOption()
239 u32Tmp = ((base->CHANNEL[(uint8_t)chId].CACFR) & ~SINC_CACFR_IBDLY_MASK); in SINC_SetChannelInputOption()
241 base->CHANNEL[(uint8_t)chId].CACFR = u32Tmp; in SINC_SetChannelInputOption()
251 void SINC_SetChannelConversionOption(SINC_Type *base, sinc_channel_id_t chId, sinc_channel_conv_opt… in SINC_SetChannelConversionOption() argument
256 SINC_SetChannelTriggerSource(base, chId, chConvOption->convTriggerSource); in SINC_SetChannelConversionOption()
259 SINC_SetChannelConversionMode(base, chId, chConvOption->convMode); in SINC_SetChannelConversionOption()
260 SINC_SetChannelPfOrder(base, chId, chConvOption->pfOrder); in SINC_SetChannelConversionOption()
261 SINC_SetChannelPfOsr(base, chId, chConvOption->u16pfOverSampleRatio); in SINC_SetChannelConversionOption()
264 SINC_SetChannelPfHpfAlphaCoeff(base, chId, chConvOption->pfHpfAlphaCoeff); in SINC_SetChannelConversionOption()
267 …SINC_SetChannelPfShiftConfig(base, chId, chConvOption->pfShiftDirection, chConvOption->u8pfShiftBi… in SINC_SetChannelConversionOption()
270 SINC_SetChannelPfBiasConfig(base, chId, chConvOption->pfBiasSign, chConvOption->u32pfBiasValue); in SINC_SetChannelConversionOption()
273 SINC_EnableChannelPrimaryFilter(base, chId, chConvOption->enableChPrimaryFilter); in SINC_SetChannelConversionOption()
285 sinc_channel_id_t chId, in SINC_SetChannelProtectionOption() argument
293 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_LMTEN_MASK; in SINC_SetChannelProtectionOption()
297 SINC_SetChannelLowLimitThreshold(base, chId, chProtection->u32LowLimitThreshold); in SINC_SetChannelProtectionOption()
298 SINC_SetChannelHighLimitThreshold(base, chId, chProtection->u32HighLimitThreshold); in SINC_SetChannelProtectionOption()
299 …base->CHANNEL[(uint8_t)chId].CPROT = (base->CHANNEL[(uint8_t)chId].CPROT & ~SINC_CPROT_LMTOP_MASK)… in SINC_SetChannelProtectionOption()
303 base->CHANNEL[(uint8_t)chId].CPROT |= in SINC_SetChannelProtectionOption()
308 base->CHANNEL[(uint8_t)chId].CPROT &= in SINC_SetChannelProtectionOption()
311 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_LMTEN_MASK; in SINC_SetChannelProtectionOption()
317 SINC_SetChannelScdOperateMode(base, chId, kSINC_Scd_OperateDisabled); in SINC_SetChannelProtectionOption()
321 SINC_SetChannelScdLimitThreshold(base, chId, chProtection->u8ScdLimitThreshold); in SINC_SetChannelProtectionOption()
322 SINC_SetChannelScdOption(base, chId, chProtection->scdOption); in SINC_SetChannelProtectionOption()
323 SINC_EnableChannelScdBreakSignal(base, chId, chProtection->bEnableScdBreakSignal); in SINC_SetChannelProtectionOption()
324 SINC_SetChannelScdOperateMode(base, chId, chProtection->scdOperateMode); in SINC_SetChannelProtectionOption()
328 SINC_EnableChannelCadBreakSignal(base, chId, chProtection->bEnableCadBreakSignal); in SINC_SetChannelProtectionOption()
329 SINC_SetChannelCadLimitThreshold(base, chId, chProtection->cadLimitThreshold); in SINC_SetChannelProtectionOption()
332 SINC_SetChannelZcdOperateMode(base, chId, chProtection->zcdOperateMode); in SINC_SetChannelProtectionOption()
342 uint8_t SINC_GetChannelConversionCount(SINC_Type *base, sinc_channel_id_t chId) in SINC_GetChannelConversionCount() argument
346 …u8Count = (uint8_t)((base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_CNUM_MASK) >> SINC_CSR_CNUM_SHIFT… in SINC_GetChannelConversionCount()
347 if ((base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_CNUM_OV_MASK) != 0UL) in SINC_GetChannelConversionCount()