Sleep mode is entered from Configuration Mode when the following conditions are
met:
- Select Sleep Mode. Write 1 to can.MSR[SLEEP] and write 0 to can.MSR[LBACK].
- Enable the controller. Write 1 to can.SSR[CEN].
- Wait for TxFIFO or TxHPB to empty.
Note: In configuration mode, can.MSR[SNOOP] = do not care.
Sleep mode is exited when I/O bus activity is detected or when software writes a message to either the TxFIFO or the TxHPB. When the controller exits sleep mode, can.MSR[SLEEP] is set to 0 by the hardware and an interrupt can be generated.