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

This section group all the functions concerning the free fall detection. More...

Collaboration diagram for ISM330DHCX_free_fall:

Functions

int32_t ism330dhcx_ff_threshold_set (stmdev_ctx_t *ctx, ism330dhcx_ff_ths_t val)
 Free fall threshold setting.
int32_t ism330dhcx_ff_threshold_get (stmdev_ctx_t *ctx, ism330dhcx_ff_ths_t *val)
 Free fall threshold setting.
int32_t ism330dhcx_ff_dur_set (stmdev_ctx_t *ctx, uint8_t val)
 Free-fall duration event(1LSb = 1 / ODR).
int32_t ism330dhcx_ff_dur_get (stmdev_ctx_t *ctx, uint8_t *val)
 Free-fall duration event(1LSb = 1 / ODR).

Detailed Description

This section group all the functions concerning the free fall detection.

Function Documentation

◆ ism330dhcx_ff_dur_get()

int32_t ism330dhcx_ff_dur_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Free-fall duration event(1LSb = 1 / ODR).

[get]

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

Definition at line 6511 of file ism330dhcx_reg.c.

References ism330dhcx_free_fall_t::ff_dur, ism330dhcx_wake_up_dur_t::ff_dur, ISM330DHCX_FREE_FALL, ism330dhcx_read_reg(), and ISM330DHCX_WAKE_UP_DUR.

◆ ism330dhcx_ff_dur_set()

int32_t ism330dhcx_ff_dur_set ( stmdev_ctx_t * ctx,
uint8_t val )

Free-fall duration event(1LSb = 1 / ODR).

[set]

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

Definition at line 6472 of file ism330dhcx_reg.c.

References ism330dhcx_free_fall_t::ff_dur, ism330dhcx_wake_up_dur_t::ff_dur, ISM330DHCX_FREE_FALL, ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, and ism330dhcx_write_reg().

◆ ism330dhcx_ff_threshold_get()

int32_t ism330dhcx_ff_threshold_get ( stmdev_ctx_t * ctx,
ism330dhcx_ff_ths_t * val )

Free fall threshold setting.

[get]

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

Definition at line 6414 of file ism330dhcx_reg.c.

References ism330dhcx_free_fall_t::ff_ths, ISM330DHCX_FF_TSH_156mg, ISM330DHCX_FF_TSH_219mg, ISM330DHCX_FF_TSH_250mg, ISM330DHCX_FF_TSH_312mg, ISM330DHCX_FF_TSH_344mg, ISM330DHCX_FF_TSH_406mg, ISM330DHCX_FF_TSH_469mg, ISM330DHCX_FF_TSH_500mg, ISM330DHCX_FREE_FALL, and ism330dhcx_read_reg().

◆ ism330dhcx_ff_threshold_set()

int32_t ism330dhcx_ff_threshold_set ( stmdev_ctx_t * ctx,
ism330dhcx_ff_ths_t val )

Free fall threshold setting.

[set]

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

Definition at line 6388 of file ism330dhcx_reg.c.

References ism330dhcx_free_fall_t::ff_ths, ISM330DHCX_FREE_FALL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().