Just wanted to clarify.
Does the twai_receive() function fire after an entire packet is received and not on a byte by byte basis?
ie. If I have an xTask waiting for twai_receive() with portMax timeout, the task will wait for a cmplete can bus packet to be received and then trigger so all the bytes will be available immediately on reading the rx queue?
Thanks
Can Bus (TWAI) peripheral receive handling
Re: Can Bus (TWAI) peripheral receive handling
Complete.
Clue is: rather than
Code: Select all
esp_err_t twai_receive(twai_message_t *message, TickType_t ticks_to_wait)
Code: Select all
twai_message_t
Code: Select all
uint8_t *
& I also believe that IDF CAN should be fixed.
Who is online
Users browsing this forum: Google [Bot] and 146 guests