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
Activity/Inactivity_detection

This section groups all the functions concerning activity/inactivity detection. More...

Functions

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)
 

Detailed Description

This section groups all the functions concerning activity/inactivity detection.

This section groups all the functions concerning six position detection (6D).

Function Documentation

◆ lsm9ds1_6d_mode_get()

int32_t lsm9ds1_6d_mode_get ( const stmdev_ctx_t ctx,
lsm9ds1_6d_mode_t val 
)

6D feature working mode.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of 6d in reg INT_GEN_CFG_XL.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4188 of file lsm9ds1_reg.c.

References lsm9ds1_ctrl_reg4_t::_4d_xl1, lsm9ds1_int_gen_cfg_xl_t::aoi_xl, LSM9DS1_4D_MOVE_RECO, LSM9DS1_4D_POS_RECO, LSM9DS1_6D_MOVE_RECO, LSM9DS1_6D_POS_RECO, LSM9DS1_CTRL_REG4, LSM9DS1_INT_GEN_CFG_XL, LSM9DS1_POS_MOVE_RECO_DISABLE, and lsm9ds1_read_reg().

◆ lsm9ds1_6d_mode_set()

int32_t lsm9ds1_6d_mode_set ( const stmdev_ctx_t ctx,
lsm9ds1_6d_mode_t  val 
)

6D feature working mode.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of "6d" in reg LSM9DS1.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4147 of file lsm9ds1_reg.c.

References lsm9ds1_ctrl_reg4_t::_4d_xl1, lsm9ds1_int_gen_cfg_xl_t::_6d, lsm9ds1_int_gen_cfg_xl_t::aoi_xl, LSM9DS1_CTRL_REG4, LSM9DS1_INT_GEN_CFG_XL, lsm9ds1_read_reg(), and lsm9ds1_write_reg().

◆ lsm9ds1_6d_src_get()

◆ lsm9ds1_6d_threshold_get()

int32_t lsm9ds1_6d_threshold_get ( const stmdev_ctx_t ctx,
uint8_t *  buff 
)

6D functionality axis interrupt threshold.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that stores data read.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4259 of file lsm9ds1_reg.c.

References LSM9DS1_INT_GEN_THS_X_XL, and lsm9ds1_read_reg().

◆ lsm9ds1_6d_threshold_set()

int32_t lsm9ds1_6d_threshold_set ( const stmdev_ctx_t ctx,
uint8_t *  buff 
)

6D functionality axis interrupt threshold.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that stores data to be write.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4242 of file lsm9ds1_reg.c.

References LSM9DS1_INT_GEN_THS_X_XL, and lsm9ds1_write_reg().

◆ lsm9ds1_act_duration_get()

int32_t lsm9ds1_act_duration_get ( const stmdev_ctx_t ctx,
uint8_t *  buff 
)

Inactivity duration in number of sample.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that stores data read.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4083 of file lsm9ds1_reg.c.

References LSM9DS1_ACT_DUR, and lsm9ds1_read_reg().

◆ lsm9ds1_act_duration_set()

int32_t lsm9ds1_act_duration_set ( const stmdev_ctx_t ctx,
uint8_t *  buff 
)

Inactivity duration in number of sample.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that stores data to be write.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4066 of file lsm9ds1_reg.c.

References LSM9DS1_ACT_DUR, and lsm9ds1_write_reg().

◆ lsm9ds1_act_mode_get()

int32_t lsm9ds1_act_mode_get ( const stmdev_ctx_t ctx,
lsm9ds1_act_mode_t val 
)

Gyroscope operating mode during inactivity.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of sleep_on_inact_en in reg ACT_THS.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4026 of file lsm9ds1_reg.c.

References LSM9DS1_ACT_THS, LSM9DS1_CTRL_REG9, LSM9DS1_GYRO_POWER_DOWN, LSM9DS1_GYRO_SLEEP, lsm9ds1_read_reg(), lsm9ds1_ctrl_reg9_t::sleep_g, and lsm9ds1_act_ths_t::sleep_on_inact_en.

◆ lsm9ds1_act_mode_set()

int32_t lsm9ds1_act_mode_set ( const stmdev_ctx_t ctx,
lsm9ds1_act_mode_t  val 
)

Gyroscope operating mode during inactivity.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of "sleep_on_inact_en" in reg LSM9DS1.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3989 of file lsm9ds1_reg.c.

References LSM9DS1_ACT_THS, LSM9DS1_CTRL_REG9, lsm9ds1_read_reg(), lsm9ds1_write_reg(), lsm9ds1_ctrl_reg9_t::sleep_g, and lsm9ds1_act_ths_t::sleep_on_inact_en.

◆ lsm9ds1_act_src_get()

int32_t lsm9ds1_act_src_get ( const stmdev_ctx_t ctx,
lsm9ds1_inact_t val 
)

Inactivity interrupt output signal.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valReturn an option of "lsm9ds1_inact_t".(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4100 of file lsm9ds1_reg.c.

References lsm9ds1_status_reg_t::inact, LSM9DS1_ACTIVITY, LSM9DS1_INACTIVITY, lsm9ds1_read_reg(), and LSM9DS1_STATUS_REG.

◆ lsm9ds1_act_threshold_get()

int32_t lsm9ds1_act_threshold_get ( const stmdev_ctx_t ctx,
uint8_t *  val 
)

Inactivity threshold.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of act_ths in reg ACT_THS.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3970 of file lsm9ds1_reg.c.

References lsm9ds1_act_ths_t::act_ths, LSM9DS1_ACT_THS, and lsm9ds1_read_reg().

◆ lsm9ds1_act_threshold_set()

int32_t lsm9ds1_act_threshold_set ( const stmdev_ctx_t ctx,
uint8_t  val 
)

Inactivity threshold.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of act_ths in reg ACT_THS.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3946 of file lsm9ds1_reg.c.

References lsm9ds1_act_ths_t::act_ths, LSM9DS1_ACT_THS, lsm9ds1_read_reg(), and lsm9ds1_write_reg().