Lines Matching refs:step_n
366 uint32_t step_n, step_f; in XMC_CAN_Init() local
385 step_n = (uint32_t)min(max(0U, (1024U - (peripheral_frequency / can_frequency))), 1023U); in XMC_CAN_Init()
386 freq_n = (uint32_t) (peripheral_frequency / (1024U - step_n)); in XMC_CAN_Init()
398 step = (normal_divider != 0U) ? step_n : step_f; in XMC_CAN_Init()
410 uint32_t step_n, step_f; in XMC_CAN_Init() local
426 step_n = (uint32_t)min(max(0U, (1024U - (peripheral_frequency / can_frequency))), 1023U); in XMC_CAN_Init()
427 freq_n = (uint32_t) (peripheral_frequency / (1024U - step_n)); in XMC_CAN_Init()
439 step = (normal_divider != 0U) ? step_n : step_f; in XMC_CAN_Init()
501 uint32_t step_n; in XMC_CAN_InitEx() local
513 step_n = (uint32_t)min(max(0U, (1024U - (peripheral_frequency / can_frequency))), 1023U); in XMC_CAN_InitEx()
514 freq_n = (uint32_t)(peripheral_frequency / (1024U - step_n)); in XMC_CAN_InitEx()
517 …obj->FDR |= ((uint32_t)XMC_CAN_DM_NORMAL << CAN_FDR_DM_Pos) | ((uint32_t)step_n << CAN_FDR_STEP_Po… in XMC_CAN_InitEx()
524 uint32_t step_n = (obj->FDR & CAN_FDR_STEP_Msk) >> CAN_FDR_STEP_Pos; in XMC_CAN_GetClockFrequency() local
525 return (XMC_CAN_GetBaudrateClockFrequency(obj) * (1024U - step_n)); in XMC_CAN_GetClockFrequency()