What does " writing blank IF register to each message object" in the following code mean?
//clear CAN Msg RAM void clear_msg_RAM (void) { SFRPAGE = CAN0_PAGE; // setting the SFR page CAN0ADR = IF1CMDMSK; // Point to Command Mask Register 1 CAN0DATL = 0xFF; // Set direction to WRITE all IF registers to message object for (i=1;i<33;i++) { CAN0ADR = IF1CMDRQST; // Write blank IF registers to each message object CAN0DATL = i; } }
It means that you have to get off your lower back and do some work. Like read the documentation that came with this stolen code, or, gasp, the datasheet of whatever part this code may be meant for.