lsm303agr
2.0.0.0
|
Functions | |
void | lsm303agr_cfg_setup (lsm303agr_cfg_t *cfg) |
Config Object Initialization function. More... | |
LSM303AGR_RETVAL | lsm303agr_init (lsm303agr_t *ctx, lsm303agr_cfg_t *cfg) |
Initialization function. More... | |
void | lsm303agr_default_cfg (lsm303agr_t *ctx) |
Click Default Configuration function. More... | |
float | lsm303agr_get_acc_axis_x (lsm303agr_t *ctx) |
Reading the raw X axis data and calculating the value : More... | |
float | lsm303agr_get_acc_axis_y (lsm303agr_t *ctx) |
Reading the raw Y axis data and calculating the value : More... | |
float | lsm303agr_get_acc_axis_z (lsm303agr_t *ctx) |
Reading the raw Z axis data and calculating the value : More... | |
float | lsm303agr_get_mag_axis_x (lsm303agr_t *ctx) |
Reading the raw X axis data and calculating the value : More... | |
float | lsm303agr_get_mag_axis_y (lsm303agr_t *ctx) |
Reading the raw Y axis data and calculating the value : More... | |
float | lsm303agr_get_mag_axis_z (lsm303agr_t *ctx) |
Reading the raw Z axis data and calculating the value : More... | |
void | lsm303agr_accelerometer_init (lsm303agr_t *ctx) |
Accelerometer init. More... | |
void | lsm303agr_magnetometer_init (lsm303agr_t *ctx) |
Magnetometer init. More... | |
void lsm303agr_accelerometer_init | ( | lsm303agr_t * | ctx | ) |
Accelerometer init.
ctx | Click object. |
Sets accelerometer operating mode to HR / Normal / Low-power mode (100 Hz) by writing 0x57h in 0x20h address
void lsm303agr_cfg_setup | ( | lsm303agr_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void lsm303agr_default_cfg | ( | lsm303agr_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for LSM303AGR click.
float lsm303agr_get_acc_axis_x | ( | lsm303agr_t * | ctx | ) |
Reading the raw X axis data and calculating the value :
ctx | Click object. |
float lsm303agr_get_acc_axis_y | ( | lsm303agr_t * | ctx | ) |
Reading the raw Y axis data and calculating the value :
ctx | Click object. |
float lsm303agr_get_acc_axis_z | ( | lsm303agr_t * | ctx | ) |
Reading the raw Z axis data and calculating the value :
ctx | Click object. |
float lsm303agr_get_mag_axis_x | ( | lsm303agr_t * | ctx | ) |
Reading the raw X axis data and calculating the value :
ctx | Click object. |
float lsm303agr_get_mag_axis_y | ( | lsm303agr_t * | ctx | ) |
Reading the raw Y axis data and calculating the value :
ctx | Click object. |
float lsm303agr_get_mag_axis_z | ( | lsm303agr_t * | ctx | ) |
Reading the raw Z axis data and calculating the value :
ctx | Click object. |
LSM303AGR_RETVAL lsm303agr_init | ( | lsm303agr_t * | ctx, |
lsm303agr_cfg_t * | cfg | ||
) |
Initialization function.
lsm303agr | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void lsm303agr_magnetometer_init | ( | lsm303agr_t * | ctx | ) |
Magnetometer init.
ctx | Click object. |
Sets magnetoometer operating mode to Continuous mode / ODR 10 Hz by writing 0x00h in 0x60h address