Definitions of low-level CAN DLL interface. More...
Definitions of low-level CAN DLL interface.
Definition in file dll.h.
 Include dependency graph for dll.h:Go to the source code of this file.
| int | can_dll_init (void) | 
| Initialize the CAN DLL.   | |
| int | can_dll_register_candev (candev_dev_t *candev) | 
| Register a CAN device into the DLL.   | |
| int | can_dll_dispatch_rx_frame (can_frame_t *frame, kernel_pid_t pid) | 
| Dispatch a received frame.   | |
| int | can_dll_dispatch_tx_conf (can_pkt_t *pkt) | 
| Dispatch a tx confirmation.   | |
| int | can_dll_dispatch_tx_error (can_pkt_t *pkt) | 
| Dispatch a tx error.   | |
| int | can_dll_dispatch_bus_off (kernel_pid_t pid) | 
| Dispatch RX error from a device.   | |
| int can_dll_dispatch_bus_off | ( | kernel_pid_t | pid | ) | 
Dispatch RX error from a device.
Dispatch RX error from a device to receivers threads which have subscribed to frames on that interface
| [in] | pid | the device thread pid | 
| int can_dll_dispatch_rx_frame | ( | can_frame_t * | frame, | 
| kernel_pid_t | pid ) | 
Dispatch a received frame.
This function is used to send a message to the DLL thread when a frame is received from the device identified by its pid 
| [in] | frame | the received frame | 
| [in] | pid | the pid of the receiver device | 
| int can_dll_dispatch_tx_conf | ( | can_pkt_t * | pkt | ) | 
Dispatch a tx confirmation.
This function is used to send a message to the sender thread when the pkt has been sent correctly.
| [in] | pkt | the pkt which has been sent | 
| int can_dll_dispatch_tx_error | ( | can_pkt_t * | pkt | ) | 
Dispatch a tx error.
This function is used to send a message to the sender thread when the pkt has not been sent correctly
| [in] | pkt | the pkt which has not been sent correctly | 
| int can_dll_init | ( | void | ) | 
Initialize the CAN DLL.
| int can_dll_register_candev | ( | candev_dev_t * | candev | ) | 
Register a CAN device into the DLL.
This function must be called by the device thread to register the device into the DLL
| [in] | candev | the candev to register |