Package com.blukii.sdk.config
Klasse SmartPenValueParser
java.lang.Object
com.blukii.sdk.config.SmartPenValueParser
This class represents a SmartPen value parser helper. It extracts the SmartPen values from bytes according to the value type
NOTE: This class is for internal use only.
NOTE: Other value types are not yet supported
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final SmartPenValueParserInterface<Integer> Optic X data Parser.static final SmartPenValueParserInterface<Integer> Optic Y data Parser.static final SmartPenValueParserInterface<Integer> Force data Parser.static final SmartPenValueParserInterface<AccelerometerValue> IMU data Parser.static final SmartPenValueParserInterface<SmartPenMetaData> SmartPen Metadata Parser, Takes 30 bytes of metadata payload and converts it to a metadata object.static final SmartPenValueParserInterface<Long> Timestamp data Parser. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Felddetails
-
IMU
IMU data Parser. Takes 6 bytes of payload and converts them to 3 x 2-byte integers representing either Acceleration, Angular Velocity, or Magnetic flux on 3D axis: X, Y, and Z respectively -
TIMESTAMP
Timestamp data Parser. Takes 4 bytes of payload and converts it to a single timestamp value -
FORCE
Force data Parser. Takes 5 bytes of payload (coming from the optical sensor) and extracts a single-byte signed value representing force. -
DELTA_X
Optic X data Parser. Takes 5 bytes of payload (coming from the optical sensor) and extracts a 2-byte signed value representing movement data on X axis. -
DELTA_Y
Optic Y data Parser. Takes 5 bytes of payload (coming from the optical sensor) and extracts a 2-byte signed value representing movement data on Y axis. -
METADATA
SmartPen Metadata Parser, Takes 30 bytes of metadata payload and converts it to a metadata object.Note: Currently not all values are supported. Only the relevant bytes are parsed, and the rest are ignored
- Siehe auch:
-
-
Konstruktordetails
-
SmartPenValueParser
public SmartPenValueParser()
-