Developer World
Spresense Arduino Library v3.3.0-b2e6327
Sensor Library API

API for using Sensor. More...

Classes

class  SensorClient
 
class  SensorClientClass
 Sensor Library Class Definitions. More...
 

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

API for using Sensor.

Macro Definition Documentation

◆ SENSORCLIENT_ECODE_OK

#define SENSORCLIENT_ECODE_OK   0x0

Sensor Library Error Code Definitions. < Executionresult OK. Failure to activate sensor.

◆ SENSORCLIENT_ECODE_ACTIVATE_MANAGER_ERROR

#define SENSORCLIENT_ECODE_ACTIVATE_MANAGER_ERROR   0x1

Failure to dectivate sensor.

◆ SENSORCLIENT_ECODE_DEACTIVATE_MANAGER_ERROR

#define SENSORCLIENT_ECODE_DEACTIVATE_MANAGER_ERROR   0x2

Invalid value for clientID.

◆ SENSORCLIENT_ECODE_SENSOR_CLIENT_ID_ERROR

#define SENSORCLIENT_ECODE_SENSOR_CLIENT_ID_ERROR   0x3

Memory allocation failure

Enumeration Type Documentation

◆ GeneralSensorClientID

Physical and logical sensor ID definitions.

◆ anonymous enum

anonymous enum

Physical and logical sensor ID definitions.