org.opennfc.hardware
Enum NfcController.Mode

Object
  extended by Enum<NfcController.Mode>
      extended by org.opennfc.hardware.NfcController.Mode
All Implemented Interfaces:
Serializable, Comparable<NfcController.Mode>
Enclosing interface:
NfcController

public static enum NfcController.Mode
extends Enum<NfcController.Mode>


Enum Constant Summary
ACTIVE
          The NFC Controller is active.
BOOT_PENDING
          A boot procedure is pending.
FIRMWARE_NOT_SUPPORTED
          Maintenance mode, the version of the firmware is not supported by the stack
LOADER_NOT_SUPPORTED
          The version of the loader is not supported.
MAINTENANCE
          Maintenance mode, the firmware can be used.
NO_FIRMWARE
          Maintenance mode, no firmware is present.
NOT_RESPONDING
          The NFC Controller is not responding.
STANDBY
          The NFC Controller is in standby mode
SWITCH_TO_ACTIVE
          The NFC Controller is switching from standby mode to active mode
SWITCH_TO_STANDBY
          The NFC Controller is switching from active mode to standby mode
 
Method Summary
 int getValue()
          Returns the mode value.
static NfcController.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NfcController.Mode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOOT_PENDING

public static final NfcController.Mode BOOT_PENDING
A boot procedure is pending.


MAINTENANCE

public static final NfcController.Mode MAINTENANCE
Maintenance mode, the firmware can be used.


NO_FIRMWARE

public static final NfcController.Mode NO_FIRMWARE
Maintenance mode, no firmware is present.


FIRMWARE_NOT_SUPPORTED

public static final NfcController.Mode FIRMWARE_NOT_SUPPORTED
Maintenance mode, the version of the firmware is not supported by the stack


NOT_RESPONDING

public static final NfcController.Mode NOT_RESPONDING
The NFC Controller is not responding.


LOADER_NOT_SUPPORTED

public static final NfcController.Mode LOADER_NOT_SUPPORTED
The version of the loader is not supported.


ACTIVE

public static final NfcController.Mode ACTIVE
The NFC Controller is active.


SWITCH_TO_STANDBY

public static final NfcController.Mode SWITCH_TO_STANDBY
The NFC Controller is switching from active mode to standby mode


STANDBY

public static final NfcController.Mode STANDBY
The NFC Controller is in standby mode


SWITCH_TO_ACTIVE

public static final NfcController.Mode SWITCH_TO_ACTIVE
The NFC Controller is switching from standby mode to active mode

Method Detail

values

public static NfcController.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NfcController.Mode c : NfcController.Mode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NfcController.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getValue

public int getValue()
Returns the mode value.


Copyright © 2010-2011 Inside Secure
Except as noted, this content is licensed under Apache 2.0 License.