Developer World
Spresense Arduino Library v3.3.0-b2e6327
AccelSensorClass Class Reference
Inheritance diagram for AccelSensorClass:
Collaboration diagram for AccelSensorClass:

Public Member Functions

bool begin (int id, int rate, int sample_watermark_num, int size_per_sample=sizeof(struct accel_float_s))
 Start sensing of Accelerometer.
 
int write_data (float x, float y, float z)
 1 Sample data write.
 
bool end (void)
 Stop sensing of Accelerometer.
 
- Public Member Functions inherited from SensorClient
bool begin (int id, uint32_t subscriptions=0, int rate=0, int sample_watermark_num=0, int size_per_sample=0, sensor_data_mh_callback_t cb=NULL)
 Register sensor ID.
 
bool begin (int id, uint32_t subscriptions, sensor_data_mh_callback_t cb)
 
bool end (void)
 Release sensor ID.
 
int publish (PoolId id, FAR void *data, uint32_t size_per_sample, uint32_t freq, uint32_t sample_watermark_num, uint32_t timestamp)
 Write sensing data from buffer. More...
 
int publish (MemMgrLite::MemHandle &mh, uint32_t size_per_sample, uint32_t freq, uint32_t sample_watermark_num, uint32_t timestamp)
 Write sensing data from MemHandle. More...
 
int publish (FAR void *data, uint32_t size_per_sample, uint32_t freq, uint32_t sample_watermark_num, uint32_t timestamp)
 
void * subscribe (sensor_command_data_mh_t &data)
 Read sensing data from buffer. More...
 

Additional Inherited Members

- Protected Attributes inherited from SensorClient
int m_id
 
int m_rate
 
int m_sample_watermark_num
 
int m_size_per_sample
 

The documentation for this class was generated from the following file: