Interupting CAN communication
Hello everyone. I am working on CAN communication with STM32F429I-Disc1 with TJA1050 transceiver. Standard communication works more than fine. What I would like to do next is to interrupt communication while CAN message with certain ID is present on bus. In other words I would like to detect while new message is started to be send, and after ID field I would like to send e.g. 20 0s (dominant bits) on the bus. HAL_CAN_RxFifo0MsgPendingCallback and HAL_CAN_GetRxMessage give access to complete frames. I need deeper and faster solution. Here are my questions:
1) Is there a way to solve my task with existing HAL libraries?
2) Where callback from HAL_CAN_RxFifo0MsgPendingCallback CAN interupt is done? Is it after complete message is received (and validated by crc check) or just after SOF bit received on the bus?
Thank you in advance for your help.
