ChibiOS/EX  1.2.0
lps25h.c File Reference

LPS25H MEMS interface module code. More...

#include "hal.h"
#include "lps25h.h"

Go to the source code of this file.

Functions

static msg_t lps25hI2CReadRegister (I2CDriver *i2cp, lps25h_sad_t sad, uint8_t reg, uint8_t *rxbuf, size_t n)
 Reads registers value using I2C. More...
 
static msg_t lps25hI2CWriteRegister (I2CDriver *i2cp, lps25h_sad_t sad, uint8_t *txbuf, size_t n)
 Writes a value into a register using I2C. More...
 
static size_t baro_get_axes_number (void *ip)
 Return the number of axes of the BaseBarometer. More...
 
static msg_t baro_read_raw (void *ip, int32_t axes[])
 Retrieves raw data from the BaseBarometer. More...
 
static msg_t baro_read_cooked (void *ip, float axes[])
 Retrieves cooked data from the BaseBarometer. More...
 
static msg_t baro_set_bias (void *ip, float *bp)
 Set bias values for the BaseBarometer. More...
 
static msg_t baro_reset_bias (void *ip)
 Reset bias values for the BaseBarometer. More...
 
static msg_t baro_set_sensitivity (void *ip, float *sp)
 Set sensitivity values for the BaseBarometer. More...
 
static msg_t baro_reset_sensitivity (void *ip)
 Reset sensitivity values for the BaseBarometer. More...
 
static size_t thermo_get_axes_number (void *ip)
 Return the number of axes of the BaseThermometer. More...
 
static msg_t thermo_read_raw (void *ip, int32_t axes[])
 Retrieves raw data from the BaseThermometer. More...
 
static msg_t thermo_read_cooked (void *ip, float *axis)
 Retrieves cooked data from the BaseThermometer. More...
 
static msg_t thermo_set_bias (void *ip, float *bp)
 Set bias values for the BaseThermometer. More...
 
static msg_t thermo_reset_bias (void *ip)
 Reset bias values for the BaseThermometer. More...
 
static msg_t thermo_set_sensitivity (void *ip, float *sp)
 Set sensitivity values for the BaseThermometer. More...
 
static msg_t thermo_reset_sensitivity (void *ip)
 Reset sensitivity values for the BaseThermometer. More...
 
void lps25hObjectInit (LPS25HDriver *devp)
 Initializes an instance. More...
 
void lps25hStart (LPS25HDriver *devp, const LPS25HConfig *config)
 Configures and activates LPS25H Complex Driver peripheral. More...
 
void lps25hStop (LPS25HDriver *devp)
 Deactivates the LPS25H Complex Driver peripheral. More...
 

Detailed Description

LPS25H MEMS interface module code.

Definition in file lps25h.c.