Home
last modified time | relevance | path

Searched refs:baudrate (Results 1 – 13 of 13) sorted by relevance

/hal_infineon-3.4.0/XMCLib/drivers/src/
Dxmc_usic.c274 float baudrate; in XMC_USIC_CH_GetBaudrate() local
277 baudrate = fperi * (((channel->FDR & USIC_CH_FDR_STEP_Msk) >> USIC_CH_FDR_STEP_Pos) / 1024.0F); in XMC_USIC_CH_GetBaudrate()
282baudrate = fperi * (1.0F / (1024 - ((channel->FDR & USIC_CH_FDR_STEP_Msk) >> USIC_CH_FDR_STEP_Pos)… in XMC_USIC_CH_GetBaudrate()
285 baudrate /= divider; in XMC_USIC_CH_GetBaudrate()
287 return baudrate; in XMC_USIC_CH_GetBaudrate()
298 float baudrate; in XMC_USIC_CH_GetSCLKFrequency() local
302 baudrate = fperi * (((channel->FDR & USIC_CH_FDR_STEP_Msk) >> USIC_CH_FDR_STEP_Pos) / 1024.0F); in XMC_USIC_CH_GetSCLKFrequency()
307baudrate = fperi * (1.0F / (1024 - ((channel->FDR & USIC_CH_FDR_STEP_Msk) >> USIC_CH_FDR_STEP_Pos)… in XMC_USIC_CH_GetSCLKFrequency()
310 baudrate /= divider; in XMC_USIC_CH_GetSCLKFrequency()
312 return baudrate; in XMC_USIC_CH_GetSCLKFrequency()
[all …]
Dxmc_can.c125 if ((bit_time_config->can_frequency % bit_time_config->baudrate) == 0) in XMC_CAN_NODE_NominalBitTimeConfigureEx()
131 uint32_t fcan_div = bit_time_config->can_frequency / bit_time_config->baudrate; in XMC_CAN_NODE_NominalBitTimeConfigureEx()
209 …XMC_ASSERT("XMC_CAN_NODE_NOMINAL_BIT_TIME_Configure: rate not supported", (can_bit_time->baudrate in XMC_CAN_NODE_NominalBitTimeConfigure()
210 (can_bit_time->baudrate >= 100000U)); in XMC_CAN_NODE_NominalBitTimeConfigure()
238 uint32_t temp_tbaud = (uint32_t)(f_quanta / (can_bit_time->baudrate)); in XMC_CAN_NODE_NominalBitTimeConfigure()
262 if(temp_baudrate >= can_bit_time->baudrate) in XMC_CAN_NODE_NominalBitTimeConfigure()
264 error = temp_baudrate - can_bit_time->baudrate; in XMC_CAN_NODE_NominalBitTimeConfigure()
268 error = can_bit_time->baudrate - temp_baudrate; in XMC_CAN_NODE_NominalBitTimeConfigure()
Dxmc_uart.c100 (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()
Dxmc_spi.c93 (void)XMC_USIC_CH_SetBaudrateEx(channel, config->baudrate, XMC_SPI_CH_OVERSAMPLING); in XMC_SPI_CH_Init()
98 (void)XMC_USIC_CH_SetBaudrate(channel, config->baudrate, XMC_SPI_CH_OVERSAMPLING); in XMC_SPI_CH_Init()
Dxmc_i2s.c100 (void)XMC_I2S_CH_SetBaudrateEx(channel, config->baudrate, config->normal_divider_mode); in XMC_I2S_CH_Init()
Dxmc_i2c.c126 (void)XMC_I2C_CH_SetBaudrateEx(channel, config->baudrate, config->normal_divider_mode); in XMC_I2C_CH_Init()
/hal_infineon-3.4.0/mtb-hal-cat1/COMPONENT_PSOC6HAL/source/
Dcyhal_uart.c329 static uint8_t _cyhal_uart_best_oversample(const cyhal_resource_inst_t *resource, uint32_t baudrate) in _cyhal_uart_best_oversample() argument
336 uint32_t divider = _cyhal_utils_divider_value(resource, baudrate * i, 0); in _cyhal_uart_best_oversample()
337 …uint8_t difference = (uint8_t)_cyhal_uart_baud_perdif(baudrate, _cyhal_uart_actual_baud(resource, … in _cyhal_uart_best_oversample()
601 cy_rslt_t cyhal_uart_set_baud(cyhal_uart_t *obj, uint32_t baudrate, uint32_t *actualbaud) in cyhal_uart_set_baud() argument
619 oversample_value = _cyhal_uart_best_oversample(&(obj->resource), baudrate); in cyhal_uart_set_baud()
622 divider = _cyhal_utils_divider_value(&(obj->resource), baudrate * oversample_value, 0); in cyhal_uart_set_baud()
637 uint32_t baud_difference = _cyhal_uart_baud_perdif(baudrate, calculated_baud); in cyhal_uart_set_baud()
/hal_infineon-3.4.0/mtb-hal-cat1/include/
Dcyhal_uart.h250 cy_rslt_t cyhal_uart_set_baud(cyhal_uart_t *obj, uint32_t baudrate, uint32_t *actualbaud);
/hal_infineon-3.4.0/XMCLib/drivers/inc/
Dxmc_i2c.h262 uint32_t baudrate; /**< baud rate configuration upto max of 400KHz */ member
Dxmc_i2s.h237 uint32_t baudrate; /**< Module baud rate for communication */ member
Dxmc_uart.h226 …uint32_t baudrate; /**< Desired baudrate. \b Range: minimum= 100, maximum=… member
Dxmc_spi.h326 uint32_t baudrate; /**< Module baud rate for communication */ member
Dxmc_can.h478 …uint32_t baudrate; /**< Specifies the node baud rate. Unit: baud \a baudrate shall be ran… member