Lines Matching refs:channel
577 __STATIC_INLINE bool XMC_USIC_IsChannelValid(const XMC_USIC_CH_t *const channel) in XMC_USIC_IsChannelValid() argument
581 tmp = ((channel == XMC_USIC0_CH0) || (channel == XMC_USIC0_CH1)); in XMC_USIC_IsChannelValid()
583 tmp = tmp || ((channel == XMC_USIC1_CH0) || (channel == XMC_USIC1_CH1)); in XMC_USIC_IsChannelValid()
586 tmp = tmp || ((channel == XMC_USIC2_CH0) || (channel == XMC_USIC2_CH1)); in XMC_USIC_IsChannelValid()
635 void XMC_USIC_CH_Enable(XMC_USIC_CH_t *const channel);
648 void XMC_USIC_CH_Disable(XMC_USIC_CH_t *const channel);
671 XMC_USIC_CH_STATUS_t XMC_USIC_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t …
693 XMC_USIC_CH_STATUS_t XMC_USIC_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, int32_t rate, int32_t …
709 uint32_t XMC_USIC_CH_GetBaudrate(XMC_USIC_CH_t *const channel);
724 uint32_t XMC_USIC_CH_GetSCLKFrequency(XMC_USIC_CH_t *const channel);
739 uint32_t XMC_USIC_CH_GetMCLKFrequency(XMC_USIC_CH_t *const channel);
760 void XMC_USIC_CH_ConfigExternalInputSignalToBRG(XMC_USIC_CH_t *const channel,
785 __STATIC_INLINE void XMC_USIC_CH_SetInputSource(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_INP… in XMC_USIC_CH_SetInputSource() argument
787 channel->DXCR[input] = (uint32_t)((channel->DXCR[input] & (uint32_t)(~USIC_CH_DXCR_DSEL_Msk)) | in XMC_USIC_CH_SetInputSource()
804 __STATIC_INLINE void XMC_USIC_CH_ConnectInputDataShiftToPPP(XMC_USIC_CH_t *const channel, const XMC… in XMC_USIC_CH_ConnectInputDataShiftToPPP() argument
806 channel->DXCR[input] &=(uint32_t)~USIC_CH_DXCR_INSW_Msk; in XMC_USIC_CH_ConnectInputDataShiftToPPP()
826 __STATIC_INLINE void XMC_USIC_CH_ConnectInputDataShiftToDataInput(XMC_USIC_CH_t *const channel, con… in XMC_USIC_CH_ConnectInputDataShiftToDataInput() argument
828 channel->DXCR[input] |= USIC_CH_DXCR_INSW_Msk; in XMC_USIC_CH_ConnectInputDataShiftToDataInput()
845 __STATIC_INLINE void XMC_USIC_CH_EnableInputInversion(XMC_USIC_CH_t *const channel, const XMC_USIC_… in XMC_USIC_CH_EnableInputInversion() argument
847 channel->DXCR[input] |= USIC_CH_DXCR_DPOL_Msk; in XMC_USIC_CH_EnableInputInversion()
864 __STATIC_INLINE void XMC_USIC_CH_DisableInputInversion(XMC_USIC_CH_t *const channel, const XMC_USIC… in XMC_USIC_CH_DisableInputInversion() argument
866 channel->DXCR[input] &=(uint32_t)~USIC_CH_DXCR_DPOL_Msk; in XMC_USIC_CH_DisableInputInversion()
881 __STATIC_INLINE void XMC_USIC_CH_EnableDelayCompensation(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_EnableDelayCompensation() argument
883 channel->DXCR[1U] |= USIC_CH_DX1CR_DCEN_Msk; in XMC_USIC_CH_EnableDelayCompensation()
897 __STATIC_INLINE void XMC_USIC_CH_DisableDelayCompensation(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_DisableDelayCompensation() argument
899 channel->DXCR[1U] &=(uint32_t)~USIC_CH_DX1CR_DCEN_Msk; in XMC_USIC_CH_DisableDelayCompensation()
916 __STATIC_INLINE void XMC_USIC_CH_EnableInputDigitalFilter(XMC_USIC_CH_t *const channel, const XMC_U… in XMC_USIC_CH_EnableInputDigitalFilter() argument
918 channel->DXCR[input] |= (uint32_t)USIC_CH_DXCR_DFEN_Msk; in XMC_USIC_CH_EnableInputDigitalFilter()
934 __STATIC_INLINE void XMC_USIC_CH_DisableInputDigitalFilter(XMC_USIC_CH_t *const channel, const XMC_… in XMC_USIC_CH_DisableInputDigitalFilter() argument
936 channel->DXCR[input] &=(uint32_t)~USIC_CH_DXCR_DFEN_Msk; in XMC_USIC_CH_DisableInputDigitalFilter()
953 __STATIC_INLINE void XMC_USIC_CH_EnableInputSync(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_IN… in XMC_USIC_CH_EnableInputSync() argument
955 channel->DXCR[input] |=(uint32_t)USIC_CH_DXCR_DSEN_Msk; in XMC_USIC_CH_EnableInputSync()
971 __STATIC_INLINE void XMC_USIC_CH_DisableInputSync(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_I… in XMC_USIC_CH_DisableInputSync() argument
973 channel->DXCR[input] &=(uint32_t)~USIC_CH_DXCR_DSEN_Msk; in XMC_USIC_CH_DisableInputSync()
989 __STATIC_INLINE void XMC_USIC_CH_SetInputSamplingFreq(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_SetInputSamplingFreq() argument
993 channel->DXCR[input] = (uint32_t)(channel->DXCR[input] & (~USIC_CH_DXCR_SFSEL_Msk)) | in XMC_USIC_CH_SetInputSamplingFreq()
1011 __STATIC_INLINE void XMC_USIC_CH_SetInputTriggerCombinationMode(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_SetInputTriggerCombinationMode() argument
1015 channel->DXCR[input] = (uint32_t)(channel->DXCR[input] & (~USIC_CH_DXCR_CM_Msk)) | in XMC_USIC_CH_SetInputTriggerCombinationMode()
1031 __STATIC_INLINE void XMC_USIC_CH_SetBRGInputClockSource(XMC_USIC_CH_t *const channel, const XMC_USI… in XMC_USIC_CH_SetBRGInputClockSource() argument
1033 channel->BRG = (uint32_t)(channel->BRG & (~USIC_CH_BRG_CLKSEL_Msk)) | (uint32_t)(clock_source); in XMC_USIC_CH_SetBRGInputClockSource()
1051 __STATIC_INLINE void XMC_USIC_CH_WriteToTBUF(XMC_USIC_CH_t *const channel, const uint16_t data) in XMC_USIC_CH_WriteToTBUF() argument
1053 channel->TBUF[0U] = data; in XMC_USIC_CH_WriteToTBUF()
1072 __STATIC_INLINE void XMC_USIC_CH_WriteToTBUFTCI(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_WriteToTBUFTCI() argument
1076 channel->TBUF[transmit_control_information] = data; in XMC_USIC_CH_WriteToTBUFTCI()
1094 __STATIC_INLINE void XMC_USIC_CH_SetWordLength(XMC_USIC_CH_t *const channel, const uint8_t word_len… in XMC_USIC_CH_SetWordLength() argument
1096 channel->SCTR = (uint32_t)(channel->SCTR & (~USIC_CH_SCTR_WLE_Msk)) | in XMC_USIC_CH_SetWordLength()
1115 __STATIC_INLINE void XMC_USIC_CH_SetShiftDirection(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_… in XMC_USIC_CH_SetShiftDirection() argument
1117 channel->SCTR = (uint32_t)(channel->SCTR & (~USIC_CH_SCTR_SDIR_Msk)) | (uint32_t)shift_direction; in XMC_USIC_CH_SetShiftDirection()
1130 __STATIC_INLINE uint32_t XMC_USIC_CH_GetCaptureTimerValue(const XMC_USIC_CH_t *const channel) in XMC_USIC_CH_GetCaptureTimerValue() argument
1132 return channel->CMTR; in XMC_USIC_CH_GetCaptureTimerValue()
1149 __STATIC_INLINE void XMC_USIC_CH_SetFractionalDivider(XMC_USIC_CH_t *const channel, const XMC_USIC_… in XMC_USIC_CH_SetFractionalDivider() argument
1151 channel->FDR = mode | step; in XMC_USIC_CH_SetFractionalDivider()
1171 __STATIC_INLINE void XMC_USIC_CH_SetFrameLength(XMC_USIC_CH_t *const channel, const uint8_t frame_l… in XMC_USIC_CH_SetFrameLength() argument
1173 channel->SCTR = (uint32_t)(channel->SCTR & (~USIC_CH_SCTR_FLE_Msk)) | in XMC_USIC_CH_SetFrameLength()
1194 __STATIC_INLINE void XMC_USIC_CH_EnableEvent(XMC_USIC_CH_t *const channel, const uint32_t event) in XMC_USIC_CH_EnableEvent() argument
1196 channel->CCR |= event; in XMC_USIC_CH_EnableEvent()
1215 __STATIC_INLINE void XMC_USIC_CH_DisableEvent(XMC_USIC_CH_t *const channel, const uint32_t event) in XMC_USIC_CH_DisableEvent() argument
1217 channel->CCR &= (uint32_t)~event; in XMC_USIC_CH_DisableEvent()
1239 void XMC_USIC_CH_SetInterruptNodePointer(XMC_USIC_CH_t *const channel,
1259 …_INLINE XMC_USIC_CH_TBUF_STATUS_t XMC_USIC_CH_GetTransmitBufferStatus(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_GetTransmitBufferStatus() argument
1261 return (XMC_USIC_CH_TBUF_STATUS_t)(channel->TCSR & USIC_CH_TCSR_TDV_Msk); in XMC_USIC_CH_GetTransmitBufferStatus()
1283 __STATIC_INLINE uint32_t XMC_USIC_CH_GetReceiveBufferStatus(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_GetReceiveBufferStatus() argument
1285 return ((uint32_t) (channel->RBUFSR & (USIC_CH_RBUFSR_RDV0_Msk | USIC_CH_RBUFSR_RDV1_Msk))); in XMC_USIC_CH_GetReceiveBufferStatus()
1306 __STATIC_INLINE void XMC_USIC_CH_SetStartTransmisionMode(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_SetStartTransmisionMode() argument
1309 …channel->TCSR = (uint32_t)(channel->TCSR & (~USIC_CH_TCSR_TDEN_Msk)) | (uint32_t)start_transmision… in XMC_USIC_CH_SetStartTransmisionMode()
1327 __STATIC_INLINE void XMC_USIC_CH_SetDataOutputMode(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_SetDataOutputMode() argument
1330 …channel->SCTR = (uint32_t)(channel->SCTR & (~USIC_CH_SCTR_DOCFG_Msk)) | (uint32_t)data_output_mode; in XMC_USIC_CH_SetDataOutputMode()
1348 __STATIC_INLINE void XMC_USIC_CH_EnableFrameLengthControl(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_EnableFrameLengthControl() argument
1350 channel->TCSR = (uint32_t)(channel->TCSR & (~(USIC_CH_TCSR_WLEMD_Msk | in XMC_USIC_CH_EnableFrameLengthControl()
1370 __STATIC_INLINE void XMC_USIC_CH_DisableFrameLengthControl(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_DisableFrameLengthControl() argument
1372 channel->TCSR &= (uint32_t)~USIC_CH_TCSR_FLEMD_Msk; in XMC_USIC_CH_DisableFrameLengthControl()
1388 __STATIC_INLINE void XMC_USIC_CH_EnableTBUFDataValidTrigger(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_EnableTBUFDataValidTrigger() argument
1390 channel->TCSR |= (uint32_t)USIC_CH_TCSR_TDVTR_Msk; in XMC_USIC_CH_EnableTBUFDataValidTrigger()
1405 __STATIC_INLINE void XMC_USIC_CH_DisableTBUFDataValidTrigger(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_DisableTBUFDataValidTrigger() argument
1407 channel->TCSR &= (uint32_t)~USIC_CH_TCSR_TDVTR_Msk; in XMC_USIC_CH_DisableTBUFDataValidTrigger()
1425 __STATIC_INLINE void XMC_USIC_CH_TriggerServiceRequest(XMC_USIC_CH_t *const channel, const uint32_t… in XMC_USIC_CH_TriggerServiceRequest() argument
1427 channel->FMR = (uint32_t)(USIC_CH_FMR_SIO0_Msk << service_request_line); in XMC_USIC_CH_TriggerServiceRequest()
1443 __STATIC_INLINE void XMC_USIC_CH_SetTransmitBufferStatus(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_SetTransmitBufferStatus() argument
1446 channel->FMR = (uint32_t)transmit_buffer_status; in XMC_USIC_CH_SetTransmitBufferStatus()
1464 __STATIC_INLINE void XMC_USIC_CH_SetPassiveDataLevel(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_SetPassiveDataLevel() argument
1467 channel->SCTR &= (~USIC_CH_SCTR_PDL_Msk); in XMC_USIC_CH_SetPassiveDataLevel()
1468 channel->SCTR |= (uint32_t)passive_level; in XMC_USIC_CH_SetPassiveDataLevel()
1494 void XMC_USIC_CH_TXFIFO_Configure(XMC_USIC_CH_t *const channel,
1516 void XMC_USIC_CH_TXFIFO_SetSizeTriggerLimit(XMC_USIC_CH_t *const channel,
1539 __STATIC_INLINE void XMC_USIC_CH_TXFIFO_EnableEvent(XMC_USIC_CH_t *const channel, const uint32_t ev… in XMC_USIC_CH_TXFIFO_EnableEvent() argument
1541 channel->TBCTR |= event; in XMC_USIC_CH_TXFIFO_EnableEvent()
1561 __STATIC_INLINE void XMC_USIC_CH_TXFIFO_DisableEvent(XMC_USIC_CH_t *const channel, const uint32_t e… in XMC_USIC_CH_TXFIFO_DisableEvent() argument
1563 channel->TBCTR &= (uint32_t)~event; in XMC_USIC_CH_TXFIFO_DisableEvent()
1590 void XMC_USIC_CH_TXFIFO_SetInterruptNodePointer(XMC_USIC_CH_t *const channel,
1609 __STATIC_INLINE void XMC_USIC_CH_TXFIFO_PutData(XMC_USIC_CH_t *const channel, const uint16_t data) in XMC_USIC_CH_TXFIFO_PutData() argument
1611 channel->IN[0] = data; in XMC_USIC_CH_TXFIFO_PutData()
1631 __STATIC_INLINE void XMC_USIC_CH_TXFIFO_PutDataFLEMode(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_TXFIFO_PutDataFLEMode() argument
1635 channel->IN[frame_length] = data; in XMC_USIC_CH_TXFIFO_PutDataFLEMode()
1655 __STATIC_INLINE void XMC_USIC_CH_TXFIFO_PutDataHPCMode(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_TXFIFO_PutDataHPCMode() argument
1659 channel->IN[frame_length] = data; in XMC_USIC_CH_TXFIFO_PutDataHPCMode()
1674 __STATIC_INLINE void XMC_USIC_CH_TXFIFO_Flush(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_TXFIFO_Flush() argument
1676 channel->TRBSCR = (uint32_t)USIC_CH_TRBSCR_FLUSHTB_Msk; in XMC_USIC_CH_TXFIFO_Flush()
1693 __STATIC_INLINE bool XMC_USIC_CH_TXFIFO_IsFull(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_TXFIFO_IsFull() argument
1695 return (bool)(channel->TRBSR & USIC_CH_TRBSR_TFULL_Msk); in XMC_USIC_CH_TXFIFO_IsFull()
1713 __STATIC_INLINE bool XMC_USIC_CH_TXFIFO_IsEmpty(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_TXFIFO_IsEmpty() argument
1715 return (bool)(channel->TRBSR & USIC_CH_TRBSR_TEMPTY_Msk); in XMC_USIC_CH_TXFIFO_IsEmpty()
1732 __STATIC_INLINE uint32_t XMC_USIC_CH_TXFIFO_GetLevel(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_TXFIFO_GetLevel() argument
1734 return ((uint32_t)(channel->TRBSR & USIC_CH_TRBSR_TBFLVL_Msk) >> USIC_CH_TRBSR_TBFLVL_Pos); in XMC_USIC_CH_TXFIFO_GetLevel()
1754 __STATIC_INLINE uint32_t XMC_USIC_CH_TXFIFO_GetEvent(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_TXFIFO_GetEvent() argument
1756 return (uint32_t)((channel->TRBSR) & (USIC_CH_TRBSR_STBI_Msk | in XMC_USIC_CH_TXFIFO_GetEvent()
1778 __STATIC_INLINE void XMC_USIC_CH_TXFIFO_ClearEvent(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_TXFIFO_ClearEvent() argument
1781 channel->TRBSCR = event; in XMC_USIC_CH_TXFIFO_ClearEvent()
1806 void XMC_USIC_CH_RXFIFO_Configure(XMC_USIC_CH_t *const channel,
1828 void XMC_USIC_CH_RXFIFO_SetSizeTriggerLimit(XMC_USIC_CH_t *const channel,
1850 __STATIC_INLINE void XMC_USIC_CH_RXFIFO_EnableEvent(XMC_USIC_CH_t *const channel, const uint32_t ev… in XMC_USIC_CH_RXFIFO_EnableEvent() argument
1852 channel->RBCTR |= event; in XMC_USIC_CH_RXFIFO_EnableEvent()
1874 __STATIC_INLINE void XMC_USIC_CH_RXFIFO_DisableEvent(XMC_USIC_CH_t *const channel, const uint32_t e… in XMC_USIC_CH_RXFIFO_DisableEvent() argument
1876 channel->RBCTR &= (uint32_t)~event; in XMC_USIC_CH_RXFIFO_DisableEvent()
1903 void XMC_USIC_CH_RXFIFO_SetInterruptNodePointer(XMC_USIC_CH_t *const channel,
1923 __STATIC_INLINE uint16_t XMC_USIC_CH_RXFIFO_GetData(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_RXFIFO_GetData() argument
1925 return (uint16_t)(channel->OUTR); in XMC_USIC_CH_RXFIFO_GetData()
1940 __STATIC_INLINE void XMC_USIC_CH_RXFIFO_Flush(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_RXFIFO_Flush() argument
1942 channel->TRBSCR = (uint32_t)USIC_CH_TRBSCR_FLUSHRB_Msk; in XMC_USIC_CH_RXFIFO_Flush()
1959 __STATIC_INLINE bool XMC_USIC_CH_RXFIFO_IsFull(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_RXFIFO_IsFull() argument
1961 return (bool)(channel->TRBSR & USIC_CH_TRBSR_RFULL_Msk); in XMC_USIC_CH_RXFIFO_IsFull()
1979 __STATIC_INLINE bool XMC_USIC_CH_RXFIFO_IsEmpty(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_RXFIFO_IsEmpty() argument
1981 return (bool)(channel->TRBSR & USIC_CH_TRBSR_REMPTY_Msk); in XMC_USIC_CH_RXFIFO_IsEmpty()
1999 __STATIC_INLINE uint32_t XMC_USIC_CH_RXFIFO_GetLevel(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_RXFIFO_GetLevel() argument
2001 return ((uint32_t)(channel->TRBSR & USIC_CH_TRBSR_RBFLVL_Msk) >> USIC_CH_TRBSR_RBFLVL_Pos); in XMC_USIC_CH_RXFIFO_GetLevel()
2023 __STATIC_INLINE uint32_t XMC_USIC_CH_RXFIFO_GetEvent(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_RXFIFO_GetEvent() argument
2025 return (uint32_t)((channel->TRBSR) & (USIC_CH_TRBSR_SRBI_Msk | in XMC_USIC_CH_RXFIFO_GetEvent()
2049 __STATIC_INLINE void XMC_USIC_CH_RXFIFO_ClearEvent(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_RXFIFO_ClearEvent() argument
2052 channel->TRBSCR = event; in XMC_USIC_CH_RXFIFO_ClearEvent()
2067 __STATIC_INLINE void XMC_USIC_CH_EnableTimeMeasurement(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_EnableTimeMeasurement() argument
2069 channel->BRG |= (uint32_t)USIC_CH_BRG_TMEN_Msk; in XMC_USIC_CH_EnableTimeMeasurement()
2084 __STATIC_INLINE void XMC_USIC_CH_DisableTimeMeasurement(XMC_USIC_CH_t *const channel) in XMC_USIC_CH_DisableTimeMeasurement() argument
2086 channel->BRG &= (uint32_t)~USIC_CH_BRG_TMEN_Msk; in XMC_USIC_CH_DisableTimeMeasurement()
2099 __STATIC_INLINE void XMC_USIC_CH_SetMclkOutputPassiveLevel(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_SetMclkOutputPassiveLevel() argument
2102 channel->BRG = (uint32_t)(channel->BRG & (~USIC_CH_BRG_MCLKCFG_Msk)) | (uint32_t)passive_level; in XMC_USIC_CH_SetMclkOutputPassiveLevel()
2126 __STATIC_INLINE void XMC_USIC_CH_ConfigureShiftClockOutput(XMC_USIC_CH_t *const channel, in XMC_USIC_CH_ConfigureShiftClockOutput() argument
2130 channel->BRG = (uint32_t)(channel->BRG & (~(USIC_CH_BRG_SCLKCFG_Msk | in XMC_USIC_CH_ConfigureShiftClockOutput()
2153 __STATIC_INLINE void XMC_USIC_CH_SetMode(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_OPERATING_… in XMC_USIC_CH_SetMode() argument
2155 channel->CCR = (uint32_t)(channel->CCR & (~(USIC_CH_CCR_MODE_Msk))) | (uint32_t)mode; in XMC_USIC_CH_SetMode()