Home
last modified time | relevance | path

Searched refs:tqNum (Results 1 – 3 of 3) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/mcan/
Dfsl_mcan.c93 static void MCAN_GetSegments(uint32_t baudRate, uint32_t tqNum, mcan_timing_config_t *pconfig);
103 static void MCAN_FDGetSegments(uint32_t baudRateFD, uint32_t tqNum, mcan_timing_config_t *pconfig);
396 static void MCAN_FDGetSegments(uint32_t baudRateFD, uint32_t tqNum, mcan_timing_config_t *pconfig) in MCAN_FDGetSegments() argument
418 pconfig->dataseg2 = (uint8_t)(tqNum - (tqNum * ideal_sp) / (uint32_t)IDEAL_SP_FACTOR - 1U); in MCAN_FDGetSegments()
425 seg1Temp = tqNum - pconfig->dataseg2 - 3U; in MCAN_FDGetSegments()
429 pconfig->dataseg2 = (uint8_t)(tqNum - MAX_DTSEG1 - 3U); in MCAN_FDGetSegments()
462 uint32_t tqNum; /* Numbers of TQ. */ in MCAN_CalculateImprovedNominalTimingValues() local
469 for (tqNum = NBTP_MAX_TIME_QUANTA; tqNum >= NBTP_MIN_TIME_QUANTA; tqNum--) in MCAN_CalculateImprovedNominalTimingValues()
471 clk = baudRate * tqNum; in MCAN_CalculateImprovedNominalTimingValues()
490 … configTemp.seg2 = (uint8_t)(tqNum - (tqNum * IDEAL_NOMINAL_SP) / (uint32_t)IDEAL_SP_FACTOR - 1U); in MCAN_CalculateImprovedNominalTimingValues()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/mscan/
Dfsl_mscan.c138 static bool MSCAN_GetSegments(uint32_t baudRate, uint32_t tqNum, mscan_timing_config_t *pconfig);
236 static bool MSCAN_GetSegments(uint32_t baudRate, uint32_t tqNum, mscan_timing_config_t *pconfig) in MSCAN_GetSegments() argument
257 p1 = tqNum * (uint32_t)ideal_sp; in MSCAN_GetSegments()
263 if (pconfig->timeSeg1 <= ((uint8_t)tqNum - 3U)) in MSCAN_GetSegments()
266 pconfig->timeSeg2 = (uint8_t)tqNum - (pconfig->timeSeg1 + 3U); in MSCAN_GetSegments()
272 pconfig->sJumpwidth = ((uint8_t)tqNum + (5U - 1U)) / 5U - 1U; in MSCAN_GetSegments()
300 uint32_t tqNum; /* Numbers of TQ. */ in MSCAN_CalculateImprovedTimingValues() local
307 for (tqNum = MSCAN_MAX_TIME_QUANTA; tqNum >= MSCAN_MIN_TIME_QUANTA; tqNum--) in MSCAN_CalculateImprovedTimingValues()
309 clk = baudRate * tqNum; in MSCAN_CalculateImprovedTimingValues()
328 if (MSCAN_GetSegments(baudRate, tqNum, pconfig)) in MSCAN_CalculateImprovedTimingValues()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/flexcan/
Dfsl_flexcan.c214 uint32_t tqNum,
243 static void FLEXCAN_FDGetSegments(uint32_t bitRateFD, uint32_t tqNum, flexcan_timing_config_t *pTim…
1614 uint32_t tqNum, in FLEXCAN_GetSegments() argument
1659 pTimingConfig->phaseSeg2 = (uint8_t)(tqNum - (tqNum * ideal_sp) / (uint32_t)IDEAL_SP_FACTOR); in FLEXCAN_GetSegments()
1678 if ((tqNum - pTimingConfig->phaseSeg2 - 1U) > (seg1Max + proSegMax)) in FLEXCAN_GetSegments()
1681 pTimingConfig->phaseSeg2 = (uint8_t)(tqNum - 1U - seg1Temp); in FLEXCAN_GetSegments()
1685 seg1Temp = tqNum - pTimingConfig->phaseSeg2 - 1U; in FLEXCAN_GetSegments()
1745 uint32_t tqNum, tqMin, pdivMAX; in FLEXCAN_CalculateImprovedTimingValues() local
1754 tqNum = ENCBT_MAX_TIME_QUANTA; in FLEXCAN_CalculateImprovedTimingValues()
1759 tqNum = CBT_MAX_TIME_QUANTA; in FLEXCAN_CalculateImprovedTimingValues()
[all …]