#include "imu_functions.h"
Go to the source code of this file.
Functions | |
int | mag_write_reg (int i2c_dev, uint8_t reg, uint8_t data) |
Rev 0 - 11/11/2012 RLEG project - 2012. More... | |
uint8_t * | mag_read_reg (int i2c_dev, uint8_t reg, uint8_t count) |
READ COUNT 8-BIT REGISTER IN SEQUENCE. More... | |
int | mag_init (int i2c_dev, uint8_t rate, uint8_t range, uint8_t samples_avg, uint8_t meas_mode, uint8_t op_mode) |
INITIALIZE MAGNETOMETER. 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_init | ( | int | i2c_dev, |
uint8_t | rate, | ||
uint8_t | range, | ||
uint8_t | samples_avg, | ||
uint8_t | meas_mode, | ||
uint8_t | op_mode | ||
) |
INITIALIZE MAGNETOMETER.
Definition at line 53 of file mag_functions.c.
References MAG_CONFIG_A, MAG_CONFIG_B, MAG_MODE, and mag_write_reg().
Referenced by devices_init().