ChibiOS
0.0.0
|
LSM6DSL MEMS interface module code. More...
Go to the source code of this file.
Macros | |
#define | lsm6dslI2CWriteRegister(i2cp, sad, txbuf, n) |
Writes a value into a register using I2C. More... | |
Functions | |
msg_t | lsm6dslI2CReadRegister (I2CDriver *i2cp, lsm6dsl_sad_t sad, uint8_t reg, uint8_t *rxbuf, size_t n) |
Reads registers value using I2C. More... | |
static size_t | acc_get_axes_number (void *ip) |
Return the number of axes of the BaseAccelerometer. More... | |
static msg_t | acc_read_raw (void *ip, int32_t axes[]) |
Retrieves raw data from the BaseAccelerometer. More... | |
static msg_t | acc_read_cooked (void *ip, float axes[]) |
Retrieves cooked data from the BaseAccelerometer. More... | |
static msg_t | acc_set_bias (void *ip, float *bp) |
Set bias values for the BaseAccelerometer. More... | |
static msg_t | acc_reset_bias (void *ip) |
Reset bias values for the BaseAccelerometer. More... | |
static msg_t | acc_set_sensivity (void *ip, float *sp) |
Set sensitivity values for the BaseAccelerometer. More... | |
static msg_t | acc_reset_sensivity (void *ip) |
Reset sensitivity values for the BaseAccelerometer. More... | |
static msg_t | acc_set_full_scale (LSM6DSLDriver *devp, lsm6dsl_acc_fs_t fs) |
Changes the LSM6DSLDriver accelerometer fullscale value. More... | |
static size_t | gyro_get_axes_number (void *ip) |
Return the number of axes of the BaseGyroscope. More... | |
static msg_t | gyro_read_raw (void *ip, int32_t axes[LSM6DSL_GYRO_NUMBER_OF_AXES]) |
Retrieves raw data from the BaseGyroscope. More... | |
static msg_t | gyro_read_cooked (void *ip, float axes[]) |
Retrieves cooked data from the BaseGyroscope. More... | |
static msg_t | gyro_sample_bias (void *ip) |
Samples bias values for the BaseGyroscope. More... | |
static msg_t | gyro_set_bias (void *ip, float *bp) |
Set bias values for the BaseGyroscope. More... | |
static msg_t | gyro_reset_bias (void *ip) |
Reset bias values for the BaseGyroscope. More... | |
static msg_t | gyro_set_sensivity (void *ip, float *sp) |
Set sensitivity values for the BaseGyroscope. More... | |
static msg_t | gyro_reset_sensivity (void *ip) |
Reset sensitivity values for the BaseGyroscope. More... | |
static msg_t | gyro_set_full_scale (LSM6DSLDriver *devp, lsm6dsl_gyro_fs_t fs) |
Changes the LSM6DSLDriver gyroscope fullscale value. More... | |
void | lsm6dslObjectInit (LSM6DSLDriver *devp) |
Initializes an instance. More... | |
void | lsm6dslStart (LSM6DSLDriver *devp, const LSM6DSLConfig *config) |
Configures and activates LSM6DSL Complex Driver peripheral. More... | |
void | lsm6dslStop (LSM6DSLDriver *devp) |
Deactivates the LSM6DSL Complex Driver peripheral. More... | |
LSM6DSL MEMS interface module code.
Definition in file lsm6dsl.c.