I tested with Arduino UNO with CANBus shield. Inserted digitalWrite As below, and checked on an oscilloscope. 4 CAN messages transmitted. 3msec a new TX.
CAN0.readMsgBuf(&canId,&ext,&len, buf); // Read data: len = data length, buf = data byte(s)
digitalWrite(7, HIGH); //...