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

Modules

 Status Codes
 
 Command Codes
 

Macros

#define NVS_CMD_RESERVED   (32)
 
#define NVS_STATUS_RESERVED   (-32)
 

Detailed Description

These NVS macros are reservations for NVS.h

Macro Definition Documentation

§ NVS_CMD_RESERVED

#define NVS_CMD_RESERVED   (32)

Common NVS_control command code reservation offset. NVS driver implementations should offset command codes with NVS_CMD_RESERVED growing positively

Example implementation specific command codes:

#define NVSXYZ_CMD_COMMAND0 NVS_CMD_RESERVED + 0
#define NVSXYZ_CMD_COMMAND1 NVS_CMD_RESERVED + 1

§ NVS_STATUS_RESERVED

#define NVS_STATUS_RESERVED   (-32)

Common NVS_control status code reservation offset. NVS driver implementations should offset status codes with NVS_STATUS_RESERVED growing negatively.

Example implementation specific status codes:

#define NVSXYZ_STATUS_ERROR0 NVS_STATUS_RESERVED - 0
#define NVSXYZ_STATUS_ERROR1 NVS_STATUS_RESERVED - 1
#define NVSXYZ_STATUS_ERROR2 NVS_STATUS_RESERVED - 2
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale