ST / IIS2DLPC

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

IIS2DLPC_Common

IIS2DLPC_Common
[IIS2DLPC]

This section groups common useful functions. More...

Functions

int32_t iis2dlpc_device_id_get (iis2dlpc_ctx_t *ctx, uint8_t *buff)
 Device Who am I.
int32_t iis2dlpc_auto_increment_set (iis2dlpc_ctx_t *ctx, uint8_t val)
 Register address automatically incremented during multiple byte access with a serial interface.
int32_t iis2dlpc_auto_increment_get (iis2dlpc_ctx_t *ctx, uint8_t *val)
 Register address automatically incremented during multiple byte access with a serial interface.
int32_t iis2dlpc_reset_set (iis2dlpc_ctx_t *ctx, uint8_t val)
 Software reset.
int32_t iis2dlpc_reset_get (iis2dlpc_ctx_t *ctx, uint8_t *val)
 Software reset.
int32_t iis2dlpc_boot_set (iis2dlpc_ctx_t *ctx, uint8_t val)
 Reboot memory content.
int32_t iis2dlpc_boot_get (iis2dlpc_ctx_t *ctx, uint8_t *val)
 Reboot memory content.
int32_t iis2dlpc_self_test_set (iis2dlpc_ctx_t *ctx, iis2dlpc_st_t val)
 Sensor self-test enable.
int32_t iis2dlpc_self_test_get (iis2dlpc_ctx_t *ctx, iis2dlpc_st_t *val)
 Sensor self-test enable.
int32_t iis2dlpc_data_ready_mode_set (iis2dlpc_ctx_t *ctx, iis2dlpc_drdy_pulsed_t val)
 Data-ready pulsed / letched mode.
int32_t iis2dlpc_data_ready_mode_get (iis2dlpc_ctx_t *ctx, iis2dlpc_drdy_pulsed_t *val)
 Data-ready pulsed / letched mode.

Detailed Description

This section groups common useful functions.


Function Documentation

int32_t iis2dlpc_auto_increment_get ( iis2dlpc_ctx_t *  ctx,
uint8_t *  val 
)

Register address automatically incremented during multiple byte access with a serial interface.

[get]

Parameters:
ctxread / write interface definitions
valchange the values of if_add_inc in reg CTRL2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 777 of file iis2dlpc_reg.c.

int32_t iis2dlpc_auto_increment_set ( iis2dlpc_ctx_t *  ctx,
uint8_t  val 
)

Register address automatically incremented during multiple byte access with a serial interface.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of if_add_inc in reg CTRL2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 755 of file iis2dlpc_reg.c.

int32_t iis2dlpc_boot_get ( iis2dlpc_ctx_t *  ctx,
uint8_t *  val 
)

Reboot memory content.

Reload the calibration parameters.[get]

Parameters:
ctxread / write interface definitions
valchange the values of boot in reg CTRL2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 858 of file iis2dlpc_reg.c.

int32_t iis2dlpc_boot_set ( iis2dlpc_ctx_t *  ctx,
uint8_t  val 
)

Reboot memory content.

Reload the calibration parameters.[set]

Parameters:
ctxread / write interface definitions
valchange the values of boot in reg CTRL2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 837 of file iis2dlpc_reg.c.

int32_t iis2dlpc_data_ready_mode_get ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_drdy_pulsed_t *  val 
)

Data-ready pulsed / letched mode.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of drdy_pulsed in reg CTRL_REG7
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 954 of file iis2dlpc_reg.c.

int32_t iis2dlpc_data_ready_mode_set ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_drdy_pulsed_t  val 
)

Data-ready pulsed / letched mode.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of drdy_pulsed in reg CTRL_REG7
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 931 of file iis2dlpc_reg.c.

int32_t iis2dlpc_device_id_get ( iis2dlpc_ctx_t *  ctx,
uint8_t *  buff 
)

Device Who am I.

[get]

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 739 of file iis2dlpc_reg.c.

int32_t iis2dlpc_reset_get ( iis2dlpc_ctx_t *  ctx,
uint8_t *  val 
)

Software reset.

Restore the default values in user registers.[get]

Parameters:
ctxread / write interface definitions
valchange the values of soft_reset in reg CTRL2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 818 of file iis2dlpc_reg.c.

int32_t iis2dlpc_reset_set ( iis2dlpc_ctx_t *  ctx,
uint8_t  val 
)

Software reset.

Restore the default values in user registers.[set]

Parameters:
ctxread / write interface definitions
valchange the values of soft_reset in reg CTRL2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 796 of file iis2dlpc_reg.c.

int32_t iis2dlpc_self_test_get ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_st_t *  val 
)

Sensor self-test enable.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of st in reg CTRL3
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 899 of file iis2dlpc_reg.c.

int32_t iis2dlpc_self_test_set ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_st_t  val 
)

Sensor self-test enable.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of st in reg CTRL3
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 877 of file iis2dlpc_reg.c.