artik_sensor_accelerometer Struct Reference
SENSOR ACCELEROMETER devices data structure. More...
#include <sensor/artik_sensor.h>
Data Fields | |
| artik_error(* | request )(artik_sensor_handle *handle, artik_sensor_config *config) |
| Request a ACCELEROMETER SENSOR instance. More... | |
| artik_error(* | release )(artik_sensor_handle handle) |
| Release a TEMPERATURE SYS SENSOR instance. More... | |
| artik_error(* | get_speed_x )(artik_sensor_handle handle, int *store) |
| get_speed_x permit to return the speed base on the axis X More... | |
| artik_error(* | get_speed_y )(artik_sensor_handle handle, int *store) |
| get_speed_y permit to return the speed base on the axis Y More... | |
| artik_error(* | get_speed_z )(artik_sensor_handle handle, int *store) |
| get_speed_z permit to return the speed base on the axis Z More... | |
Detailed Description
Structure which serve as an interface for requested SENSOR device
- Examples:
- sensor_test/artik_sensor_test.c.
Definition at line 116 of file artik_sensor.h.
Field Documentation
| artik_error(* artik_sensor_accelerometer::get_speed_x) (artik_sensor_handle handle, int *store) |
- Parameters
-
[in] handle handle tied to the requested ACCELEROMETER communication module instance to be released. This handle is returned by the 'get_accelerometer_sensor' function. [in] store permit to save the result of the function.
- Returns
- S_OK and store the value into the parameter on success, error code otherwise
- Examples:
- sensor_test/artik_sensor_test.c.
Definition at line 154 of file artik_sensor.h.
| artik_error(* artik_sensor_accelerometer::get_speed_y) (artik_sensor_handle handle, int *store) |
- Parameters
-
[in] handle handle tied to the requested ACCELEROMETER communication module instance to be released. This handle is returned by the 'get_accelerometer_sensor' function. [in] store permit to save the result of the function.
- Returns
- S_OK and store the value into the parameter on success, error code otherwise
- Examples:
- sensor_test/artik_sensor_test.c.
Definition at line 168 of file artik_sensor.h.
| artik_error(* artik_sensor_accelerometer::get_speed_z) (artik_sensor_handle handle, int *store) |
- Parameters
-
[in] handle handle tied to the requested ACCELEROMETER communication module instance to be released. This handle is returned by the 'get_accelerometer_sensor' function. [in] store permit to save the result of the function.
- Returns
- S_OK and store the value into the parameter on success, error code otherwise
- Examples:
- sensor_test/artik_sensor_test.c.
Definition at line 183 of file artik_sensor.h.
| artik_error(* artik_sensor_accelerometer::release) (artik_sensor_handle handle) |
- Parameters
-
[in] handle handle tied to the requested ACCELEROMETER instance to be released. This handle is returned by the 'request' function.
- Returns
- S_OK on success, error code otherwise
- Examples:
- sensor_test/artik_sensor_test.c.
Definition at line 139 of file artik_sensor.h.
| artik_error(* artik_sensor_accelerometer::request) (artik_sensor_handle *handle, artik_sensor_config *config) |
- Parameters
-
[in] handle handle tied to the requested ACCELEROMETER instance to be released. This handle is returned by the 'request' function. [in,out] config config is the configuration structure.
- Returns
- S_OK on success, error code otherwise
Definition at line 128 of file artik_sensor.h.
The documentation for this struct was generated from the following file:
- inc/sensor/artik_sensor.h
Last updated on: