Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 10 of 10) sorted by relevance

/hal_infineon-2.7.6/XMCLib/drivers/src/
Dxmc_i2c.c168 XMC_I2C_CH_STATUS_t XMC_I2C_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate) in XMC_I2C_CH_SetBaudrate() argument
174 if (rate <= (uint32_t)XMC_I2C_CH_MAX_SPEED_STANDARD) in XMC_I2C_CH_SetBaudrate()
177 …if (XMC_USIC_CH_SetBaudrate(channel, rate, (uint32_t)XMC_I2C_CH_CLOCK_OVERSAMPLING_STANDARD) == XM… in XMC_I2C_CH_SetBaudrate()
182 else if (rate <= (uint32_t)XMC_I2C_CH_MAX_SPEED_FAST) in XMC_I2C_CH_SetBaudrate()
185 …if (XMC_USIC_CH_SetBaudrate(channel, rate, (uint32_t)XMC_I2C_CH_CLOCK_OVERSAMPLING_FAST) == XMC_US… in XMC_I2C_CH_SetBaudrate()
199 XMC_I2C_CH_STATUS_t XMC_I2C_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, uint32_t rate, bool norm… in XMC_I2C_CH_SetBaudrateEx() argument
203 if (rate <= (uint32_t)XMC_I2C_CH_MAX_SPEED_STANDARD) in XMC_I2C_CH_SetBaudrateEx()
208 …status = XMC_USIC_CH_SetBaudrateEx(channel, rate, (uint32_t)XMC_I2C_CH_CLOCK_OVERSAMPLING_STANDARD… in XMC_I2C_CH_SetBaudrateEx()
213 … status = XMC_USIC_CH_SetBaudrate(channel, rate, (uint32_t)XMC_I2C_CH_CLOCK_OVERSAMPLING_STANDARD); in XMC_I2C_CH_SetBaudrateEx()
216 else if (rate <= (uint32_t)XMC_I2C_CH_MAX_SPEED_FAST) in XMC_I2C_CH_SetBaudrateEx()
[all …]
Dxmc_uart.c149 XMC_UART_CH_STATUS_t XMC_UART_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t … 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 XMC_UART_CH_STATUS_t XMC_UART_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_… in XMC_UART_CH_SetBaudrateEx() argument
169 …if ((rate <= (XMC_SCU_CLOCK_GetPeripheralClockFrequency() >> 2U)) && (oversampling >= XMC_UART_CH_… in XMC_UART_CH_SetBaudrateEx()
174 status = XMC_USIC_CH_SetBaudrateEx(channel, rate, oversampling); in XMC_UART_CH_SetBaudrateEx()
179 status = XMC_USIC_CH_SetBaudrate(channel, rate, oversampling); in XMC_UART_CH_SetBaudrateEx()
Dxmc_i2s.c139 XMC_I2S_CH_STATUS_t XMC_I2S_CH_SetBaudrate(XMC_USIC_CH_t *const channel, const uint32_t rate) in XMC_I2S_CH_SetBaudrate() argument
145 if (rate <= (XMC_SCU_CLOCK_GetPeripheralClockFrequency() >> 1U)) in XMC_I2S_CH_SetBaudrate()
147 if (XMC_USIC_CH_SetBaudrate(channel, rate, XMC_I2S_CH_OVERSAMPLING) == XMC_USIC_CH_STATUS_OK) in XMC_I2S_CH_SetBaudrate()
160 XMC_I2S_CH_STATUS_t XMC_I2S_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, const uint32_t rate, boo… in XMC_I2S_CH_SetBaudrateEx() argument
164 if (rate <= (XMC_SCU_CLOCK_GetPeripheralClockFrequency() >> 1U)) in XMC_I2S_CH_SetBaudrateEx()
168 status = XMC_USIC_CH_SetBaudrateEx(channel, rate, XMC_I2S_CH_OVERSAMPLING); in XMC_I2S_CH_SetBaudrateEx()
172 status = XMC_USIC_CH_SetBaudrate(channel, rate, XMC_I2S_CH_OVERSAMPLING); in XMC_I2S_CH_SetBaudrateEx()
Dxmc_usic.c134 XMC_USIC_CH_STATUS_t XMC_USIC_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t … in XMC_USIC_CH_SetBaudrate() argument
151 if ((rate >= 100U) && (oversampling != 0U)) in XMC_USIC_CH_SetBaudrate()
154 rate = rate / 100U; in XMC_USIC_CH_SetBaudrate()
162 pdiv = ((peripheral_clock * clock_divider) / (rate * oversampling)); in XMC_USIC_CH_SetBaudrate()
194 XMC_USIC_CH_STATUS_t XMC_USIC_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, int32_t rate, int32_t … 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()
217 if (abs(rate - actual_rate_lower) < abs(rate - actual_rate_upper)) in XMC_USIC_CH_SetBaudrateEx()
Dxmc_spi.c133 XMC_SPI_CH_STATUS_t XMC_SPI_CH_SetBaudrate(XMC_USIC_CH_t *const channel, const uint32_t rate) in XMC_SPI_CH_SetBaudrate() argument
139 if (rate <= (XMC_SCU_CLOCK_GetPeripheralClockFrequency() >> 1U)) in XMC_SPI_CH_SetBaudrate()
141 if (XMC_USIC_CH_SetBaudrate(channel, rate, XMC_SPI_CH_OVERSAMPLING) == XMC_USIC_CH_STATUS_OK) in XMC_SPI_CH_SetBaudrate()
149 XMC_SPI_CH_STATUS_t XMC_SPI_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, const uint32_t rate, boo… in XMC_SPI_CH_SetBaudrateEx() argument
153 if (rate <= (XMC_SCU_CLOCK_GetPeripheralClockFrequency() >> 1U)) in XMC_SPI_CH_SetBaudrateEx()
158 status = XMC_USIC_CH_SetBaudrateEx(channel, rate, XMC_SPI_CH_OVERSAMPLING); in XMC_SPI_CH_SetBaudrateEx()
163 status = XMC_USIC_CH_SetBaudrate(channel, rate, XMC_SPI_CH_OVERSAMPLING); in XMC_SPI_CH_SetBaudrateEx()
/hal_infineon-2.7.6/XMCLib/drivers/inc/
Dxmc_i2c.h311 XMC_I2C_CH_STATUS_t XMC_I2C_CH_SetBaudrate(XMC_USIC_CH_t *const channel, const uint32_t rate);
329 XMC_I2C_CH_STATUS_t XMC_I2C_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, uint32_t rate, bool norm…
Dxmc_i2s.h332 XMC_I2S_CH_STATUS_t XMC_I2S_CH_SetBaudrate(XMC_USIC_CH_t *const channel, const uint32_t rate);
349 XMC_I2S_CH_STATUS_t XMC_I2S_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, const uint32_t rate, boo…
Dxmc_uart.h329 XMC_UART_CH_STATUS_t XMC_UART_CH_SetBaudrate(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_t …
355 XMC_UART_CH_STATUS_t XMC_UART_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, uint32_t rate, uint32_…
Dxmc_spi.h423 XMC_SPI_CH_STATUS_t XMC_SPI_CH_SetBaudrate(XMC_USIC_CH_t *const channel, const uint32_t rate);
440 XMC_SPI_CH_STATUS_t XMC_SPI_CH_SetBaudrateEx(XMC_USIC_CH_t *const channel, const uint32_t rate, boo…
Dxmc_usic.h671 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 …