Home
last modified time | relevance | path

Searched refs:u8NumberOfBytes (Results 1 – 2 of 2) sorted by relevance

/hal_nuvoton-latest/m2l31x/StdDriver/src/
Dcanfd.c317 static uint8_t CANFD_EncodeDLC(uint8_t u8NumberOfBytes) in CANFD_EncodeDLC() argument
319 if (u8NumberOfBytes <= 8) return u8NumberOfBytes; in CANFD_EncodeDLC()
320 else if (u8NumberOfBytes <= 12) return 9; in CANFD_EncodeDLC()
321 else if (u8NumberOfBytes <= 16) return 10; in CANFD_EncodeDLC()
322 else if (u8NumberOfBytes <= 20) return 11; in CANFD_EncodeDLC()
323 else if (u8NumberOfBytes <= 24) return 12; in CANFD_EncodeDLC()
324 else if (u8NumberOfBytes <= 32) return 13; in CANFD_EncodeDLC()
325 else if (u8NumberOfBytes <= 48) return 14; in CANFD_EncodeDLC()
/hal_nuvoton-latest/m46x/StdDriver/src/
Dcanfd.c336 static uint8_t CANFD_EncodeDLC(uint8_t u8NumberOfBytes) in CANFD_EncodeDLC() argument
338 if (u8NumberOfBytes <= 8) return u8NumberOfBytes; in CANFD_EncodeDLC()
339 else if (u8NumberOfBytes <= 12) return 9; in CANFD_EncodeDLC()
340 else if (u8NumberOfBytes <= 16) return 10; in CANFD_EncodeDLC()
341 else if (u8NumberOfBytes <= 20) return 11; in CANFD_EncodeDLC()
342 else if (u8NumberOfBytes <= 24) return 12; in CANFD_EncodeDLC()
343 else if (u8NumberOfBytes <= 32) return 13; in CANFD_EncodeDLC()
344 else if (u8NumberOfBytes <= 48) return 14; in CANFD_EncodeDLC()