MT2523 API Reference  LinkIt SDK v4

Overview

Enumerations

enum  sensor_activity_type_t {
  SENSOR_ACTIVITY_STILL,
  SENSOR_ACTIVITY_STANDING,
  SENSOR_ACTIVITY_SITTING,
  SENSOR_ACTIVITY_LAYING,
  SENSOR_ACTIVITY_ON_FOOT,
  SENSOR_ACTIVITY_WALKING,
  SENSOR_ACTIVITY_RUNNING,
  SENSOR_ACTIVITY_CLIMBING,
  SENSOR_ACTIVITY_ON_BICYCLE,
  SENSOR_ACTIVITY_IN_VEHICLE,
  SENSOR_ACTIVITY_TILTING,
  SENSOR_ACTIVITY_UNKNOWN,
  SENSOR_ACTIVITY_MAX
}
 The types of activity recognition. More...
 
enum  sensor_gesture_type_t {
  SENSOR_GESTURE_NONE,
  SENSOR_GESTURE_SHAKE,
  SENSOR_GESTURE_TAP,
  SENSOR_GESTURE_TWIST,
  SENSOR_GESTURE_FLIP,
  SENSOR_GESTURE_SNAPSHOT,
  SENSOR_GESTURE_PICKUP,
  SENSOR_GESTURE_CHECK_TIME
}
 The types of gesture detection defined in the fusion algorithm design. More...
 
enum  sensor_fall_type_t {
  SENSOR_FALL_NONE,
  SENSOR_FALL_FALL,
  SENSOR_FALL_FLOP,
  SENSOR_FALL_MAX
}
 The types of fall detection. More...
 
enum  sensor_report_mode_t {
  SENSOR_REPORT_MODE_ON_CHANGE = 1,
  SENSOR_REPORT_MODE_ONE_SHOT = 2,
  SENSOR_REPORT_MODE_CONTINUOUS = 4
}
 Methods to generate events with sensors. More...
 
enum  sensor_status_t {
  SENSOR_STATUS_NO_CONTACT = -1,
  SENSOR_STATUS_UNRELIABLE = 0,
  SENSOR_STATUS_ACCURACY_LOW = 1,
  SENSOR_STATUS_ACCURACY_MEDIUM = 2,
  SENSOR_STATUS_ACCURACY_HIGH = 3
}
 Measurement status of the sensor. More...
 

Enumeration Type Documentation

The types of activity recognition.

Enumerator
SENSOR_ACTIVITY_STILL 

Stationary.

SENSOR_ACTIVITY_STANDING 

Standing.

SENSOR_ACTIVITY_SITTING 

Sitting.

SENSOR_ACTIVITY_LAYING 

Laying.

SENSOR_ACTIVITY_ON_FOOT 

In motion.

SENSOR_ACTIVITY_WALKING 

Walking.

SENSOR_ACTIVITY_RUNNING 

Running.

SENSOR_ACTIVITY_CLIMBING 

Climbing.

SENSOR_ACTIVITY_ON_BICYCLE 

On bicycle.

SENSOR_ACTIVITY_IN_VEHICLE 

In vehicle.

SENSOR_ACTIVITY_TILTING 

Tilting, the vertical direction of the device changes by at least 35 degrees in the predefined period of, e.g., 2 seconds.

SENSOR_ACTIVITY_UNKNOWN 

Unknown activity type.

SENSOR_ACTIVITY_MAX 

The maximum number of activity types.

The types of fall detection.

Enumerator
SENSOR_FALL_NONE 

No fall is detected.

SENSOR_FALL_FALL 

Falling.

SENSOR_FALL_FLOP 

A fall type that can be customized for a special fusion algorithm.

For example, it could detect if a basketball player flopped during a game.

SENSOR_FALL_MAX 

The maximum number of fall types.

The types of gesture detection defined in the fusion algorithm design.

Enumerator
SENSOR_GESTURE_NONE 

No gesture is detected.

SENSOR_GESTURE_SHAKE 

Gesture of shaking the device up and down or left and right.

SENSOR_GESTURE_TAP 

Gesture of tapping the screen.

SENSOR_GESTURE_TWIST 

Gesture of twisting the device attached to the wrist.

SENSOR_GESTURE_FLIP 

Gesture of flipping the device.

SENSOR_GESTURE_SNAPSHOT 

Gesture of positioning the device to take a snapshot.

SENSOR_GESTURE_PICKUP 

Gesture of picking up the device.

SENSOR_GESTURE_CHECK_TIME 

Gesture of checking the time or a glance at the screen.

Methods to generate events with sensors.

Enumerator
SENSOR_REPORT_MODE_ON_CHANGE 

Sensor events are generated only if the measured values are changed.

SENSOR_REPORT_MODE_ONE_SHOT 

Sensor events are generated upon the detection.

SENSOR_REPORT_MODE_CONTINUOUS 

Sensor events are generated at a constant rate.

Measurement status of the sensor.

Enumerator
SENSOR_STATUS_NO_CONTACT 

This sensor cannot be trusted because the sensor had no contact with what it was measuring.

SENSOR_STATUS_UNRELIABLE 

The values returned by this sensor cannot be trusted.

SENSOR_STATUS_ACCURACY_LOW 

This sensor is reporting data with low accuracy.

SENSOR_STATUS_ACCURACY_MEDIUM 

This sensor is reporting data with an average level of accuracy.

SENSOR_STATUS_ACCURACY_HIGH 

This sensor is reporting data with maximum accuracy.