|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Driver for the Isentek IST8310 magnetometer. More...
Go to the source code of this file.
Macros | |
| #define | Int16FromBuf(_buf, _idx) |
Functions | |
| void | ist8310_init (struct IST8310 *ist, struct i2c_periph *i2c_p, uint8_t addr) |
| Initialize IST8310 struct. | |
| void | ist8310_configure (struct IST8310 *ist) |
| void | ist8310_read (struct IST8310 *ist) |
| static void | ist8310_trigger (struct IST8310 *ist) |
| Trigger a single measurement, read at the next ist8310_read. | |
| void | ist8310_event (struct IST8310 *ist) |
| #define Int16FromBuf | ( | _buf, | |
| _idx ) |
Definition at line 119 of file ist8310.c.
Referenced by ist8310_event().
| void ist8310_configure | ( | struct IST8310 * | ist | ) |
Definition at line 46 of file ist8310.c.
References i2c_transaction::buf, IST8310::i2c_p, IST8310::i2c_trans, i2c_transmit(), I2CTransDone, I2CTransFailed, I2CTransSuccess, IST8310::init_status, IST8310::initialized, IST8310_CNTL1_ODR_SINGLE, IST8310_CNTL3_SAMPAVG_16, IST8310_CNTL4_SRPD, IST8310_REG_CNTL1, IST8310_REG_CNTL3, IST8310_REG_CNTL4, IST_CONF_CNTL1, IST_CONF_CNTL3, IST_CONF_CNTL4, IST_CONF_UNINIT, i2c_transaction::slave_addr, and i2c_transaction::status.
Referenced by ist8310_periodic().
| void ist8310_event | ( | struct IST8310 * | ist | ) |
Definition at line 120 of file ist8310.c.
References i2c_transaction::buf, IST8310::data, IST8310::data_available, IST8310::i2c_trans, I2CTransDone, I2CTransFailed, I2CTransSuccess, IST8310::initialized, Int16FromBuf, IST8310_STAT1_DRDY, ist8310_trigger(), IST_STATUS_IDLE, IST_STATUS_READ, i2c_transaction::status, and IST8310::status.
Referenced by mag_ist8310_module_event().
| void ist8310_init | ( | struct IST8310 * | ist, |
| struct i2c_periph * | i2c_p, | ||
| uint8_t | addr ) |
Initialize IST8310 struct.
Definition at line 34 of file ist8310.c.
References IST8310::data_available, IST8310::i2c_p, IST8310::i2c_trans, I2CTransDone, IST8310::init_status, IST8310::initialized, IST_CONF_UNINIT, i2c_transaction::slave_addr, and i2c_transaction::status.
Referenced by mag_ist8310_module_init().
| void ist8310_read | ( | struct IST8310 * | ist | ) |
Definition at line 98 of file ist8310.c.
References i2c_transaction::buf, IST8310::i2c_p, IST8310::i2c_trans, i2c_transceive(), IST8310_REG_STAT1, IST_STATUS_IDLE, IST_STATUS_READ, i2c_transaction::slave_addr, and IST8310::status.
Referenced by ist8310_periodic().
|
static |
Trigger a single measurement, read at the next ist8310_read.
Definition at line 111 of file ist8310.c.
References i2c_transaction::buf, IST8310::i2c_p, IST8310::i2c_trans, i2c_transmit(), IST8310_CNTL1_ODR_SINGLE, IST8310_REG_CNTL1, IST_STATUS_DONE, i2c_transaction::slave_addr, and IST8310::status.
Referenced by ist8310_event().