nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data page 2 - status byte definitions

Macros

#define SDM_STATUS_USE_STATE_POS   0x0
 
#define SDM_STATUS_USE_STATE_MASK   (0x3u << SDM_STATUS_USE_STATE_POS)
 
#define SDM_STATUS_USE_STATE_INACTIVE   (0x0 << SDM_STATUS_USE_STATE_POS)
 
#define SDM_STATUS_USE_STATE_ACTIVE   (0x1u << SDM_STATUS_USE_STATE_POS)
 
#define SDM_STATUS_HEALTH_POS   0x2
 
#define SDM_STATUS_HEALTH_MASK   (0x3u << SDM_STATUS_HEALTH_POS)
 
#define SDM_STATUS_HEALTH_OK   (0x0 << SDM_STATUS_HEALTH_POS)
 
#define SDM_STATUS_HEALTH_ERROR   (0x1u << SDM_STATUS_HEALTH_POS)
 
#define SDM_STATUS_HEALTH_WARNING   (0x2u << SDM_STATUS_HEALTH_POS)
 
#define SDM_STATUS_BATTERY_POS   0x4u
 
#define SDM_STATUS_BATTERY_MASK   (0x3u << SDM_STATUS_BATTERY_POS)
 
#define SDM_STATUS_BATTERY_NEW   (0x0 << SDM_STATUS_BATTERY_POS)
 
#define SDM_STATUS_BATTERY_STATUS_GOOD   (0x1u << SDM_STATUS_BATTERY_POS)
 
#define SDM_STATUS_BATTERY_STATUS_OK   (0x2u << SDM_STATUS_BATTERY_POS)
 
#define SDM_STATUS_BATTERY_STATUS_LOW   (0x3u << SDM_STATUS_BATTERY_POS)
 
#define SDM_STATUS_LOCATION_POS   0x6u
 
#define SDM_STATUS_LOCATION_MASK   (0x3u << SDM_STATUS_LOCATION_POS)
 
#define SDM_STATUS_LOCATION_LACES   (0x0 << SDM_STATUS_LOCATION_POS)
 
#define SDM_STATUS_LOCATION_MIDSOLE   (0x1u << SDM_STATUS_LOCATION_POS)
 
#define SDM_STATUS_LOCATION_OTHER   (0x2u << SDM_STATUS_LOCATION_POS)
 
#define SDM_STATUS_LOCATION_ANKLE   (0x3u << SDM_STATUS_LOCATION_POS)
 

Detailed Description

Macro Definition Documentation

#define SDM_STATUS_BATTERY_MASK   (0x3u << SDM_STATUS_BATTERY_POS)

Battery bit mask.

#define SDM_STATUS_BATTERY_NEW   (0x0 << SDM_STATUS_BATTERY_POS)

Battery status new.

#define SDM_STATUS_BATTERY_POS   0x4u

Battery state bit position.

#define SDM_STATUS_BATTERY_STATUS_GOOD   (0x1u << SDM_STATUS_BATTERY_POS)

Battery status good.

#define SDM_STATUS_BATTERY_STATUS_LOW   (0x3u << SDM_STATUS_BATTERY_POS)

Battery status low.

#define SDM_STATUS_BATTERY_STATUS_OK   (0x2u << SDM_STATUS_BATTERY_POS)

Battery status ok.

#define SDM_STATUS_HEALTH_ERROR   (0x1u << SDM_STATUS_HEALTH_POS)

Health status error.

#define SDM_STATUS_HEALTH_MASK   (0x3u << SDM_STATUS_HEALTH_POS)

Health bit mask.

#define SDM_STATUS_HEALTH_OK   (0x0 << SDM_STATUS_HEALTH_POS)

Health status OK.

#define SDM_STATUS_HEALTH_POS   0x2

Health state bit position.

#define SDM_STATUS_HEALTH_WARNING   (0x2u << SDM_STATUS_HEALTH_POS)

Health status warning.

#define SDM_STATUS_LOCATION_ANKLE   (0x3u << SDM_STATUS_LOCATION_POS)

Located at ankle.

#define SDM_STATUS_LOCATION_LACES   (0x0 << SDM_STATUS_LOCATION_POS)

Located at laces.

#define SDM_STATUS_LOCATION_MASK   (0x3u << SDM_STATUS_LOCATION_POS)

Location bit mask.

#define SDM_STATUS_LOCATION_MIDSOLE   (0x1u << SDM_STATUS_LOCATION_POS)

Located at midsole.

#define SDM_STATUS_LOCATION_OTHER   (0x2u << SDM_STATUS_LOCATION_POS)

Located at other place.

#define SDM_STATUS_LOCATION_POS   0x6u

Location state bit position.

#define SDM_STATUS_USE_STATE_ACTIVE   (0x1u << SDM_STATUS_USE_STATE_POS)

State active.

#define SDM_STATUS_USE_STATE_INACTIVE   (0x0 << SDM_STATUS_USE_STATE_POS)

State inactive.

#define SDM_STATUS_USE_STATE_MASK   (0x3u << SDM_STATUS_USE_STATE_POS)

Use state bit mask.

#define SDM_STATUS_USE_STATE_POS   0x0

Use state bit position.