PebbleOS
Loading...
Searching...
No Matches
Data Structures | Enumerations
accel_manager_types.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <pbl/kernel/compiler.h>

Data Structures

struct  AccelRawData
 A single accelerometer sample for all three axes. More...
 
struct  AccelData
 A single accelerometer sample for all three axes including timestamp and vibration rumble status. More...
 

Enumerations

enum  AccelSamplingRate { ACCEL_SAMPLING_10HZ = 10 , ACCEL_SAMPLING_25HZ = 25 , ACCEL_SAMPLING_50HZ = 50 , ACCEL_SAMPLING_100HZ = 100 }
 Valid accelerometer sampling rates, in Hz. More...
 

Data Structure Documentation

◆ AccelRawData

struct AccelRawData

A single accelerometer sample for all three axes.

Data Fields
int16_t x acceleration along the x axis
int16_t y acceleration along the y axis
int16_t z acceleration along the z axis

◆ AccelData

struct AccelData

A single accelerometer sample for all three axes including timestamp and vibration rumble status.

Data Fields
bool did_vibrate true if the watch vibrated when this sample was collected
uint64_t timestamp timestamp, in milliseconds
int16_t x acceleration along the x axis
int16_t y acceleration along the y axis
int16_t z acceleration along the z axis

Enumeration Type Documentation

◆ AccelSamplingRate

Valid accelerometer sampling rates, in Hz.

Enumerator
ACCEL_SAMPLING_10HZ 

10 HZ sampling rate

ACCEL_SAMPLING_25HZ 

25 HZ sampling rate [Default]

ACCEL_SAMPLING_50HZ 

50 HZ sampling rate

ACCEL_SAMPLING_100HZ 

100 HZ sampling rate