public enum Module extends java.lang.Enum<Module>
Register
Enum Constant and Description |
---|
ACCELEROMETER
3-axis accelerometer
|
DATA_PROCESSOR
Manipulates sensor data on the board
|
DEBUG
Debug mode for testing purposes
|
EVENT
Connection sensor activity with commands to be executed
|
GPIO
General purpose I/O
|
HAPTIC
Provides pulse width modulate for
|
I2C
Communicate with sensors connected via I2C
|
IBEACON
Configure IBeacon settings
|
LED
Ultra-Bright RGB LED
|
LOGGING
Offline logging for sensor data
|
MACRO
Programs commands to the board's flash memory
|
MECHANICAL_SWITCH
Miniature push button switch
|
NEO_PIXEL
Controls NeoPixel strands connected to the board
|
SETTINGS
Manipujlates the advertisement settings
|
TEMPERATURE
Temperature sensor
|
TIMER
Internal timer that sends periodic notifications
|
Modifier and Type | Field and Description |
---|---|
byte |
opcode
Opcode of the module
|
Modifier and Type | Method and Description |
---|---|
static Module |
lookupModule(byte opcode)
Find the Module with the opcode
|
Register |
lookupRegister(byte opcode)
Find the register belonging to the module with the specific opcode
|
static Module |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Module[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Module MECHANICAL_SWITCH
public static final Module LED
public static final Module ACCELEROMETER
public static final Module TEMPERATURE
public static final Module GPIO
public static final Module NEO_PIXEL
public static final Module IBEACON
public static final Module HAPTIC
public static final Module DATA_PROCESSOR
public static final Module EVENT
public static final Module LOGGING
public static final Module TIMER
public static final Module I2C
public static final Module MACRO
public static final Module SETTINGS
public static final Module DEBUG
public static Module[] values()
for (Module c : Module.values()) System.out.println(c);
public static Module valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Register lookupRegister(byte opcode)
opcode
- Register opcode to searchpublic static Module lookupModule(byte opcode)
opcode
- Module opcode to search