ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
Loading...
Searching...
No Matches
lsm9ds1_reg.c File Reference

LSM9DS1 driver file. More...

#include "lsm9ds1_reg.h"

Go to the source code of this file.

Functions

int32_t lsm9ds1_read_reg (const stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, uint16_t len)
 Read generic device register.
 
int32_t lsm9ds1_write_reg (const stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, uint16_t len)
 Write generic device register.
 
float_t lsm9ds1_from_fs2g_to_mg (int16_t lsb)
 
float_t lsm9ds1_from_fs4g_to_mg (int16_t lsb)
 
float_t lsm9ds1_from_fs8g_to_mg (int16_t lsb)
 
float_t lsm9ds1_from_fs16g_to_mg (int16_t lsb)
 
float_t lsm9ds1_from_fs245dps_to_mdps (int16_t lsb)
 
float_t lsm9ds1_from_fs500dps_to_mdps (int16_t lsb)
 
float_t lsm9ds1_from_fs2000dps_to_mdps (int16_t lsb)
 
float_t lsm9ds1_from_fs4gauss_to_mG (int16_t lsb)
 
float_t lsm9ds1_from_fs8gauss_to_mG (int16_t lsb)
 
float_t lsm9ds1_from_fs12gauss_to_mG (int16_t lsb)
 
float_t lsm9ds1_from_fs16gauss_to_mG (int16_t lsb)
 
float_t lsm9ds1_from_lsb_to_celsius (int16_t lsb)
 
int32_t lsm9ds1_gy_full_scale_set (const stmdev_ctx_t *ctx, lsm9ds1_gy_fs_t val)
 Gyroscope full-scale selection.
 
int32_t lsm9ds1_gy_full_scale_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_fs_t *val)
 Gyroscope full-scale selection.
 
int32_t lsm9ds1_imu_data_rate_set (const stmdev_ctx_t *ctx, lsm9ds1_imu_odr_t val)
 Data rate selection when both the accelerometer and gyroscope are activated.
 
int32_t lsm9ds1_imu_data_rate_get (const stmdev_ctx_t *ctx, lsm9ds1_imu_odr_t *val)
 Data rate selection when both the accelerometer and gyroscope are activated.
 
int32_t lsm9ds1_gy_orient_set (const stmdev_ctx_t *ctx, lsm9ds1_gy_orient_t val)
 Configure gyro orientation.
 
int32_t lsm9ds1_gy_orient_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_orient_t *val)
 Configure gyro orientation.
 
int32_t lsm9ds1_xl_flag_data_ready_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Accelerometer new data available.
 
int32_t lsm9ds1_gy_flag_data_ready_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Gyroscope new data available.
 
int32_t lsm9ds1_temp_flag_data_ready_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Temperature new data available.
 
int32_t lsm9ds1_gy_axis_set (const stmdev_ctx_t *ctx, lsm9ds1_gy_axis_t val)
 Enable gyroscope axis.
 
int32_t lsm9ds1_gy_axis_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_axis_t *val)
 Enable gyroscope axis.
 
int32_t lsm9ds1_xl_axis_set (const stmdev_ctx_t *ctx, lsm9ds1_xl_axis_t val)
 Enable accelerometer axis.
 
int32_t lsm9ds1_xl_axis_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_axis_t *val)
 Enable accelerometer axis.
 
int32_t lsm9ds1_xl_decimation_set (const stmdev_ctx_t *ctx, lsm9ds1_dec_t val)
 Decimation of acceleration data on OUT REG and FIFO.
 
int32_t lsm9ds1_xl_decimation_get (const stmdev_ctx_t *ctx, lsm9ds1_dec_t *val)
 Decimation of acceleration data on OUT REG and FIFO.
 
int32_t lsm9ds1_xl_full_scale_set (const stmdev_ctx_t *ctx, lsm9ds1_xl_fs_t val)
 Accelerometer full-scale selection.
 
int32_t lsm9ds1_xl_full_scale_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_fs_t *val)
 Accelerometer full-scale selection.
 
int32_t lsm9ds1_block_data_update_set (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, uint8_t val)
 Blockdataupdate.
 
int32_t lsm9ds1_block_data_update_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, uint8_t *val)
 Blockdataupdate.
 
int32_t lsm9ds1_mag_offset_set (const stmdev_ctx_t *ctx, int16_t *val)
 This register is a 16-bit register and represents the X offset used to compensate environmental effects (data is expressed as two’s complement).
 
int32_t lsm9ds1_mag_offset_get (const stmdev_ctx_t *ctx, int16_t *val)
 This register is a 16-bit register and represents the X offset used to compensate environmental effects (data is expressed as two’s complement).
 
int32_t lsm9ds1_mag_data_rate_set (const stmdev_ctx_t *ctx, lsm9ds1_mag_data_rate_t val)
 Magnetometer data rate selection.
 
int32_t lsm9ds1_mag_data_rate_get (const stmdev_ctx_t *ctx, lsm9ds1_mag_data_rate_t *val)
 Magnetometer data rate selection.
 
int32_t lsm9ds1_mag_full_scale_set (const stmdev_ctx_t *ctx, lsm9ds1_mag_fs_t val)
 Magnetometer full Scale Selection.
 
int32_t lsm9ds1_mag_full_scale_get (const stmdev_ctx_t *ctx, lsm9ds1_mag_fs_t *val)
 Magnetometer full scale selection.
 
int32_t lsm9ds1_mag_flag_data_ready_get (const stmdev_ctx_t *ctx, uint8_t *val)
 New data available from magnetometer.
 
int32_t lsm9ds1_temperature_raw_get (const stmdev_ctx_t *ctx, int16_t *val)
 Temperature data output register (r).
 
int32_t lsm9ds1_angular_rate_raw_get (const stmdev_ctx_t *ctx, int16_t *val)
 Angular rate sensor.
 
int32_t lsm9ds1_acceleration_raw_get (const stmdev_ctx_t *ctx, int16_t *val)
 Linear acceleration output register.
 
int32_t lsm9ds1_magnetic_raw_get (const stmdev_ctx_t *ctx, int16_t *val)
 Magnetic sensor.
 
int32_t lsm9ds1_magnetic_overflow_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Internal measurement range overflow on magnetic value.
 
int32_t lsm9ds1_dev_id_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_id_t *buff)
 DeviceWhoamI.
 
int32_t lsm9ds1_dev_status_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_status_t *val)
 Device status register.
 
int32_t lsm9ds1_dev_reset_set (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, uint8_t val)
 Software reset.
 
int32_t lsm9ds1_dev_reset_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, uint8_t *val)
 Software reset.
 
int32_t lsm9ds1_dev_data_format_set (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_ble_t val)
 Big/Little Endian data selection.
 
int32_t lsm9ds1_dev_data_format_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_ble_t *val)
 Big/Little Endian data selection.
 
int32_t lsm9ds1_dev_boot_set (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, uint8_t val)
 Reboot memory content.
 
int32_t lsm9ds1_dev_boot_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, uint8_t *val)
 Reboot memory content.
 
int32_t lsm9ds1_gy_filter_reference_set (const stmdev_ctx_t *ctx, uint8_t *buff)
 Reference value for gyroscope’s digital high-pass filter.
 
int32_t lsm9ds1_gy_filter_reference_get (const stmdev_ctx_t *ctx, uint8_t *buff)
 Reference value for gyroscope’s digital high-pass filter.
 
int32_t lsm9ds1_gy_filter_lp_bandwidth_set (const stmdev_ctx_t *ctx, lsm9ds1_gy_lp_bw_t val)
 Gyroscope lowpass filter bandwidth selection.
 
int32_t lsm9ds1_gy_filter_lp_bandwidth_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_lp_bw_t *val)
 Gyroscope lowpass filter bandwidth selection.
 
int32_t lsm9ds1_gy_filter_out_path_set (const stmdev_ctx_t *ctx, lsm9ds1_gy_out_path_t val)
 Gyro output filter path configuration.
 
int32_t lsm9ds1_gy_filter_out_path_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_out_path_t *val)
 Gyro output filter path configuration.
 
int32_t lsm9ds1_gy_filter_int_path_set (const stmdev_ctx_t *ctx, lsm9ds1_gy_int_path_t val)
 Gyro interrupt filter path configuration.
 
int32_t lsm9ds1_gy_filter_int_path_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_int_path_t *val)
 Gyro interrupt filter path configuration.
 
int32_t lsm9ds1_gy_filter_hp_bandwidth_set (const stmdev_ctx_t *ctx, lsm9ds1_gy_hp_bw_t val)
 Gyroscope high-pass filter bandwidth selection.
 
int32_t lsm9ds1_gy_filter_hp_bandwidth_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_hp_bw_t *val)
 Gyroscope high-pass filter bandwidth selection.
 
int32_t lsm9ds1_xl_filter_aalias_bandwidth_set (const stmdev_ctx_t *ctx, lsm9ds1_xl_aa_bw_t val)
 Configure accelerometer anti aliasing filter.
 
int32_t lsm9ds1_xl_filter_aalias_bandwidth_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_aa_bw_t *val)
 Configure accelerometer anti aliasing filter.
 
int32_t lsm9ds1_xl_filter_int_path_set (const stmdev_ctx_t *ctx, lsm9ds1_xl_hp_path_t val)
 Configure HP accelerometer filter.
 
int32_t lsm9ds1_xl_filter_int_path_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_hp_path_t *val)
 
int32_t lsm9ds1_xl_filter_out_path_set (const stmdev_ctx_t *ctx, lsm9ds1_xl_out_path_t val)
 Accelerometer output filter path configuration.
 
int32_t lsm9ds1_xl_filter_out_path_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_out_path_t *val)
 Accelerometer output filter path configuration.
 
int32_t lsm9ds1_xl_filter_lp_bandwidth_set (const stmdev_ctx_t *ctx, lsm9ds1_xl_lp_bw_t val)
 Accelerometer digital filter low pass cutoff frequency selection.
 
int32_t lsm9ds1_xl_filter_lp_bandwidth_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_lp_bw_t *val)
 Accelerometer digital filter low pass cutoff frequency selection.
 
int32_t lsm9ds1_xl_filter_hp_bandwidth_set (const stmdev_ctx_t *ctx, lsm9ds1_xl_hp_bw_t val)
 Accelerometer digital filter high pass cutoff frequency selection.
 
int32_t lsm9ds1_xl_filter_hp_bandwidth_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_hp_bw_t *val)
 Accelerometer digital filter high pass cutoff frequency selection.
 
int32_t lsm9ds1_filter_settling_mask_set (const stmdev_ctx_t *ctx, uint8_t val)
 Mask DRDY on pin (both XL & Gyro) until filter settling ends.
 
int32_t lsm9ds1_filter_settling_mask_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Mask DRDY on pin (both XL & Gyro) until filter settling ends.
 
int32_t lsm9ds1_auto_increment_set (const stmdev_ctx_t *ctx, uint8_t val)
 Register address automatically incremented during a multiple byte access with a serial interface.
 
int32_t lsm9ds1_auto_increment_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Register address automatically incremented during a multiple byte access with a serial interface.
 
int32_t lsm9ds1_spi_mode_set (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_sim_t val)
 SPI Serial Interface Mode selection.
 
int32_t lsm9ds1_spi_mode_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_sim_t *val)
 SPI Serial Interface Mode selection.
 
int32_t lsm9ds1_i2c_interface_set (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_i2c_dis_t val)
 Enable / Disable I2C interface.
 
int32_t lsm9ds1_i2c_interface_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_i2c_dis_t *val)
 Enable / Disable I2C interface.
 
int32_t lsm9ds1_pin_logic_set (const stmdev_ctx_t *ctx, lsm9ds1_pin_logic_t val)
 AND/OR combination of accelerometer’s interrupt events.
 
int32_t lsm9ds1_pin_logic_get (const stmdev_ctx_t *ctx, lsm9ds1_pin_logic_t *val)
 AND/OR combination of accelerometer’s interrupt events.
 
int32_t lsm9ds1_pin_int1_route_set (const stmdev_ctx_t *ctx, lsm9ds1_pin_int1_route_t val)
 Route a signal on INT 1_A/G pin.
 
int32_t lsm9ds1_pin_int1_route_get (const stmdev_ctx_t *ctx, lsm9ds1_pin_int1_route_t *val)
 Route a signal on INT 1_A/G pin.
 
int32_t lsm9ds1_pin_int2_route_set (const stmdev_ctx_t *ctx, lsm9ds1_pin_int2_route_t val)
 Route a signal on INT 2_A/G pin.
 
int32_t lsm9ds1_pin_int2_route_get (const stmdev_ctx_t *ctx, lsm9ds1_pin_int2_route_t *val)
 Route a signal on INT 2_A/G pin.
 
int32_t lsm9ds1_pin_notification_set (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_lir_t val)
 Latched/pulsed interrupt.
 
int32_t lsm9ds1_pin_notification_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_lir_t *val)
 Configure the interrupt notification mode.
 
int32_t lsm9ds1_pin_mode_set (const stmdev_ctx_t *ctx, lsm9ds1_pp_od_t val)
 Push-pull/open drain selection on interrupt pads.
 
int32_t lsm9ds1_pin_mode_get (const stmdev_ctx_t *ctx, lsm9ds1_pp_od_t *val)
 Push-pull/open drain selection on interrupt pads.
 
int32_t lsm9ds1_pin_int_m_route_set (const stmdev_ctx_t *ctx, lsm9ds1_pin_m_route_t val)
 Route a signal on INT_M pin.
 
int32_t lsm9ds1_pin_int_m_route_get (const stmdev_ctx_t *ctx, lsm9ds1_pin_m_route_t *val)
 Route a signal on INT_M pin.
 
int32_t lsm9ds1_pin_polarity_set (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_polarity_t val)
 Configure the interrupt pin polarity.
 
int32_t lsm9ds1_pin_polarity_get (const stmdev_ctx_t *ctx_mag, stmdev_ctx_t *ctx_imu, lsm9ds1_polarity_t *val)
 Configure the interrupt pin polarity.
 
int32_t lsm9ds1_xl_trshld_axis_set (const stmdev_ctx_t *ctx, lsm9ds1_xl_trshld_en_t val)
 Enable interrupt generation on threshold event.
 
int32_t lsm9ds1_xl_trshld_axis_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_trshld_en_t *val)
 Enable interrupt generation on threshold event.
 
int32_t lsm9ds1_xl_trshld_set (const stmdev_ctx_t *ctx, uint8_t *buff)
 Axis interrupt threshold.
 
int32_t lsm9ds1_xl_trshld_get (const stmdev_ctx_t *ctx, uint8_t *buff)
 Axis interrupt threshold.
 
int32_t lsm9ds1_xl_trshld_min_sample_set (const stmdev_ctx_t *ctx, uint8_t val)
 Enter/exit interrupt duration value.
 
int32_t lsm9ds1_xl_trshld_min_sample_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Enter/exit interrupt duration value.
 
int32_t lsm9ds1_gy_trshld_src_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_trshld_src_t *val)
 Angular rate sensor interrupt on threshold source.
 
int32_t lsm9ds1_xl_trshld_src_get (const stmdev_ctx_t *ctx, lsm9ds1_xl_trshld_src_t *val)
 Accelerometer interrupt on threshold source.
 
int32_t lsm9ds1_gy_trshld_axis_set (const stmdev_ctx_t *ctx, lsm9ds1_gy_trshld_en_t val)
 Enable interrupt generation on threshold event.
 
int32_t lsm9ds1_gy_trshld_axis_get (const stmdev_ctx_t *ctx, lsm9ds1_gy_trshld_en_t *val)
 Enable interrupt generation on threshold event.
 
int32_t lsm9ds1_gy_trshld_mode_set (const stmdev_ctx_t *ctx, lsm9ds1_dcrm_g_t val)
 Decrement or reset counter mode selection.
 
int32_t lsm9ds1_gy_trshld_mode_get (const stmdev_ctx_t *ctx, lsm9ds1_dcrm_g_t *val)
 Decrement or reset counter mode selection.
 
int32_t lsm9ds1_gy_trshld_x_set (const stmdev_ctx_t *ctx, uint16_t val)
 Angular rate sensor interrupt threshold on pitch (X) axis.
 
int32_t lsm9ds1_gy_trshld_x_get (const stmdev_ctx_t *ctx, uint16_t *val)
 Angular rate sensor interrupt threshold on pitch (X) axis.
 
int32_t lsm9ds1_gy_trshld_y_set (const stmdev_ctx_t *ctx, uint16_t val)
 Angular rate sensor interrupt threshold on roll (Y) axis.
 
int32_t lsm9ds1_gy_trshld_y_get (const stmdev_ctx_t *ctx, uint16_t *val)
 Angular rate sensor interrupt threshold on roll (Y) axis.
 
int32_t lsm9ds1_gy_trshld_z_set (const stmdev_ctx_t *ctx, uint16_t val)
 Angular rate sensor interrupt thresholds on yaw (Z) axis.
 
int32_t lsm9ds1_gy_trshld_z_get (const stmdev_ctx_t *ctx, uint16_t *val)
 Angular rate sensor interrupt thresholds on yaw (Z) axis.
 
int32_t lsm9ds1_gy_trshld_min_sample_set (const stmdev_ctx_t *ctx, uint8_t val)
 Enter/exit interrupt duration value.
 
int32_t lsm9ds1_gy_trshld_min_sample_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Enter/exit interrupt duration value.
 
int32_t lsm9ds1_mag_trshld_axis_set (const stmdev_ctx_t *ctx, lsm9ds1_mag_trshld_axis_t val)
 Enable interrupt generation on threshold event.
 
int32_t lsm9ds1_mag_trshld_axis_get (const stmdev_ctx_t *ctx, lsm9ds1_mag_trshld_axis_t *val)
 Enable interrupt generation on threshold event.
 
int32_t lsm9ds1_mag_trshld_src_get (const stmdev_ctx_t *ctx, lsm9ds1_mag_trshld_src_t *val)
 Magnetometer interrupt on threshold source.
 
int32_t lsm9ds1_mag_trshld_get (const stmdev_ctx_t *ctx, uint8_t *val)
 The value is expressed in 15-bit unsigned.
 
int32_t lsm9ds1_act_threshold_set (const stmdev_ctx_t *ctx, uint8_t val)
 Inactivity threshold.
 
int32_t lsm9ds1_act_threshold_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Inactivity threshold.
 
int32_t lsm9ds1_act_mode_set (const stmdev_ctx_t *ctx, lsm9ds1_act_mode_t val)
 Gyroscope operating mode during inactivity.
 
int32_t lsm9ds1_act_mode_get (const stmdev_ctx_t *ctx, lsm9ds1_act_mode_t *val)
 Gyroscope operating mode during inactivity.
 
int32_t lsm9ds1_act_duration_set (const stmdev_ctx_t *ctx, uint8_t *buff)
 Inactivity duration in number of sample.
 
int32_t lsm9ds1_act_duration_get (const stmdev_ctx_t *ctx, uint8_t *buff)
 Inactivity duration in number of sample.
 
int32_t lsm9ds1_act_src_get (const stmdev_ctx_t *ctx, lsm9ds1_inact_t *val)
 Inactivity interrupt output signal.
 
int32_t lsm9ds1_6d_mode_set (const stmdev_ctx_t *ctx, lsm9ds1_6d_mode_t val)
 6D feature working mode.
 
int32_t lsm9ds1_6d_mode_get (const stmdev_ctx_t *ctx, lsm9ds1_6d_mode_t *val)
 6D feature working mode.
 
int32_t lsm9ds1_6d_threshold_set (const stmdev_ctx_t *ctx, uint8_t *buff)
 6D functionality axis interrupt threshold.
 
int32_t lsm9ds1_6d_threshold_get (const stmdev_ctx_t *ctx, uint8_t *buff)
 6D functionality axis interrupt threshold.
 
int32_t lsm9ds1_6d_src_get (const stmdev_ctx_t *ctx, lsm9ds1_6d_src_t *val)
 
int32_t lsm9ds1_fifo_stop_on_wtm_set (const stmdev_ctx_t *ctx, uint8_t val)
 Sensing chain FIFO stop values memorization at threshold level.
 
int32_t lsm9ds1_fifo_stop_on_wtm_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Sensing chain FIFO stop values memorization at threshold level.
 
int32_t lsm9ds1_fifo_mode_set (const stmdev_ctx_t *ctx, lsm9ds1_fifo_md_t val)
 FIFO mode selection.
 
int32_t lsm9ds1_fifo_mode_get (const stmdev_ctx_t *ctx, lsm9ds1_fifo_md_t *val)
 FIFO mode selection.
 
int32_t lsm9ds1_fifo_temp_batch_set (const stmdev_ctx_t *ctx, uint8_t val)
 Batching of temperature data.
 
int32_t lsm9ds1_fifo_temp_batch_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Batching of temperature data.
 
int32_t lsm9ds1_fifo_watermark_set (const stmdev_ctx_t *ctx, uint8_t val)
 FIFO watermark level selection.
 
int32_t lsm9ds1_fifo_watermark_get (const stmdev_ctx_t *ctx, uint8_t *val)
 FIFO watermark level selection.
 
int32_t lsm9ds1_fifo_full_flag_get (const stmdev_ctx_t *ctx, uint8_t *val)
 FIFOfullstatus.
 
int32_t lsm9ds1_fifo_data_level_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Number of unread words (16-bit axes) stored in FIFO.
 
int32_t lsm9ds1_fifo_ovr_flag_get (const stmdev_ctx_t *ctx, uint8_t *val)
 FIFO overrun status.
 
int32_t lsm9ds1_fifo_wtm_flag_get (const stmdev_ctx_t *ctx, uint8_t *val)
 FIFO watermark status.
 
int32_t lsm9ds1_xl_self_test_set (const stmdev_ctx_t *ctx, uint8_t val)
 Enable/disable self-test mode for accelerometer.
 
int32_t lsm9ds1_xl_self_test_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Enable/disable self-test mode for accelerometer.
 
int32_t lsm9ds1_gy_self_test_set (const stmdev_ctx_t *ctx, uint8_t val)
 Enable/disable self-test mode for gyroscope.
 
int32_t lsm9ds1_gy_self_test_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Enable/disable self-test mode for gyroscope.
 
int32_t lsm9ds1_mag_self_test_set (const stmdev_ctx_t *ctx, uint8_t val)
 Enable/disable self-test mode for magnatic sensor.
 
int32_t lsm9ds1_mag_self_test_get (const stmdev_ctx_t *ctx, uint8_t *val)
 Enable/disable self-test mode for magnatic sensor.
 

Detailed Description

LSM9DS1 driver file.

Author
Sensors Software Solution Team
Attention

© Copyright (c) 2021 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file lsm9ds1_reg.c.