Modules | Macros
EMAC_control command and status codes

Modules

 Status Codes
 
 Command Codes
 

Macros

#define EMAC_CMD_RESERVED   32
 
#define EMAC_STATUS_RESERVED   -32
 

Detailed Description

These EMAC macros are reservations for EMAC.h

Macro Definition Documentation

§ EMAC_CMD_RESERVED

#define EMAC_CMD_RESERVED   32

Common EMAC_control command code reservation offset. EMAC driver implementations should offset command codes with EMAC_CMD_RESERVED growing positively

Example implementation specific command codes:

#define EMACXYZ_CMD_COMMAND0 EMAC_CMD_RESERVED + 0
#define EMACXYZ_CMD_COMMAND1 EMAC_CMD_RESERVED + 1

§ EMAC_STATUS_RESERVED

#define EMAC_STATUS_RESERVED   -32

Common EMAC_control status code reservation offset. EMAC driver implementations should offset status codes with EMAC_STATUS_RESERVED growing negatively.

Example implementation specific status codes:

#define EMACXYZ_STATUS_ERROR0 EMAC_STATUS_RESERVED - 0
#define EMACXYZ_STATUS_ERROR1 EMAC_STATUS_RESERVED - 1
#define EMACXYZ_STATUS_ERROR2 EMAC_STATUS_RESERVED - 2
Copyright 2017, Texas Instruments Incorporated