public enum LoggingTrigger extends java.lang.Enum<LoggingTrigger> implements Logging.Trigger
Enum Constant and Description |
---|
ACCELEROMETER_MOTION
Logs free fall or motion events
|
ACCELEROMETER_ORIENTATION
Logs the orientation data
|
ACCELEROMETER_SHAKE
Logs shake events
|
ACCELEROMETER_TAP
Logs tap events
|
ACCELEROMETER_X_AXIS
Logs the X axis values of the accelerometer data output
|
ACCELEROMETER_XY_AXIS
Logs the X and Y axis of the accelerometer
|
ACCELEROMETER_Y_AXIS
Logs the Y axis values of the accelerometer data output
|
ACCELEROMETER_YZ_AXIS
Logs the Y and Z axis of the accelerometer
|
ACCELEROMETER_Z_AXIS
Logs the Z axis values of the accelerometer data output
|
SWITCH
Logs events for the push button switch
|
TEMPERATURE
Logs data from the temperature sensor
|
Modifier and Type | Method and Description |
---|---|
byte |
index()
Controls which module index to log i.e.
|
byte |
length()
Number of bytes required by the trigger data.
|
static Logging.Trigger |
lookupTrigger(byte[] triggerBytes)
Converts bytes describing a trigger to its corresponding enum entry
|
byte |
offset()
Position in the register byte array to start logging from
|
static LoggingTrigger |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LoggingTrigger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
register
public static final LoggingTrigger SWITCH
public static final LoggingTrigger TEMPERATURE
public static final LoggingTrigger ACCELEROMETER_X_AXIS
public static final LoggingTrigger ACCELEROMETER_XY_AXIS
public static final LoggingTrigger ACCELEROMETER_Y_AXIS
public static final LoggingTrigger ACCELEROMETER_YZ_AXIS
public static final LoggingTrigger ACCELEROMETER_Z_AXIS
public static final LoggingTrigger ACCELEROMETER_ORIENTATION
public static final LoggingTrigger ACCELEROMETER_MOTION
public static final LoggingTrigger ACCELEROMETER_SHAKE
public static final LoggingTrigger ACCELEROMETER_TAP
public static LoggingTrigger[] values()
for (LoggingTrigger c : LoggingTrigger.values()) System.out.println(c);
public static LoggingTrigger 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 static Logging.Trigger lookupTrigger(byte[] triggerBytes)
triggerBytes
- Bytes describing a triggerpublic byte index()
Logging.Trigger
index
in interface Logging.Trigger
public byte offset()
Logging.Trigger
offset
in interface Logging.Trigger
public byte length()
Logging.Trigger
length
in interface Logging.Trigger