Developer World
Spresense SDK Library v3.2.0-ebc0364
sensor_command.h File Reference
#include <stdint.h>
#include "sensing/logical_sensor/sensor_assertion.h"

Go to the source code of this file.

Classes

struct  SensorCmdHeader
 the header of sensor commands. More...
 

Enumerations

enum  SensorEventType {
  InvalidSensorEvent = 0xFF , InitEvent = 0 , ExecEvent , FlushEvent ,
  SensorEventTypeNum
}
 codes of command events. More...
 
enum  SensorProcessMode {
  InvalidSensorProcessMode = 0xFF , CommonMode = 0 , StepCounterMode , GestureProcMode ,
  CompassProcMode , TramProcMode , TramliteProcMode
}
 codes of command logical sensor modes. More...
 
enum  SensorType {
  InvalidSensorType = 0xFF , StepCounter = 0 , ArmGesture , Compass ,
  TransportationMode , TransportationModeLite
}
 codes of command logical sensor types. More...
 
enum  SensorExecResult { SensorOK , SensorError , SensorWarning , SensorResultData }
 results. More...
 

Functions

bool is_async_msg (uint32_t data)
 
uint8_t get_async_msgtype (uint32_t param)
 
uint8_t get_async_msgparam (uint32_t param)
 
uint32_t make_async_msg (uint8_t type, uint8_t param)