Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
can_types.h File Reference

This is the generated driver types header file for the CAN driver using CCL. More...

#include <stdint.h>
+ Include dependency graph for can_types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CAN_MSG_FIELD
 This data structure used to configure the message fields. Some of the fields formatType and brs data should match with the CAN FD configuration in Melody MCC user interface. More...
 
struct  CAN_MSG_OBJ
 This data structure used to configure the CAN FD message object. More...
 

Enumerations

enum  CAN_MSG_OBJ_BRS_MODE { CAN_NON_BRS_MODE = 0 , CAN_BRS_MODE = 1 }
 Defines the Bit rate with enabled or disabled the CAN message object. More...
 
enum  CAN_MSG_OBJ_ID_TYPE { CAN_FRAME_STD = 0 , CAN_FRAME_EXT = 1 }
 Defines the Standard ID or Extended ID in CAN message object. More...
 
enum  CAN_MSG_OBJ_FRAME_TYPE { CAN_FRAME_DATA = 0 , CAN_FRAME_RTR = 1 }
 Defines the Data frame or Remote transmit Request frame in CAN message object. More...
 
enum  CAN_MSG_OBJ_TYPE { CAN_2_0_FORMAT = 0 , CAN_FD_FORMAT = 1 }
 Defines the CAN FD format or CAN 2.0 format in CAN message object. More...
 
enum  CAN_TX_MSG_REQUEST_STATUS { CAN_TX_MSG_REQUEST_SUCCESS = 0 , CAN_TX_MSG_REQUEST_DLC_EXCEED_ERROR = 1 , CAN_TX_MSG_REQUEST_BRS_ERROR = 2 , CAN_TX_MSG_REQUEST_FIFO_FULL = 3 }
 Defines the CAN transmit Api return status. More...
 
enum  CAN_OP_MODES { CAN_NORMAL_FD_MODE = 0x0 , CAN_DISABLE_MODE = 0x1 , CAN_INTERNAL_LOOPBACK_MODE = 0x2 , CAN_LISTEN_ONLY_MODE = 0x3 , CAN_CONFIGURATION_MODE = 0x4 , CAN_EXTERNAL_LOOPBACK_MODE = 0x5 , CAN_NORMAL_2_0_MODE = 0x6 , CAN_RESTRICTED_OPERATION_MODE =0x7 }
 Defines the CAN operation modes are available for the module to use. More...
 
enum  CAN_OP_MODE_STATUS { CAN_OP_MODE_REQUEST_SUCCESS , CAN_OP_MODE_REQUEST_FAIL , CAN_OP_MODE_SYS_ERROR_OCCURED }
 Defines the CAN operation set Api return status. More...
 
enum  CAN_TX_FIFO_STATUS { CAN_TX_FIFO_FULL , CAN_TX_FIFO_AVAILABLE }
 Defines the CAN transmit status get Api return status. More...
 
enum  CAN_DLC {
  DLC_0 , DLC_1 , DLC_2 , DLC_3 , DLC_4 , DLC_5 , DLC_6 , DLC_7 , DLC_8 , DLC_12 ,
  DLC_16 , DLC_20 , DLC_24 , DLC_32 , DLC_48 , DLC_64
}
 Defines the CAN message payload size that are available for the mode to use. More...
 
enum  CAN_RX_FIFO_STATUS { CAN_RX_MSG_NOT_AVAILABLE = 0x0 , CAN_RX_MSG_AVAILABLE = 0x1 , CAN_RX_MSG_OVERFLOW = 0x8 }
 

Detailed Description

CAN Generated Driver Types Header File

Definition in file can_types.h.

Enumeration Type Documentation

◆ CAN_RX_FIFO_STATUS

Enumerator
CAN_RX_MSG_NOT_AVAILABLE 
CAN_RX_MSG_AVAILABLE 
CAN_RX_MSG_OVERFLOW 

Definition at line 205 of file can_types.h.