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

This section groups all the functions that manage the timestamp generation. More...

Collaboration diagram for ISM330DHCX_Timestamp:

Functions

int32_t ism330dhcx_timestamp_rst (stmdev_ctx_t *ctx)
 Reset timestamp counter.
int32_t ism330dhcx_timestamp_set (stmdev_ctx_t *ctx, uint8_t val)
 Enables timestamp counter.
int32_t ism330dhcx_timestamp_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enables timestamp counter.
int32_t ism330dhcx_timestamp_raw_get (stmdev_ctx_t *ctx, uint32_t *val)
 Timestamp first data output register (r).

Detailed Description

This section groups all the functions that manage the timestamp generation.

Function Documentation

◆ ism330dhcx_timestamp_get()

int32_t ism330dhcx_timestamp_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enables timestamp counter.

[get]

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

Definition at line 1560 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL10_C, ism330dhcx_read_reg(), and ism330dhcx_ctrl10_c_t::timestamp_en.

◆ ism330dhcx_timestamp_raw_get()

int32_t ism330dhcx_timestamp_raw_get ( stmdev_ctx_t * ctx,
uint32_t * val )

Timestamp first data output register (r).

The value is expressed as a 32-bit word and the bit resolution is 25 μs.[get]

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

Definition at line 1581 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), and ISM330DHCX_TIMESTAMP0.

◆ ism330dhcx_timestamp_rst()

int32_t ism330dhcx_timestamp_rst ( stmdev_ctx_t * ctx)

Reset timestamp counter.

[set]

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

Definition at line 1521 of file ism330dhcx_reg.c.

References ISM330DHCX_TIMESTAMP2, and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::resetTimestamp().

◆ ism330dhcx_timestamp_set()

int32_t ism330dhcx_timestamp_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables timestamp counter.

[set]

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

Definition at line 1535 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL10_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl10_c_t::timestamp_en.

Referenced by QwDevISM330DHCX::enableTimestamp().