Klasse SmartPenValueParser

java.lang.Object
com.blukii.sdk.config.SmartPenValueParser

public class SmartPenValueParser extends Object
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:
  • 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

      public static final SmartPenValueParserInterface<Long> TIMESTAMP
      Timestamp data Parser. Takes 4 bytes of payload and converts it to a single timestamp value
    • FORCE

      public static final SmartPenValueParserInterface<Integer> 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

      public static final SmartPenValueParserInterface<Integer> 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

      public static final SmartPenValueParserInterface<Integer> 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

      public static final SmartPenValueParserInterface<SmartPenMetaData> 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()