Rleg
2
|
Functions | |
uint8_t * | mag_read_reg (int i2c_dev, uint8_t reg, uint8_t count) |
READ COUNT 8-BIT REGISTER IN SEQUENCE. More... | |
int | mag_read_all_data (int i2c_dev, short int *data) |
READ ALL DATA AT ONCE (X, Y and Z) More... | |
short int | mag_read_data (int i2c_dev, int axis) |
READ DATA (X, Y or Z) More... | |
int mag_read_all_data | ( | int | i2c_dev, |
short int * | data | ||
) |
READ ALL DATA AT ONCE (X, Y and Z)
i2c_dev | ||
[out] | *data |
Definition at line 121 of file mag_functions.c.
References FAILURE, MAG_DATAX1, mag_read_reg(), and SUCCESS.
Referenced by read_all_data().
short int mag_read_data | ( | int | i2c_dev, |
int | axis | ||
) |
READ DATA (X, Y or Z)
i2c_dev | |
axis | set the axis ('X' or 'Y' or 'Z') |
Definition at line 148 of file mag_functions.c.
References MAG_DATAX1, MAG_DATAY1, MAG_DATAZ1, and mag_read_reg().
uint8_t* mag_read_reg | ( | int | i2c_dev, |
uint8_t | reg, | ||
uint8_t | count | ||
) |
READ COUNT 8-BIT REGISTER IN SEQUENCE.
i2c_dev | |
reg | |
count | number of registers in sequence (1-13) |
Definition at line 31 of file mag_functions.c.
Referenced by mag_read_all_data(), and mag_read_data().