|
ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
|
This section groups all the functions concerning data generation. More...
Functions | |
| 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. | |
This section groups all the functions concerning data generation.
| int32_t lsm9ds1_block_data_update_get | ( | const stmdev_ctx_t * | ctx_mag, |
| stmdev_ctx_t * | ctx_imu, | ||
| uint8_t * | val | ||
| ) |
Blockdataupdate.
[get]
| ctx_mag | Read / write magnetometer interface definitions.(ptr) |
| ctx_imu | Read / write imu interface definitions.(ptr) |
| val | Get the values of bdu in reg CTRL_REG8.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 847 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg8_t::bdu, LSM9DS1_CTRL_REG5_M, LSM9DS1_CTRL_REG8, and lsm9ds1_read_reg().
| int32_t lsm9ds1_block_data_update_set | ( | const stmdev_ctx_t * | ctx_mag, |
| stmdev_ctx_t * | ctx_imu, | ||
| uint8_t | val | ||
| ) |
Blockdataupdate.
[set]
| ctx_mag | Read / write magnetometer interface definitions.(ptr) |
| ctx_imu | Read / write imu interface definitions.(ptr) |
| val | Change the values of bdu in reg CTRL_REG8. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 804 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg8_t::bdu, lsm9ds1_ctrl_reg5_m_t::bdu, lsm9ds1_ctrl_reg5_m_t::fast_read, LSM9DS1_CTRL_REG5_M, LSM9DS1_CTRL_REG8, lsm9ds1_read_reg(), and lsm9ds1_write_reg().
| int32_t lsm9ds1_gy_axis_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_gy_axis_t * | val | ||
| ) |
Enable gyroscope axis.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Gyroscope’s pitch axis (X) output enable.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 592 of file lsm9ds1_reg.c.
References LSM9DS1_CTRL_REG4, lsm9ds1_read_reg(), lsm9ds1_ctrl_reg4_t::xen_g, lsm9ds1_gy_axis_t::xen_g, lsm9ds1_ctrl_reg4_t::yen_g, lsm9ds1_gy_axis_t::yen_g, lsm9ds1_ctrl_reg4_t::zen_g, and lsm9ds1_gy_axis_t::zen_g.
| int32_t lsm9ds1_gy_axis_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_gy_axis_t | val | ||
| ) |
Enable gyroscope axis.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Gyroscope’s pitch axis (X) output enable. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 566 of file lsm9ds1_reg.c.
References LSM9DS1_CTRL_REG4, lsm9ds1_read_reg(), lsm9ds1_write_reg(), lsm9ds1_ctrl_reg4_t::xen_g, lsm9ds1_gy_axis_t::xen_g, lsm9ds1_ctrl_reg4_t::yen_g, lsm9ds1_gy_axis_t::yen_g, lsm9ds1_ctrl_reg4_t::zen_g, and lsm9ds1_gy_axis_t::zen_g.
| int32_t lsm9ds1_gy_flag_data_ready_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Gyroscope new data available.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Iet the values of "gda" in reg STATUS_REG.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 524 of file lsm9ds1_reg.c.
References lsm9ds1_status_reg_t::gda, lsm9ds1_read_reg(), and LSM9DS1_STATUS_REG.
| int32_t lsm9ds1_gy_full_scale_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_gy_fs_t * | val | ||
| ) |
Gyroscope full-scale selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of fs_g in reg CTRL_REG1_G.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 211 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg1_g_t::fs_g, LSM9DS1_2000dps, LSM9DS1_245dps, LSM9DS1_500dps, LSM9DS1_CTRL_REG1_G, and lsm9ds1_read_reg().
| int32_t lsm9ds1_gy_full_scale_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_gy_fs_t | val | ||
| ) |
Gyroscope full-scale selection.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of "fs_g" in reg LSM9DS1. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 184 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg1_g_t::fs_g, LSM9DS1_CTRL_REG1_G, lsm9ds1_read_reg(), and lsm9ds1_write_reg().
| int32_t lsm9ds1_gy_orient_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_gy_orient_t * | val | ||
| ) |
Configure gyro orientation.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Directional user orientation selection.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 479 of file lsm9ds1_reg.c.
References LSM9DS1_ORIENT_CFG_G, lsm9ds1_read_reg(), lsm9ds1_orient_cfg_g_t::orient, lsm9ds1_gy_orient_t::orient, lsm9ds1_orient_cfg_g_t::signx_g, lsm9ds1_gy_orient_t::signx_g, lsm9ds1_orient_cfg_g_t::signy_g, lsm9ds1_gy_orient_t::signy_g, lsm9ds1_orient_cfg_g_t::signz_g, and lsm9ds1_gy_orient_t::signz_g.
| int32_t lsm9ds1_gy_orient_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_gy_orient_t | val | ||
| ) |
Configure gyro orientation.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Directional user orientation selection. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 449 of file lsm9ds1_reg.c.
References LSM9DS1_ORIENT_CFG_G, lsm9ds1_read_reg(), lsm9ds1_write_reg(), lsm9ds1_orient_cfg_g_t::orient, lsm9ds1_gy_orient_t::orient, lsm9ds1_orient_cfg_g_t::signx_g, lsm9ds1_gy_orient_t::signx_g, lsm9ds1_orient_cfg_g_t::signy_g, lsm9ds1_gy_orient_t::signy_g, lsm9ds1_orient_cfg_g_t::signz_g, and lsm9ds1_gy_orient_t::signz_g.
| 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.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of odr_g in reg CTRL_REG1_G.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 307 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg3_g_t::lp_mode, LSM9DS1_CTRL_REG1_G, LSM9DS1_CTRL_REG3_G, LSM9DS1_CTRL_REG6_XL, LSM9DS1_GY_OFF_XL_10Hz, LSM9DS1_GY_OFF_XL_119Hz, LSM9DS1_GY_OFF_XL_238Hz, LSM9DS1_GY_OFF_XL_476Hz, LSM9DS1_GY_OFF_XL_50Hz, LSM9DS1_GY_OFF_XL_952Hz, LSM9DS1_IMU_119Hz, LSM9DS1_IMU_119Hz_LP, LSM9DS1_IMU_14Hz9, LSM9DS1_IMU_14Hz9_LP, LSM9DS1_IMU_238Hz, LSM9DS1_IMU_476Hz, LSM9DS1_IMU_59Hz5, LSM9DS1_IMU_59Hz5_LP, LSM9DS1_IMU_952Hz, LSM9DS1_IMU_OFF, lsm9ds1_read_reg(), LSM9DS1_XL_OFF_GY_119Hz, LSM9DS1_XL_OFF_GY_119Hz_LP, LSM9DS1_XL_OFF_GY_14Hz9, LSM9DS1_XL_OFF_GY_14Hz9_LP, LSM9DS1_XL_OFF_GY_238Hz, LSM9DS1_XL_OFF_GY_476Hz, LSM9DS1_XL_OFF_GY_59Hz5, LSM9DS1_XL_OFF_GY_59Hz5_LP, LSM9DS1_XL_OFF_GY_952Hz, lsm9ds1_ctrl_reg1_g_t::odr_g, and lsm9ds1_ctrl_reg6_xl_t::odr_xl.
| 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.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of "odr_g" in reg LSM9DS1. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 251 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg3_g_t::lp_mode, LSM9DS1_CTRL_REG1_G, LSM9DS1_CTRL_REG3_G, LSM9DS1_CTRL_REG6_XL, lsm9ds1_read_reg(), lsm9ds1_write_reg(), lsm9ds1_ctrl_reg1_g_t::odr_g, and lsm9ds1_ctrl_reg6_xl_t::odr_xl.
| int32_t lsm9ds1_mag_data_rate_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_mag_data_rate_t * | val | ||
| ) |
Magnetometer data rate selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of fast_odr in reg CTRL_REG1_M.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 985 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg1_m_t::_do, lsm9ds1_ctrl_reg1_m_t::fast_odr, LSM9DS1_CTRL_REG1_M, LSM9DS1_CTRL_REG3_M, LSM9DS1_MAG_HP_0Hz625, LSM9DS1_MAG_HP_10Hz, LSM9DS1_MAG_HP_1Hz25, LSM9DS1_MAG_HP_20Hz, LSM9DS1_MAG_HP_2Hz5, LSM9DS1_MAG_HP_300Hz, LSM9DS1_MAG_HP_40Hz, LSM9DS1_MAG_HP_5Hz, LSM9DS1_MAG_HP_80Hz, LSM9DS1_MAG_LP_0Hz625, LSM9DS1_MAG_LP_1000Hz, LSM9DS1_MAG_LP_10Hz, LSM9DS1_MAG_LP_1Hz25, LSM9DS1_MAG_LP_20Hz, LSM9DS1_MAG_LP_2Hz5, LSM9DS1_MAG_LP_40Hz, LSM9DS1_MAG_LP_5Hz, LSM9DS1_MAG_LP_80Hz, LSM9DS1_MAG_MP_0Hz625, LSM9DS1_MAG_MP_10Hz, LSM9DS1_MAG_MP_1Hz25, LSM9DS1_MAG_MP_20Hz, LSM9DS1_MAG_MP_2Hz5, LSM9DS1_MAG_MP_40Hz, LSM9DS1_MAG_MP_560Hz, LSM9DS1_MAG_MP_5Hz, LSM9DS1_MAG_MP_80Hz, LSM9DS1_MAG_ONE_SHOT, LSM9DS1_MAG_POWER_DOWN, LSM9DS1_MAG_UHP_0Hz625, LSM9DS1_MAG_UHP_10Hz, LSM9DS1_MAG_UHP_155Hz, LSM9DS1_MAG_UHP_1Hz25, LSM9DS1_MAG_UHP_20Hz, LSM9DS1_MAG_UHP_2Hz5, LSM9DS1_MAG_UHP_40Hz, LSM9DS1_MAG_UHP_5Hz, LSM9DS1_MAG_UHP_80Hz, lsm9ds1_read_reg(), lsm9ds1_ctrl_reg3_m_t::md, and lsm9ds1_ctrl_reg1_m_t::om.
| int32_t lsm9ds1_mag_data_rate_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_mag_data_rate_t | val | ||
| ) |
Magnetometer data rate selection.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of "fast_odr" in reg LSM9DS1. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 927 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg1_m_t::_do, lsm9ds1_ctrl_reg1_m_t::fast_odr, LSM9DS1_CTRL_REG1_M, LSM9DS1_CTRL_REG3_M, LSM9DS1_CTRL_REG4_M, lsm9ds1_read_reg(), lsm9ds1_write_reg(), lsm9ds1_ctrl_reg3_m_t::md, lsm9ds1_ctrl_reg1_m_t::om, lsm9ds1_ctrl_reg4_m_t::omz, PROPERTY_ENABLE, and lsm9ds1_ctrl_reg1_m_t::temp_comp.
| int32_t lsm9ds1_mag_flag_data_ready_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
New data available from magnetometer.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Iet the values of "zyxda" in reg STATUS_REG_M.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1242 of file lsm9ds1_reg.c.
References lsm9ds1_read_reg(), LSM9DS1_STATUS_REG_M, and lsm9ds1_status_reg_m_t::zyxda.
| int32_t lsm9ds1_mag_full_scale_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_mag_fs_t * | val | ||
| ) |
Magnetometer full scale selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of fs in reg CTRL_REG2_M.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1199 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg2_m_t::fs, LSM9DS1_12Ga, LSM9DS1_16Ga, LSM9DS1_4Ga, LSM9DS1_8Ga, LSM9DS1_CTRL_REG2_M, and lsm9ds1_read_reg().
| int32_t lsm9ds1_mag_full_scale_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_mag_fs_t | val | ||
| ) |
Magnetometer full Scale Selection.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of "fs" in reg LSM9DS1. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1172 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg2_m_t::fs, LSM9DS1_CTRL_REG2_M, lsm9ds1_read_reg(), and lsm9ds1_write_reg().
| 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).
[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 903 of file lsm9ds1_reg.c.
References LSM9DS1_OFFSET_X_REG_L_M, and lsm9ds1_read_reg().
| 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).
[set]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data to be write.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 877 of file lsm9ds1_reg.c.
References LSM9DS1_OFFSET_X_REG_L_M, and lsm9ds1_write_reg().
| int32_t lsm9ds1_temp_flag_data_ready_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Temperature new data available.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Iet the values of "tda" in reg STATUS_REG.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 545 of file lsm9ds1_reg.c.
References lsm9ds1_read_reg(), LSM9DS1_STATUS_REG, and lsm9ds1_status_reg_t::tda.
| int32_t lsm9ds1_xl_axis_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_xl_axis_t * | val | ||
| ) |
Enable accelerometer axis.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Accelerometer’s X-axis output enable.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 641 of file lsm9ds1_reg.c.
References LSM9DS1_CTRL_REG5_XL, lsm9ds1_read_reg(), lsm9ds1_ctrl_reg5_xl_t::xen_xl, lsm9ds1_xl_axis_t::xen_xl, lsm9ds1_ctrl_reg5_xl_t::yen_xl, lsm9ds1_xl_axis_t::yen_xl, lsm9ds1_ctrl_reg5_xl_t::zen_xl, and lsm9ds1_xl_axis_t::zen_xl.
| int32_t lsm9ds1_xl_axis_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_xl_axis_t | val | ||
| ) |
Enable accelerometer axis.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Accelerometer’s X-axis output enable. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 613 of file lsm9ds1_reg.c.
References LSM9DS1_CTRL_REG5_XL, lsm9ds1_read_reg(), lsm9ds1_write_reg(), lsm9ds1_ctrl_reg5_xl_t::xen_xl, lsm9ds1_xl_axis_t::xen_xl, lsm9ds1_ctrl_reg5_xl_t::yen_xl, lsm9ds1_xl_axis_t::yen_xl, lsm9ds1_ctrl_reg5_xl_t::zen_xl, and lsm9ds1_xl_axis_t::zen_xl.
| int32_t lsm9ds1_xl_decimation_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_dec_t * | val | ||
| ) |
Decimation of acceleration data on OUT REG and FIFO.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of dec in reg CTRL_REG5_XL.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 690 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg5_xl_t::dec, LSM9DS1_CTRL_REG5_XL, LSM9DS1_EVERY_2_SAMPLES, LSM9DS1_EVERY_4_SAMPLES, LSM9DS1_EVERY_8_SAMPLES, LSM9DS1_NO_DECIMATION, and lsm9ds1_read_reg().
| int32_t lsm9ds1_xl_decimation_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_dec_t | val | ||
| ) |
Decimation of acceleration data on OUT REG and FIFO.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of "dec" in reg LSM9DS1. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 663 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg5_xl_t::dec, LSM9DS1_CTRL_REG5_XL, lsm9ds1_read_reg(), and lsm9ds1_write_reg().
| int32_t lsm9ds1_xl_flag_data_ready_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Accelerometer new data available.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Iet the values of "xlda" in reg STATUS_REG.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 503 of file lsm9ds1_reg.c.
References lsm9ds1_read_reg(), LSM9DS1_STATUS_REG, and lsm9ds1_status_reg_t::xlda.
| int32_t lsm9ds1_xl_full_scale_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_xl_fs_t * | val | ||
| ) |
Accelerometer full-scale selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of fs_xl in reg CTRL_REG6_XL.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 760 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg6_xl_t::fs_xl, LSM9DS1_16g, LSM9DS1_2g, LSM9DS1_4g, LSM9DS1_8g, LSM9DS1_CTRL_REG6_XL, and lsm9ds1_read_reg().
| int32_t lsm9ds1_xl_full_scale_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_xl_fs_t | val | ||
| ) |
Accelerometer full-scale selection.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of "fs_xl" in reg LSM9DS1. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 733 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg6_xl_t::fs_xl, LSM9DS1_CTRL_REG6_XL, lsm9ds1_read_reg(), and lsm9ds1_write_reg().