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_Interrupt_pins

This section groups all the functions that manage interrupt pins. More...

Functions

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.
 

Detailed Description

This section groups all the functions that manage interrupt pins.

Function Documentation

◆ lsm9ds1_pin_int1_route_get()

◆ lsm9ds1_pin_int1_route_set()

◆ lsm9ds1_pin_int2_route_get()

◆ lsm9ds1_pin_int2_route_set()

◆ lsm9ds1_pin_int_m_route_get()

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.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valInterrupt enable on the INT_M pin.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3110 of file lsm9ds1_reg.c.

References lsm9ds1_int_cfg_m_t::ien, lsm9ds1_pin_m_route_t::ien, LSM9DS1_INT_CFG_M, and lsm9ds1_read_reg().

◆ lsm9ds1_pin_int_m_route_set()

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.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valInterrupt enable on the INT_M pin.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3085 of file lsm9ds1_reg.c.

References lsm9ds1_int_cfg_m_t::ien, lsm9ds1_pin_m_route_t::ien, LSM9DS1_INT_CFG_M, lsm9ds1_read_reg(), and lsm9ds1_write_reg().

◆ lsm9ds1_pin_logic_get()

int32_t lsm9ds1_pin_logic_get ( const stmdev_ctx_t ctx,
lsm9ds1_pin_logic_t val 
)

AND/OR combination of accelerometer’s interrupt events.

[get]

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

Definition at line 2763 of file lsm9ds1_reg.c.

References lsm9ds1_int_gen_cfg_g_t::aoi_g, lsm9ds1_int_gen_cfg_xl_t::aoi_xl, LSM9DS1_INT_GEN_CFG_G, LSM9DS1_INT_GEN_CFG_XL, LSM9DS1_LOGIC_AND, LSM9DS1_LOGIC_OR, and lsm9ds1_read_reg().

◆ lsm9ds1_pin_logic_set()

int32_t lsm9ds1_pin_logic_set ( const stmdev_ctx_t ctx,
lsm9ds1_pin_logic_t  val 
)

AND/OR combination of accelerometer’s interrupt events.

[set]

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

Definition at line 2722 of file lsm9ds1_reg.c.

References lsm9ds1_int_gen_cfg_g_t::aoi_g, lsm9ds1_int_gen_cfg_xl_t::aoi_xl, LSM9DS1_INT_GEN_CFG_G, LSM9DS1_INT_GEN_CFG_XL, lsm9ds1_read_reg(), and lsm9ds1_write_reg().

◆ lsm9ds1_pin_mode_get()

int32_t lsm9ds1_pin_mode_get ( const stmdev_ctx_t ctx,
lsm9ds1_pp_od_t val 
)

Push-pull/open drain selection on interrupt pads.

[get]

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

Definition at line 3052 of file lsm9ds1_reg.c.

References LSM9DS1_CTRL_REG8, LSM9DS1_OPEN_DRAIN, LSM9DS1_PUSH_PULL, lsm9ds1_read_reg(), and lsm9ds1_ctrl_reg8_t::pp_od.

◆ lsm9ds1_pin_mode_set()

int32_t lsm9ds1_pin_mode_set ( const stmdev_ctx_t ctx,
lsm9ds1_pp_od_t  val 
)

Push-pull/open drain selection on interrupt pads.

[set]

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

Definition at line 3028 of file lsm9ds1_reg.c.

References LSM9DS1_CTRL_REG8, lsm9ds1_read_reg(), lsm9ds1_write_reg(), and lsm9ds1_ctrl_reg8_t::pp_od.

◆ lsm9ds1_pin_notification_get()

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.

[get]

Parameters
ctx_magRead / write magnetometer interface definitions.(ptr)
ctx_imuRead / write imu interface definitions.(ptr)
valGet the values of iel in reg INT_CFG_M.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 2979 of file lsm9ds1_reg.c.

References lsm9ds1_int_cfg_m_t::iel, lsm9ds1_int_gen_cfg_g_t::lir_g, lsm9ds1_ctrl_reg4_t::lir_xl1, LSM9DS1_CTRL_REG4, LSM9DS1_INT_CFG_M, LSM9DS1_INT_GEN_CFG_G, LSM9DS1_INT_LATCHED, LSM9DS1_INT_PULSED, and lsm9ds1_read_reg().

◆ lsm9ds1_pin_notification_set()

int32_t lsm9ds1_pin_notification_set ( const stmdev_ctx_t ctx_mag,
stmdev_ctx_t ctx_imu,
lsm9ds1_lir_t  val 
)

Latched/pulsed interrupt.

[set]

Parameters
ctx_magRead / write magnetometer interface definitions.(ptr)
ctx_imuRead / write imu interface definitions.(ptr)
valChange the values of "lir_xl1" in reg LSM9DS1.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 2922 of file lsm9ds1_reg.c.

References lsm9ds1_int_cfg_m_t::iel, lsm9ds1_int_gen_cfg_g_t::lir_g, lsm9ds1_ctrl_reg4_t::lir_xl1, LSM9DS1_CTRL_REG4, LSM9DS1_INT_CFG_M, LSM9DS1_INT_GEN_CFG_G, lsm9ds1_read_reg(), and lsm9ds1_write_reg().

◆ lsm9ds1_pin_polarity_get()

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.

[get]

Parameters
ctx_magRead / write magnetometer interface definitions.(ptr)
ctx_imuRead / write imu interface definitions.(ptr)
valGet the values of iea in reg INT_CFG_M.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3174 of file lsm9ds1_reg.c.

References lsm9ds1_ctrl_reg8_t::h_lactive, lsm9ds1_int_cfg_m_t::iea, LSM9DS1_ACTIVE_HIGH, LSM9DS1_ACTIVE_LOW, LSM9DS1_CTRL_REG8, LSM9DS1_INT_CFG_M, and lsm9ds1_read_reg().

◆ lsm9ds1_pin_polarity_set()

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.

[set]

Parameters
ctx_magRead / write magnetometer interface definitions.(ptr)
ctx_imuRead / write imu interface definitions.(ptr)
valChange the values of "iea" in reg LSM9DS1.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3131 of file lsm9ds1_reg.c.

References lsm9ds1_ctrl_reg8_t::h_lactive, lsm9ds1_int_cfg_m_t::iea, LSM9DS1_CTRL_REG8, LSM9DS1_INT_CFG_M, lsm9ds1_read_reg(), and lsm9ds1_write_reg().