3-axis MEMS ultra low power accelerometer

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

LIS2DW12_Serial_Interface

LIS2DW12_Serial_Interface
[LIS2DW12]

This section groups all the functions concerning main serial interface management (not auxiliary) More...

Functions

int32_t lis2dw12_spi_mode_set (lis2dw12_ctx_t *ctx, lis2dw12_sim_t val)
 SPI Serial Interface Mode selection.
int32_t lis2dw12_spi_mode_get (lis2dw12_ctx_t *ctx, lis2dw12_sim_t *val)
 SPI Serial Interface Mode selection.
int32_t lis2dw12_i2c_interface_set (lis2dw12_ctx_t *ctx, lis2dw12_i2c_disable_t val)
 Disable / Enable I2C interface.
int32_t lis2dw12_i2c_interface_get (lis2dw12_ctx_t *ctx, lis2dw12_i2c_disable_t *val)
 Disable / Enable I2C interface.
int32_t lis2dw12_cs_mode_set (lis2dw12_ctx_t *ctx, lis2dw12_cs_pu_disc_t val)
 Disconnect CS pull-up.
int32_t lis2dw12_cs_mode_get (lis2dw12_ctx_t *ctx, lis2dw12_cs_pu_disc_t *val)
 Disconnect CS pull-up.

Detailed Description

This section groups all the functions concerning main serial interface management (not auxiliary)


Function Documentation

int32_t lis2dw12_cs_mode_get ( lis2dw12_ctx_t *  ctx,
lis2dw12_cs_pu_disc_t *  val 
)

Disconnect CS pull-up.

[get]

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

Definition at line 1297 of file lis2dw12_reg.c.

int32_t lis2dw12_cs_mode_set ( lis2dw12_ctx_t *  ctx,
lis2dw12_cs_pu_disc_t  val 
)

Disconnect CS pull-up.

[set]

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

Definition at line 1276 of file lis2dw12_reg.c.

int32_t lis2dw12_i2c_interface_get ( lis2dw12_ctx_t *  ctx,
lis2dw12_i2c_disable_t *  val 
)

Disable / Enable I2C interface.

[get]

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

Definition at line 1246 of file lis2dw12_reg.c.

int32_t lis2dw12_i2c_interface_set ( lis2dw12_ctx_t *  ctx,
lis2dw12_i2c_disable_t  val 
)

Disable / Enable I2C interface.

[set]

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

Definition at line 1224 of file lis2dw12_reg.c.

int32_t lis2dw12_spi_mode_get ( lis2dw12_ctx_t *  ctx,
lis2dw12_sim_t *  val 
)

SPI Serial Interface Mode selection.

[get]

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

Definition at line 1194 of file lis2dw12_reg.c.

int32_t lis2dw12_spi_mode_set ( lis2dw12_ctx_t *  ctx,
lis2dw12_sim_t  val 
)

SPI Serial Interface Mode selection.

[set]

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

Definition at line 1173 of file lis2dw12_reg.c.