Home
last modified time | relevance | path

Searched refs:oversampling (Results 1 – 5 of 5) sorted by relevance

/hal_infineon-2.7.6/XMCLib/drivers/src/
Dxmc_uart.c86 uint32_t oversampling = XMC_UART_CH_OVERSAMPLING; in XMC_UART_CH_Init() local
91 if(config->oversampling != 0U) in XMC_UART_CH_Init()
93 oversampling = (uint32_t)config->oversampling; in XMC_UART_CH_Init()
100 (void)XMC_USIC_CH_SetBaudrateEx(channel, config->baudrate, oversampling); in XMC_UART_CH_Init()
105 (void)XMC_USIC_CH_SetBaudrate(channel, config->baudrate, oversampling); in XMC_UART_CH_Init()
117 (((oversampling >> 1UL) + 1UL) << USIC_CH_PCR_ASCMode_SP_Pos) | in XMC_UART_CH_Init()
149 …TATUS_t XMC_UART_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t oversampling) in XMC_UART_CH_SetBaudrate() argument
155 …if ((rate <= (XMC_SCU_CLOCK_GetPeripheralClockFrequency() >> 2U)) && (oversampling >= XMC_UART_CH_… in XMC_UART_CH_SetBaudrate()
157 if (XMC_USIC_CH_SetBaudrate(channel, rate, oversampling) == XMC_USIC_CH_STATUS_OK) in XMC_UART_CH_SetBaudrate()
165 …H_SetBaudrateEx(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t oversampling, bool normal_di… in XMC_UART_CH_SetBaudrateEx() argument
[all …]
Dxmc_usic.c134 …TATUS_t XMC_USIC_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t oversampling) in XMC_USIC_CH_SetBaudrate() argument
151 if ((rate >= 100U) && (oversampling != 0U)) in XMC_USIC_CH_SetBaudrate()
162 pdiv = ((peripheral_clock * clock_divider) / (rate * oversampling)); in XMC_USIC_CH_SetBaudrate()
181 ((oversampling - 1U) << USIC_CH_BRG_DCTQ_Pos) | in XMC_USIC_CH_SetBaudrate()
194 …TATUS_t XMC_USIC_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, int32_t rate, int32_t oversampling) in XMC_USIC_CH_SetBaudrateEx() argument
197 int32_t brg_clock = rate * oversampling; in XMC_USIC_CH_SetBaudrateEx()
210 brg_clock = rate * oversampling * pdiv; in XMC_USIC_CH_SetBaudrateEx()
213 actual_rate_upper = peripheral_clock / (divider_step * oversampling * pdiv); in XMC_USIC_CH_SetBaudrateEx()
214 actual_rate_lower = peripheral_clock / ((divider_step + 1) * oversampling * pdiv); in XMC_USIC_CH_SetBaudrateEx()
232 ((oversampling - 1U) << USIC_CH_BRG_DCTQ_Pos) | in XMC_USIC_CH_SetBaudrateEx()
[all …]
/hal_infineon-2.7.6/XMCLib/drivers/inc/
Dxmc_uart.h233 …uint8_t oversampling; /**< Number of samples for a symbol(DCTQ).\b Range: minimum=… member
329 …ATUS_t XMC_UART_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t oversampling);
355 …H_SetBaudrateEx(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t oversampling, bool normal_di…
Dxmc_i2c.h724 const uint32_t oversampling, in XMC_I2C_CH_ConfigExternalInputSignalToBRG() argument
727 XMC_USIC_CH_ConfigExternalInputSignalToBRG(channel,pdiv,oversampling,combination_mode); in XMC_I2C_CH_ConfigExternalInputSignalToBRG()
Dxmc_usic.h671 …ATUS_t XMC_USIC_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t oversampling);
693 …ATUS_t XMC_USIC_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, int32_t rate, int32_t oversampling);
762 const uint32_t oversampling,