Definitions of high-level CAN interface. More...

Detailed Description

Definitions of high-level CAN interface.

Author
Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m

Definition in file common.h.

#include <stdint.h>
#include <sys/uio.h>
#include "timex.h"
#include "thread.h"
+ Include dependency graph for common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  can_opt_t
 Structure to pass a CAN option. More...
 
struct  can_rx_data
 Received data structure. More...
 
struct  can_reg_entry
 registry entry More...
 

Typedefs

typedef struct can_rx_data can_rx_data_t
 Received data structure. More...
 
typedef struct can_reg_entry can_reg_entry_t
 registry entry More...
 

Enumerations

enum  canopt_t {
  CANOPT_BITTIMING, CANOPT_RX_FILTERS, CANOPT_TEC, CANOPT_REC,
  CANOPT_LEC, CANOPT_CLOCK, CANOPT_BITTIMING_CONST, CANOPT_STATE
}
 CAN options. More...
 
enum  canopt_state_t { CANOPT_STATE_OFF, CANOPT_STATE_SLEEP, CANOPT_STATE_LISTEN_ONLY, CANOPT_STATE_ON }
 CAN state options. More...
 
enum  can_msg {
  CAN_MSG_ACK = 0x100, CAN_MSG_SEND_FRAME, CAN_MSG_ABORT_FRAME, CAN_MSG_SET,
  CAN_MSG_GET, CAN_MSG_SET_FILTER, CAN_MSG_REMOVE_FILTER, CAN_MSG_POWER_UP,
  CAN_MSG_POWER_DOWN, CAN_MSG_SET_TRX, CAN_MSG_EVENT = 0x200, CAN_MSG_WAKE_UP,
  CAN_MSG_TX_CONFIRMATION, CAN_MSG_RX_INDICATION, CAN_MSG_TX_ERROR, CAN_MSG_RX_ERROR,
  CAN_MSG_BUS_OFF, CAN_MSG_ERROR_PASSIVE, CAN_MSG_ERROR_WARNING, CAN_MSG_PM,
  CAN_MSG_ISOTP_RX_TIMEOUT = 0x400, CAN_MSG_ISOTP_TX_TIMEOUT
}
 Messages which can be sent through the CAN stack. More...
 
enum  can_reg_type_t { CAN_TYPE_DEFAULT = 0, CAN_TYPE_MBOX }
 registry entry types More...