Data Link Layer Implementation

Controller area network (CAN) data link layer is the interface between CAN physical layer and the microcontroller, containing the actual control software. The interface towards the microcontroller consists of mailboxes for receiving and sending in conjunction with the corresponding flags such as transmission-request-flag, receive-flag, etc., and further status-signal signalling errors, etc. Towards the bus, the interface performs synchronization and arbitration as well as error handling and finally the bitwise receive and transmission of data streams.