STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
ISM330DHCX_Wake_Up_event

This section groups all the functions that manage the Wake Up event generation. More...

Collaboration diagram for ISM330DHCX_Wake_Up_event:

Functions

int32_t ism330dhcx_wkup_ths_weight_set (stmdev_ctx_t *ctx, ism330dhcx_wake_ths_w_t val)
 Weight of 1 LSB of wakeup threshold.
int32_t ism330dhcx_wkup_ths_weight_get (stmdev_ctx_t *ctx, ism330dhcx_wake_ths_w_t *val)
 Weight of 1 LSB of wakeup threshold.
int32_t ism330dhcx_wkup_threshold_set (stmdev_ctx_t *ctx, uint8_t val)
 Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
int32_t ism330dhcx_wkup_threshold_get (stmdev_ctx_t *ctx, uint8_t *val)
 Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
int32_t ism330dhcx_xl_usr_offset_on_wkup_set (stmdev_ctx_t *ctx, uint8_t val)
 Wake up duration event( 1LSb = 1 / ODR ).
int32_t ism330dhcx_xl_usr_offset_on_wkup_get (stmdev_ctx_t *ctx, uint8_t *val)
 Wake up duration event( 1LSb = 1 / ODR ).
int32_t ism330dhcx_wkup_dur_set (stmdev_ctx_t *ctx, uint8_t val)
 Wake up duration event(1LSb = 1 / ODR).
int32_t ism330dhcx_wkup_dur_get (stmdev_ctx_t *ctx, uint8_t *val)
 Wake up duration event(1LSb = 1 / ODR).

Detailed Description

This section groups all the functions that manage the Wake Up event generation.

Function Documentation

◆ ism330dhcx_wkup_dur_get()

int32_t ism330dhcx_wkup_dur_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Wake up duration event(1LSb = 1 / ODR).

[get]

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

Definition at line 5418 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, and ism330dhcx_wake_up_dur_t::wake_dur.

◆ ism330dhcx_wkup_dur_set()

int32_t ism330dhcx_wkup_dur_set ( stmdev_ctx_t * ctx,
uint8_t val )

Wake up duration event(1LSb = 1 / ODR).

[set]

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

Definition at line 5393 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, ism330dhcx_write_reg(), and ism330dhcx_wake_up_dur_t::wake_dur.

Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().

◆ ism330dhcx_wkup_threshold_get()

int32_t ism330dhcx_wkup_threshold_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.

[get]

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

Definition at line 5328 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, and ism330dhcx_wake_up_ths_t::wk_ths.

◆ ism330dhcx_wkup_threshold_set()

int32_t ism330dhcx_wkup_threshold_set ( stmdev_ctx_t * ctx,
uint8_t val )

Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.

[set]

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

Definition at line 5302 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, ism330dhcx_write_reg(), and ism330dhcx_wake_up_ths_t::wk_ths.

Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().

◆ ism330dhcx_wkup_ths_weight_get()

int32_t ism330dhcx_wkup_ths_weight_get ( stmdev_ctx_t * ctx,
ism330dhcx_wake_ths_w_t * val )

Weight of 1 LSB of wakeup threshold.

[get] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256

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

Definition at line 5267 of file ism330dhcx_reg.c.

References ISM330DHCX_LSb_FS_DIV_256, ISM330DHCX_LSb_FS_DIV_64, ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, and ism330dhcx_wake_up_dur_t::wake_ths_w.

◆ ism330dhcx_wkup_ths_weight_set()

int32_t ism330dhcx_wkup_ths_weight_set ( stmdev_ctx_t * ctx,
ism330dhcx_wake_ths_w_t val )

Weight of 1 LSB of wakeup threshold.

[set] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256

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

Definition at line 5239 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, ism330dhcx_write_reg(), and ism330dhcx_wake_up_dur_t::wake_ths_w.

Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().

◆ ism330dhcx_xl_usr_offset_on_wkup_get()

int32_t ism330dhcx_xl_usr_offset_on_wkup_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Wake up duration event( 1LSb = 1 / ODR ).

[get]

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

Definition at line 5373 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, and ism330dhcx_wake_up_ths_t::usr_off_on_wu.

◆ ism330dhcx_xl_usr_offset_on_wkup_set()

int32_t ism330dhcx_xl_usr_offset_on_wkup_set ( stmdev_ctx_t * ctx,
uint8_t val )

Wake up duration event( 1LSb = 1 / ODR ).

[set]

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

Definition at line 5347 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, ism330dhcx_write_reg(), and ism330dhcx_wake_up_ths_t::usr_off_on_wu.