39 #include "lsm9ds1_debug.h" 40 #include "lsm9ds1_config.h" 42 #define _BUILD_VERSION BUILD_VERSION 49 lsm9ds1_temperature_t temperature;
50 accelerometer_raw_data_t accelerometer;
51 mag_raw_data_t magnetometer;
52 gyro_raw_data_t gyroscope;
88 lsm9ds1_settings_t settings;
89 lsm9ds1_xfer_bus_t xfer_bus;
92 lsm9ds1_sub_devices_t sub_device;
Stores the converted data for each sub device.
Definition: lsm9ds1.h:76
enum lsm9ds1_status lsm9ds1_status_t
Contains the possible error codes returned by the functions.
lsm9ds1_status_t get_temp(lsm9ds1_temperature_t *temperature)
Read the temperature of the LSM9DS1.
struct lsm9ds1_device_t lsm9ds1_device_t
Data and configurations for the lsm9ds1 device.
struct lsm9ds1_converted_data_t lsm9ds1_converted_data_t
Stores the converted data for each sub device.
Stores the raw data for each sub device.
Definition: lsm9ds1.h:47
lsm9ds1_status_t get_accel(accelerometer_converted_data_t *data)
Read the accelerometer of the LSM9DS1.
lsm9ds1_status_t lsm9ds1_close()
Close the LSM9DS1.
Data and configurations for the lsm9ds1 device.
Definition: lsm9ds1.h:86
lsm9ds1_status_t get_gyro(gyro_converted_data_t *data)
Read the gyroscope from the LSM9DS1.
lsm9ds1_status_t get_mag(mag_converted_data_t *data)
Read the magnetometer of the LSM9DS1.
lsm9ds1_status_t lsm9ds1_init()
Initialize the LSM9DS1.
struct lsm9ds1_data_t lsm9ds1_data_t
Stores the raw data for each sub device.