Lines Matching refs:chId
1052 void SINC_SetChannelConfig(SINC_Type *base, sinc_channel_id_t chId, sinc_channel_config_t *chConfig…
1062 void SINC_SetChannelInputOption(SINC_Type *base, sinc_channel_id_t chId, sinc_channel_input_option_…
1071 void SINC_SetChannelConversionOption(SINC_Type *base, sinc_channel_id_t chId, sinc_channel_conv_opt…
1082 sinc_channel_id_t chId,
1100 static inline uint32_t SINC_ReadChannelResultData(SINC_Type *base, sinc_channel_id_t chId) in SINC_ReadChannelResultData() argument
1102 …return ((base->CHANNEL[(uint8_t)chId].CRDATA & SINC_CRDATA_RDATA_MASK) >> SINC_CRDATA_RDATA_SHIFT); in SINC_ReadChannelResultData()
1114 static inline void SINC_EnableChannelFIFO(SINC_Type *base, sinc_channel_id_t chId, bool enable) in SINC_EnableChannelFIFO() argument
1118 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_FIFOEN_MASK; in SINC_EnableChannelFIFO()
1122 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_FIFOEN_MASK; in SINC_EnableChannelFIFO()
1133 static inline void SINC_SetChannelFifoWatermark(SINC_Type *base, sinc_channel_id_t chId, uint8_t fi… in SINC_SetChannelFifoWatermark() argument
1135 base->CHANNEL[(uint8_t)chId].CCFR = in SINC_SetChannelFifoWatermark()
1136 …((base->CHANNEL[(uint8_t)chId].CCFR) & (~SINC_CCFR_FIFOWMK_MASK)) | (SINC_CCFR_FIFOWMK(fifoWaterMa… in SINC_SetChannelFifoWatermark()
1148 static inline void SINC_EnableChannel(SINC_Type *base, sinc_channel_id_t chId, bool enable) in SINC_EnableChannel() argument
1152 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_CHEN_MASK; in SINC_EnableChannel()
1156 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_CHEN_MASK; in SINC_EnableChannel()
1169 static inline void SINC_EnableChannelPrimaryDma(SINC_Type *base, sinc_channel_id_t chId, bool enabl… in SINC_EnableChannelPrimaryDma() argument
1173 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_DMAEN_MASK; in SINC_EnableChannelPrimaryDma()
1177 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_DMAEN_MASK; in SINC_EnableChannelPrimaryDma()
1190 sinc_channel_id_t chId, in SINC_SetChannelAltDmaSource() argument
1193 base->CHANNEL[(uint8_t)chId].CACFR = in SINC_SetChannelAltDmaSource()
1194 …((base->CHANNEL[(uint8_t)chId].CACFR & ~SINC_CACFR_ADMASEL_MASK) | SINC_CACFR_ADMASEL(altDmaSource… in SINC_SetChannelAltDmaSource()
1206 sinc_channel_id_t chId, in SINC_SetChannelResultDataFormat() argument
1211 base->CHANNEL[(uint8_t)chId].CCFR &= ~SINC_CCFR_RDFMT_MASK; in SINC_SetChannelResultDataFormat()
1215 base->CHANNEL[(uint8_t)chId].CCFR |= SINC_CCFR_RDFMT_MASK; in SINC_SetChannelResultDataFormat()
1227 static inline uint8_t SINC_GetChannelFifoCount(SINC_Type *base, sinc_channel_id_t chId) in SINC_GetChannelFifoCount() argument
1229 return (uint8_t)(base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_FIFOAVIL_MASK); in SINC_GetChannelFifoCount()
1241 static inline bool SINC_CheckChannelResultDataReady(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelResultDataReady() argument
1243 return ((base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_RDRS_MASK) != SINC_CSR_RDRS_MASK); in SINC_CheckChannelResultDataReady()
1255 static inline bool SINC_CheckChannelFifoEmpty(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelFifoEmpty() argument
1257 return ((base->SR & (SINC_SR_FIFOEMPTY0_MASK << (uint32_t)chId)) != 0UL); in SINC_CheckChannelFifoEmpty()
1296 static inline void SINC_SetChannelConversionMode(SINC_Type *base, sinc_channel_id_t chId, sinc_conv… in SINC_SetChannelConversionMode() argument
1298 …base->CHANNEL[(uint8_t)chId].CDR = ((base->CHANNEL[(uint8_t)chId].CDR & ~SINC_CDR_PFCM_MASK) | SIN… in SINC_SetChannelConversionMode()
1309 sinc_channel_id_t chId, in SINC_SetChannelTriggerSource() argument
1312 base->CHANNEL[(uint8_t)chId].CCFR = in SINC_SetChannelTriggerSource()
1313 (((base->CHANNEL[(uint8_t)chId].CCFR) & ~(SINC_CCFR_ITLVL_MASK | SINC_CCFR_ITSEL_MASK)) | in SINC_SetChannelTriggerSource()
1330 static inline void SINC_SetChannelMultipurposeData(SINC_Type *base, sinc_channel_id_t chId, uint32_… in SINC_SetChannelMultipurposeData() argument
1332 base->CHANNEL[(uint8_t)chId].CMPDATA = SINC_CMPDATA_MPDATA(data); in SINC_SetChannelMultipurposeData()
1342 static inline void SINC_SetChannelPfOrder(SINC_Type *base, sinc_channel_id_t chId, sinc_primary_fil… in SINC_SetChannelPfOrder() argument
1344 base->CHANNEL[(uint8_t)chId].CDR = in SINC_SetChannelPfOrder()
1345 ((base->CHANNEL[(uint8_t)chId].CDR) & (~SINC_CDR_PFORD_MASK)) | (SINC_CDR_PFORD(pfOrder)); in SINC_SetChannelPfOrder()
1359 static inline void SINC_SetChannelPfOsr(SINC_Type *base, sinc_channel_id_t chId, uint16_t pfOsr) in SINC_SetChannelPfOsr() argument
1361 base->CHANNEL[(uint8_t)chId].CDR = in SINC_SetChannelPfOsr()
1362 ((base->CHANNEL[(uint8_t)chId].CDR) & (~SINC_CDR_PFOSR_MASK)) | (SINC_CDR_PFOSR(pfOsr)); in SINC_SetChannelPfOsr()
1374 sinc_channel_id_t chId, in SINC_SetChannelPfHpfAlphaCoeff() argument
1377 base->CHANNEL[(uint8_t)chId].CACFR = in SINC_SetChannelPfHpfAlphaCoeff()
1378 …((base->CHANNEL[(uint8_t)chId].CACFR) & (~SINC_CACFR_HPFA_MASK)) | (SINC_CACFR_HPFA(pfHpfAlphaCoef… in SINC_SetChannelPfHpfAlphaCoeff()
1390 sinc_channel_id_t chId, in SINC_SetChannelPfShiftConfig() argument
1394 …base->CHANNEL[(uint8_t)chId].CCFR = ((base->CHANNEL[(uint8_t)chId].CCFR) & (~SINC_CCFR_PFSFT_MASK)… in SINC_SetChannelPfShiftConfig()
1407 sinc_channel_id_t chId, in SINC_SetChannelPfBiasConfig() argument
1411 …base->CHANNEL[(uint8_t)chId].CBIAS = (uint32_t)pfBiasSign << 31UL | pfBiasValue << SINC_CBIAS_BIAS… in SINC_SetChannelPfBiasConfig()
1423 static inline void SINC_EnableChannelPrimaryFilter(SINC_Type *base, sinc_channel_id_t chId, bool en… in SINC_EnableChannelPrimaryFilter() argument
1427 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_PFEN_MASK; in SINC_EnableChannelPrimaryFilter()
1431 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_PFEN_MASK; in SINC_EnableChannelPrimaryFilter()
1444 static inline bool SINC_CheckChannelParallelSerialDataReady(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelParallelSerialDataReady() argument
1446 return ((base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_PSRDY_MASK) == SINC_CSR_PSRDY_MASK); in SINC_CheckChannelParallelSerialDataReady()
1458 static inline bool SINC_CheckChannelPrimaryCICSaturation(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelPrimaryCICSaturation() argument
1460 return ((base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_PFSAT_MASK) == SINC_CSR_PFSAT_MASK); in SINC_CheckChannelPrimaryCICSaturation()
1472 static inline bool SINC_CheckChannelHPFSaturation(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelHPFSaturation() argument
1474 return ((base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_HPFSAT_MASK) == SINC_CSR_HPFSAT_MASK); in SINC_CheckChannelHPFSaturation()
1486 static inline bool SINC_CheckChannelShiftSaturation(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelShiftSaturation() argument
1488 return ((base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_SFTSAT_MASK) == SINC_CSR_SFTSAT_MASK); in SINC_CheckChannelShiftSaturation()
1500 static inline bool SINC_CheckChannelBiasSaturation(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelBiasSaturation() argument
1502 return ((base->CHANNEL[(uint8_t)chId].CSR & SINC_CSR_BIASSAT_MASK) == SINC_CSR_BIASSAT_MASK); in SINC_CheckChannelBiasSaturation()
1512 uint8_t SINC_GetChannelConversionCount(SINC_Type *base, sinc_channel_id_t chId);
1523 static inline bool SINC_CheckChannelConvProgress(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelConvProgress() argument
1525 return ((base->SR & (((uint32_t)SINC_SR_CIP0_MASK) << (uint32_t)chId)) != 0UL); in SINC_CheckChannelConvProgress()
1537 static inline bool SINC_CheckChannelReadyForConv(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelReadyForConv() argument
1539 return ((base->SR & (((uint32_t)SINC_SR_CHRDY0_MASK) << (uint32_t)chId)) != 0UL); in SINC_CheckChannelReadyForConv()
1561 static inline void SINC_SetChannelLowLimitThreshold(SINC_Type *base, sinc_channel_id_t chId, uint32… in SINC_SetChannelLowLimitThreshold() argument
1563 base->CHANNEL[(uint8_t)chId].CLOLMT = SINC_CLOLMT_LOLMT(lowLimitThreshold); in SINC_SetChannelLowLimitThreshold()
1577 sinc_channel_id_t chId, in SINC_SetChannelHighLimitThreshold() argument
1580 base->CHANNEL[(uint8_t)chId].CHILMT = SINC_CHILMT_HILMT(highLimitThreshold); in SINC_SetChannelHighLimitThreshold()
1591 sinc_channel_id_t chId, in SINC_SetChannelLimitDetectorMode() argument
1596 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_LMTEN_MASK; in SINC_SetChannelLimitDetectorMode()
1600 base->CHANNEL[(uint8_t)chId].CPROT = in SINC_SetChannelLimitDetectorMode()
1601 …(base->CHANNEL[(uint8_t)chId].CPROT & ~SINC_CPROT_LMTOP_MASK) | SINC_CPROT_LMTOP((uint32_t)mode & … in SINC_SetChannelLimitDetectorMode()
1602 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_LMTEN_MASK; in SINC_SetChannelLimitDetectorMode()
1616 static inline void SINC_EnableChannelHighLimitBreakSignal(SINC_Type *base, sinc_channel_id_t chId, … in SINC_EnableChannelHighLimitBreakSignal() argument
1620 base->CHANNEL[(uint8_t)chId].CPROT |= SINC_CPROT_HLMTBK_MASK; in SINC_EnableChannelHighLimitBreakSignal()
1624 base->CHANNEL[(uint8_t)chId].CPROT &= ~SINC_CPROT_HLMTBK_MASK; in SINC_EnableChannelHighLimitBreakSignal()
1638 static inline void SINC_EnableChannelWindowLimitBreakSignal(SINC_Type *base, sinc_channel_id_t chId… in SINC_EnableChannelWindowLimitBreakSignal() argument
1642 base->CHANNEL[(uint8_t)chId].CPROT |= SINC_CPROT_WLMTBK_MASK; in SINC_EnableChannelWindowLimitBreakSignal()
1646 base->CHANNEL[(uint8_t)chId].CPROT &= ~SINC_CPROT_WLMTBK_MASK; in SINC_EnableChannelWindowLimitBreakSignal()
1660 static inline void SINC_EnableChannelLowLimitBreakSignal(SINC_Type *base, sinc_channel_id_t chId, b… in SINC_EnableChannelLowLimitBreakSignal() argument
1664 base->CHANNEL[(uint8_t)chId].CPROT |= SINC_CPROT_HLMTBK_MASK; in SINC_EnableChannelLowLimitBreakSignal()
1668 base->CHANNEL[(uint8_t)chId].CPROT &= ~SINC_CPROT_HLMTBK_MASK; in SINC_EnableChannelLowLimitBreakSignal()
1680 sinc_channel_id_t chId, in SINC_SetChannelScdOperateMode() argument
1685 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_SCDEN_MASK; in SINC_SetChannelScdOperateMode()
1689 base->CHANNEL[(uint8_t)chId].CPROT = in SINC_SetChannelScdOperateMode()
1690 … ((base->CHANNEL[(uint8_t)chId].CPROT & ~SINC_CPROT_SCDCM_MASK) | SINC_CPROT_SCDCM(opMode)); in SINC_SetChannelScdOperateMode()
1691 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_SCDEN_MASK; in SINC_SetChannelScdOperateMode()
1707 sinc_channel_id_t chId, in SINC_SetChannelScdLimitThreshold() argument
1713 base->CHANNEL[(uint8_t)chId].CPROT = in SINC_SetChannelScdLimitThreshold()
1714 …((base->CHANNEL[(uint8_t)chId].CPROT) & (~SINC_CPROT_SCDLMT_MASK)) | (SINC_CPROT_SCDLMT(u8ScdLimit… in SINC_SetChannelScdLimitThreshold()
1724 static inline void SINC_SetChannelScdOption(SINC_Type *base, sinc_channel_id_t chId, sinc_scd_optio… in SINC_SetChannelScdOption() argument
1726 base->CHANNEL[(uint8_t)chId].CPROT = in SINC_SetChannelScdOption()
1727 … ((base->CHANNEL[(uint8_t)chId].CPROT) & (~SINC_CPROT_SCDOP_MASK)) | (SINC_CPROT_SCDOP(option)); in SINC_SetChannelScdOption()
1740 static inline void SINC_EnableChannelScdBreakSignal(SINC_Type *base, sinc_channel_id_t chId, bool e… in SINC_EnableChannelScdBreakSignal() argument
1744 base->CHANNEL[(uint8_t)chId].CPROT |= SINC_CPROT_SCDBK_MASK; in SINC_EnableChannelScdBreakSignal()
1748 base->CHANNEL[(uint8_t)chId].CPROT &= ~SINC_CPROT_SCDBK_MASK; in SINC_EnableChannelScdBreakSignal()
1763 sinc_channel_id_t chId, in SINC_SetChannelCadLimitThreshold() argument
1766 base->CHANNEL[(uint8_t)chId].CPROT = in SINC_SetChannelCadLimitThreshold()
1767 …((base->CHANNEL[(uint8_t)chId].CPROT) & (~SINC_CPROT_CADLMT_MASK)) | (SINC_CPROT_CADLMT(cadLimitTh… in SINC_SetChannelCadLimitThreshold()
1770 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_CADEN_MASK; in SINC_SetChannelCadLimitThreshold()
1774 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_CADEN_MASK; in SINC_SetChannelCadLimitThreshold()
1788 static inline void SINC_EnableChannelCadBreakSignal(SINC_Type *base, sinc_channel_id_t chId, bool e… in SINC_EnableChannelCadBreakSignal() argument
1792 base->CHANNEL[(uint8_t)chId].CPROT |= SINC_CPROT_CADBK_MASK; in SINC_EnableChannelCadBreakSignal()
1796 base->CHANNEL[(uint8_t)chId].CPROT &= ~SINC_CPROT_CADBK_MASK; in SINC_EnableChannelCadBreakSignal()
1808 sinc_channel_id_t chId, in SINC_SetChannelZcdOperateMode() argument
1813 base->CHANNEL[(uint8_t)chId].CCR &= ~SINC_CCR_ZCDEN_MASK; in SINC_SetChannelZcdOperateMode()
1817 base->CHANNEL[(uint8_t)chId].CCFR = in SINC_SetChannelZcdOperateMode()
1818 … ((base->CHANNEL[(uint8_t)chId].CCFR) & (~SINC_CCFR_ZCOP_MASK)) | (SINC_CCFR_ZCOP(opMode)); in SINC_SetChannelZcdOperateMode()
1819 base->CHANNEL[(uint8_t)chId].CCR |= SINC_CCR_ZCDEN_MASK; in SINC_SetChannelZcdOperateMode()
1839 sinc_channel_id_t chId, in SINC_SetChannelPulseTriggerMux() argument
1842 base->CHANNEL[(uint8_t)chId].CACFR = in SINC_SetChannelPulseTriggerMux()
1843 … ((base->CHANNEL[(uint8_t)chId].CACFR & ~SINC_CACFR_PTMUX_MASK) | SINC_CACFR_PTMUX(pulseTrigMux)); in SINC_SetChannelPulseTriggerMux()
1854 static inline void SINC_SetChannelDebugOutput(SINC_Type *base, sinc_channel_id_t chId, sinc_debug_o… in SINC_SetChannelDebugOutput() argument
1856 base->CHANNEL[(uint8_t)chId].CCR = in SINC_SetChannelDebugOutput()
1857 ((base->CHANNEL[(uint8_t)chId].CCR & ~SINC_CCR_DBGSEL_MASK) | SINC_CCR_DBGSEL(debugOutput)); in SINC_SetChannelDebugOutput()
1866 static inline void SINC_LatchChannelDebugProceduce(SINC_Type *base, sinc_channel_id_t chId) in SINC_LatchChannelDebugProceduce() argument
1868 base->CHANNEL[(uint8_t)chId].CSR |= SINC_CSR_SRDS_MASK; in SINC_LatchChannelDebugProceduce()
1880 static inline bool SINC_CheckChannelDebugDataValid(SINC_Type *base, sinc_channel_id_t chId) in SINC_CheckChannelDebugDataValid() argument
1882 return ((base->CHANNEL[(uint8_t)chId].CSR & (SINC_CSR_SRDS_MASK | SINC_CSR_DBGRS_MASK)) == 0UL); in SINC_CheckChannelDebugDataValid()
1893 static inline uint32_t SINC_GetChannelDebugData(SINC_Type *base, sinc_channel_id_t chId) in SINC_GetChannelDebugData() argument
1895 return base->CHANNEL[(uint8_t)chId].CDBGR; in SINC_GetChannelDebugData()