IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


Data Structures | Macros | Typedefs | Enumerations
CAN constants and data types

Detailed Description

This section describes constants and data types defined by the @CHIP-RTOS-LNX CAN API.

Data Structures

struct  CanFilter
 
struct  CanFilterSW
 
struct  CanMsg
 

Macros

#define CAN_PORT_CAN1   0
 CAN1 port. More...
 
#define CAN_PORT_CAN2   1
 CAN2 port. More...
 
#define CAN_INIT_OPTION_PRIOS
 Use a normal and a high priority transmission queue. More...
 
#define CAN_INIT_OPTION_3_SAMPLE_POINTS
 Use three sample points. More...
 
#define CAN_INIT_OPTION_LOOP_BACK_MODE
 Switch controller into loop back mode. More...
 
#define CAN_INIT_OPTION_PASSIVE_MODE
 Switch controller into passive or listen-only mode. More...
 
#define CAN_INIT_OPTION_AUTO_RESTART
 Enable automatic restart in case of a bus off error. More...
 
#define CAN_FILTER_CONTROLLER_TYPE_SW
 Constant representing the Software CAN filter. More...
 
#define CAN_MSG_MAX_LEN
 Constant representing the maximum length of CAN message data. More...
 

Typedefs

typedef int(* CanCallback) (CanEvent event, const CanMsg *msg)
 

Enumerations

enum  CanError {
  CAN_ERROR_NO = 0,
  CAN_ERROR_ILLEGAL_ARGUMENT = -1,
  CAN_ERROR_ILLEGAL_BAUDRATE = -2,
  CAN_ERROR_TIMEOUT = -3,
  CAN_ERROR_OUT_OF_MEMORY = -4,
  CAN_ERROR_OUT_OF_RESOURCES = -5,
  CAN_ERROR_QUEUE_MAX = -6
}
 
enum  CanEvent {
  CAN_EVENT_RX = 0,
  CAN_EVENT_BUS_OFF = 2,
  CAN_EVENT_OVERRUN = 3,
  CAN_EVENT_OVERRUN_RX = 3,
  CAN_EVENT_OVERRUN_TX = 4,
  CAN_EVENT_WARNING_RX = 5,
  CAN_EVENT_WARNING_TX = 6,
  CAN_EVENT_PASSIVE_RX = 7,
  CAN_EVENT_PASSIVE_TX = 8,
  CAN_EVENT_ACTIVE = 9
}
 
enum  CanErrorState {
  CAN_ERROR_STATE_ACTIVE = 0,
  CAN_ERROR_STATE_WARNING = 1,
  CAN_ERROR_STATE_PASSIVE = 2,
  CAN_ERROR_STATE_BUS_OFF = 3
}
 





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Jun 8 2018 12:48:20 by Doxygen 1.8.13