Modules | Macros
CAN_control command and status codes
Collaboration diagram for CAN_control command and status codes:

Modules

 Status Codes
 

Macros

#define CAN_CMD_RESERVED   (32)
 
#define CAN_STATUS_RESERVED   (-32)
 

Detailed Description

These CAN macros are reservations for CAN.h

Macro Definition Documentation

§ CAN_CMD_RESERVED

#define CAN_CMD_RESERVED   (32)

Common CAN_control command code reservation offset. CAN driver implementations should offset command codes with CAN_CMD_RESERVED growing positively

Example implementation specific command codes:

#define CANXYZ_CMD_COMMAND0 CAN_CMD_RESERVED + 0
#define CANXYZ_CMD_COMMAND1 CAN_CMD_RESERVED + 1

§ CAN_STATUS_RESERVED

#define CAN_STATUS_RESERVED   (-32)

Common CAN_control status code reservation offset. CAN driver implementations should offset status codes with CAN_STATUS_RESERVED growing negatively.

Example implementation specific status codes:

#define CANXYZ_STATUS_ERROR0 CAN_STATUS_RESERVED - 0
#define CANXYZ_STATUS_ERROR1 CAN_STATUS_RESERVED - 1
#define CANXYZ_STATUS_ERROR2 CAN_STATUS_RESERVED - 2
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale