test sending sensor results over lora radio. Accelerometer and temp/pressure.

Dependencies:   SX127x

Embed: (wiki syntax)

« Back to documentation index

Common

Common
[Lps22hh]

This section groups common usefull functions. More...

Functions

int32_t lps22hh_device_id_get (lps22hh_ctx_t *ctx, uint8_t *buff)
 device_id: [get] DeviceWhoamI
int32_t lps22hh_reset_set (lps22hh_ctx_t *ctx, uint8_t val)
 reset: [set] Software reset.
int32_t lps22hh_reset_get (lps22hh_ctx_t *ctx, uint8_t *val)
 reset: [get] Software reset.
int32_t lps22hh_auto_increment_set (lps22hh_ctx_t *ctx, uint8_t val)
 auto_increment: [set] Register address automatically incremented during a multiple byte access with a serial interface.
int32_t lps22hh_auto_increment_get (lps22hh_ctx_t *ctx, uint8_t *val)
 auto_increment: [get] Register address automatically incremented during a multiple byte access with a serial interface.
int32_t lps22hh_boot_set (lps22hh_ctx_t *ctx, uint8_t val)
 boot: [set] Reboot memory content.
int32_t lps22hh_boot_get (lps22hh_ctx_t *ctx, uint8_t *val)
 boot: [get] Reboot memory content.

Detailed Description

This section groups common usefull functions.


Function Documentation

int32_t lps22hh_auto_increment_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

auto_increment: [get] Register address automatically incremented during a multiple byte access with a serial interface.

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_t,:change the values of if_add_inc in reg CTRL_REG2

Definition at line 596 of file LPS22HH_Driver.c.

int32_t lps22hh_auto_increment_set ( lps22hh_ctx_t *  ctx,
uint8_t  val 
)

auto_increment: [set] Register address automatically incremented during a multiple byte access with a serial interface.

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_tval: change the values of if_add_inc in reg CTRL_REG2

Definition at line 575 of file LPS22HH_Driver.c.

int32_t lps22hh_boot_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

boot: [get] Reboot memory content.

Reload the calibration parameters.

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_t,:change the values of boot in reg CTRL_REG2

Definition at line 635 of file LPS22HH_Driver.c.

int32_t lps22hh_boot_set ( lps22hh_ctx_t *  ctx,
uint8_t  val 
)

boot: [set] Reboot memory content.

Reload the calibration parameters.

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_tval: change the values of boot in reg CTRL_REG2

Definition at line 615 of file LPS22HH_Driver.c.

int32_t lps22hh_device_id_get ( lps22hh_ctx_t *  ctx,
uint8_t *  buff 
)

device_id: [get] DeviceWhoamI

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_t* : buffer that stores data read

Definition at line 522 of file LPS22HH_Driver.c.

int32_t lps22hh_reset_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

reset: [get] Software reset.

Restore the default values in user registers.

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_t,:change the values of swreset in reg CTRL_REG2

Definition at line 555 of file LPS22HH_Driver.c.

int32_t lps22hh_reset_set ( lps22hh_ctx_t *  ctx,
uint8_t  val 
)

reset: [set] Software reset.

Restore the default values in user registers.

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_tval: change the values of swreset in reg CTRL_REG2

Definition at line 535 of file LPS22HH_Driver.c.