Definitions for low-level CAN driver interface. More...
Definitions for low-level CAN driver interface.
Definition in file candev.h.
#include <stdint.h>
#include <stdlib.h>
#include "can/can.h"
#include "can/common.h"
#include "mutex.h"
Go to the source code of this file.
Data Structures | |
struct | candev |
Structure to hold driver state. More... | |
struct | candev_driver |
Structure to hold driver interface -> function mapping. More... | |
Typedefs | |
typedef struct candev | candev_t |
Forward declaration for candev struct. | |
typedef void(* | candev_event_cb_t) (candev_t *dev, candev_event_t event, void *arg) |
Event callback for signaling event to upper layers. | |
typedef struct candev_driver | candev_driver_t |
Structure to hold driver interface -> function mapping. | |
Enumerations | |
enum | candev_event_t { CANDEV_EVENT_NOEVENT , CANDEV_EVENT_ISR , CANDEV_EVENT_WAKE_UP , CANDEV_EVENT_TX_CONFIRMATION , CANDEV_EVENT_TIMEOUT_TX_CONF , CANDEV_EVENT_RX_INDICATION , CANDEV_EVENT_TX_ERROR , CANDEV_EVENT_RX_ERROR , CANDEV_EVENT_BUS_OFF , CANDEV_EVENT_ERROR_PASSIVE , CANDEV_EVENT_ERROR_WARNING } |
Possible event types that are sent from the device driver to the upper layer. More... | |