battery_mode_t

Battery modes.

Synopsis:

#include <nfc/nfc_types.h>

typedef enum {
      BATTERY_MODE_ON =  1   
      BATTERY_MODE_OFF =  2   
} battery_mode_t;

Since:

BlackBerry 10.0.0

Data:

BATTERY_MODE_ON
The device is powered on.
BATTERY_MODE_OFF
  • Feature set 1: This value indicates that the device is not running on battery or the battery has been removed.
  • Feature set 2: This value indicates that the device has been turned off by the user or is off due to low battery power.

Library:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This enumeration defines battery modes. The battery modes are used to configure card emulation mode for Universal Integrated Circuit Card (UICC) or embedded secure elements.