Developer World
Spresense Arduino Library v3.3.0-b2e6327
SensorClient.h File Reference

Sensor Library Class for Arduino on Spresense. More...

#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sdk/config.h>
#include <nuttx/init.h>
#include <nuttx/arch.h>
#include <asmp/mpshm.h>
#include <pins_arduino.h>
#include <sensing/sensor_api.h>
#include <sensing/sensor_id.h>
#include <sensing/sensor_ecode.h>
#include <MemoryUtil.h>
Include dependency graph for SensorClient.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SensorClient
 

Macros

#define SENSORCLIENT_ECODE_OK   0x0
 
#define SENSORCLIENT_ECODE_ACTIVATE_MANAGER_ERROR   0x1
 
#define SENSORCLIENT_ECODE_DEACTIVATE_MANAGER_ERROR   0x2
 
#define SENSORCLIENT_ECODE_SENSOR_CLIENT_ID_ERROR   0x3
 
#define SENSORCLIENT_ECODE_MEMORY_ALLOCATE_ERROR   0x4
 
#define SUBSCRIPTION(x)   (1 << (x))
 

Enumerations

enum  GeneralSensorClientID {
  SensorClientID00 , SensorClientID01 , SensorClientID02 , SensorClientID03 ,
  SensorClientID04 , SensorClientID05 , SensorClientID06 , SensorClientID07 ,
  SensorClientID08 , SensorClientID09 , SensorClientID10 , SensorClientID11 ,
  SensorClientID12 , SensorClientID13 , SensorClientID14 , SensorClientID15 ,
  SensorClientID16 , SensorClientID17 , SensorClientID18 , SensorClientID19 ,
  SensorClientID20 , SensorClientID21 , SensorClientID22 , SensorClientID23 ,
  NumOfGeneralSensorClientID
}
 
enum  {
  SEN_selfID = SensorClientID00 , SEN_accelID = SensorClientID01 , SEN_accel1ID = SensorClientID02 , SEN_magID = SensorClientID03 ,
  SEN_pressureID = SensorClientID04 , SEN_lightID = SensorClientID05 , SEN_pulseID = SensorClientID06 , SEN_tempID = SensorClientID07 ,
  SEN_gyroID = SensorClientID08 , SEN_gnssID = SensorClientID09 , SEN_stepcounterID = SensorClientID10 , SEN_tramID = SensorClientID11 ,
  SEN_gestureID = SensorClientID12 , SEN_compassID = SensorClientID13 , SEN_barometerID = SensorClientID14 , SEN_tramliteID = SensorClientID15 ,
  SEN_vadID = SensorClientID16 , SEN_wuwsrID = SensorClientID17 , SEN_adcID = SensorClientID18 , SEN_reserve19ID = SensorClientID19 ,
  SEN_app0ID = SensorClientID20 , SEN_app1ID = SensorClientID21 , SEN_app2ID = SensorClientID22 , SEN_app3ID = SensorClientID23 ,
  SEN_ID_MAX = NumOfGeneralSensorClientID
}
 

Detailed Description

Sensor Library Class for Arduino on Spresense.

Author
Sony Semiconductor Solutions Corporation

By using this library, you can use the follow features on SPRESENSE.

  • Sensing Steps