1. Add new methods for update and receive. It is become possiple
to work with Uint32.
2. ADD changes in ConfigTX method. It determines data length
of a MBOX now as well
voidCAN::updateTXMessage(Uint16boxNumber,constUint32&message){// TODO check trs bit and set it at the end if it was here. Once the TRS bit is set for a mailbox and then data is changed in the mailbox using the CDR
// bit, the CAN module fails to transmit the new data and transmits the old data instead. To avoid this,
// reset transmission in that mailbox using the TRRn bit and set the TRSn bit again. The new data is
// then transmitted.
if(boxNumber>31)return;
volatileMBOX*p_MailBox(0);
p_MailBox=&(p_CanMBoxes_->MBOX0)+boxNumber;
// Set change data request (CDR bit + MBOX number)