Currently, disabling CTU CAN FD can be done by writing SETTINGS[ENA] = 0. If node is receiving, it can happen it will be cut-off in the middle of CAN frame, or or maybe even in the middle of ACK bit.
It would be convenient to add some sort of power-down/disabling support. The behavior shall be following:
- User writes a bit to request power-down. CTU CAN FD captures this request.
- CTU CAN FD waits for bus-idle and no transmissions ready. When it happens, it indicates that it can be disabled (in status register). Also, it automatically, pushes Protocol control logic to reset (as if SETTINGS[ENA] = 0).
- User writes SETTINGS[ENA] = 0.