40 #ifdef X_NUCLEO_IKS01A1
42 #include "lib/sensors.h"
46 static int _active = 1;
52 if(!st_lib_bsp_imu_6axes_is_initialized()) {
53 if(IMU_6AXES_OK == st_lib_bsp_imu_6axes_init()) {
81 volatile st_lib_axes_raw_typedef axes_raw_data;
88 st_lib_bsp_imu_6axes_x_get_axes_raw(&axes_raw_data);
92 ret_val = axes_raw_data.AXIS_X;
95 ret_val = axes_raw_data.AXIS_Y;
98 ret_val = axes_raw_data.AXIS_Z;
108 configure(
int type,
int value)
111 case SENSORS_HW_INIT:
137 SENSORS_SENSOR(acceleration_sensor, ACCELERATION_SENSOR,
138 value, configure, status);
Header file for the STM32Cube HAL APIs.
Header file for the stm32nucleo-spirit1 Acceleration Sensor Driver.