Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "peripherals/rm3100.h"
Go to the source code of this file.
Functions | |
void | rm3100_init (struct Rm3100 *mag, struct i2c_periph *i2c_p, uint8_t addr, uint8_t data_rate) |
void | rm3100_configure (struct Rm3100 *mag) |
void | rm3100_read (struct Rm3100 *mag) |
static int32_t | rm3100_get_raw_from_buf (const volatile uint8_t *buf, uint8_t idx) |
void | rm3100_event (struct Rm3100 *mag) |
#define RM3100_CCY_DEFAULT_LSB RM3100_CCX_DEFAULT_LSB |
#define RM3100_CCY_DEFAULT_MSB RM3100_CCX_DEFAULT_MSB |
#define RM3100_CCZ_DEFAULT_LSB RM3100_CCX_DEFAULT_LSB |
#define RM3100_CCZ_DEFAULT_MSB RM3100_CCX_DEFAULT_MSB |
void rm3100_configure | ( | struct Rm3100 * | mag | ) |
Definition at line 75 of file rm3100.c.
References i2c_transaction::buf, Rm3100::data_rate, Rm3100::i2c_p, Rm3100::i2c_trans, i2c_transmit(), I2CTransDone, I2CTransFailed, I2CTransSuccess, Rm3100::initialized, RM3100_ADDR_CCX, RM3100_ADDR_CMM, RM3100_ADDR_TMRC, RM3100_CCX_DEFAULT_LSB, RM3100_CCX_DEFAULT_MSB, RM3100_CCY_DEFAULT_LSB, RM3100_CCY_DEFAULT_MSB, RM3100_CCZ_DEFAULT_LSB, RM3100_CCZ_DEFAULT_MSB, RM3100_CONF_CCM_DONE, RM3100_CONF_CCR_DONE, RM3100_CONF_TMRC_DONE, RM3100_CONF_UNINIT, RM3100_CONTINUOUS_MODE, RM3100_POLL_XYZ, RM3100_STATUS_IDLE, i2c_transaction::slave_addr, i2c_transaction::status, and Rm3100::status.
Referenced by rm3100_periodic().
void rm3100_event | ( | struct Rm3100 * | mag | ) |
Definition at line 152 of file rm3100.c.
References i2c_transaction::buf, Rm3100::data, Rm3100::data_available, Rm3100::i2c_trans, I2CTransDone, I2CTransFailed, I2CTransSuccess, Rm3100::initialized, rm3100_get_raw_from_buf(), RM3100_STATUS_IDLE, RM3100_STATUS_MEAS, i2c_transaction::status, and Rm3100::status.
Referenced by mag_rm3100_module_event().
Definition at line 145 of file rm3100.c.
References idx.
Referenced by rm3100_event().
void rm3100_init | ( | struct Rm3100 * | mag, |
struct i2c_periph * | i2c_p, | ||
uint8_t | addr, | ||
uint8_t | data_rate | ||
) |
Definition at line 59 of file rm3100.c.
References Rm3100::data_available, Rm3100::data_rate, Rm3100::i2c_p, Rm3100::i2c_trans, I2CTransDone, Rm3100::initialized, RM3100_CONF_UNINIT, i2c_transaction::slave_addr, i2c_transaction::status, and Rm3100::status.
Referenced by mag_rm3100_module_init().
void rm3100_read | ( | struct Rm3100 * | mag | ) |
Definition at line 130 of file rm3100.c.
References i2c_transaction::buf, Rm3100::i2c_p, Rm3100::i2c_trans, i2c_transceive(), RM3100_ADDR_MX, RM3100_STATUS_IDLE, RM3100_STATUS_MEAS, i2c_transaction::slave_addr, and Rm3100::status.
Referenced by rm3100_periodic().