Searched refs:u8NumberOfBytes (Results 1 – 2 of 2) sorted by relevance
317 static uint8_t CANFD_EncodeDLC(uint8_t u8NumberOfBytes) in CANFD_EncodeDLC() argument319 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()
336 static uint8_t CANFD_EncodeDLC(uint8_t u8NumberOfBytes) in CANFD_EncodeDLC() argument338 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()