PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <perf/perf_counter.h>
#include <lib/drivers/magnetometer/PX4Magnetometer.hpp>
#include <drivers/device/Device.hpp>
Go to the source code of this file.
Classes | |
struct | ak8963_regs |
class | MPU9250_mag |
Helper class implementing the magnetometer driver node. More... | |
Typedefs | |
typedef device::Device *(* | MPU9250_mag_constructor) (int, bool) |
Functions | |
device::Device * | AK8963_I2C_interface (int bus) |
Variables | |
static constexpr float | MPU9250_MAG_RANGE_GA {1.5e-3f} |
#define AK09916_CNTL2_CONTINOUS_MODE_100HZ 0x08 |
Definition at line 87 of file MPU9250_mag.h.
#define AK09916_CNTL2_CONTINOUS_MODE_10HZ 0x02 |
Definition at line 84 of file MPU9250_mag.h.
#define AK09916_CNTL2_CONTINOUS_MODE_20HZ 0x04 |
Definition at line 85 of file MPU9250_mag.h.
#define AK09916_CNTL2_CONTINOUS_MODE_50HZ 0x06 |
Definition at line 86 of file MPU9250_mag.h.
#define AK09916_CNTL2_POWERDOWN_MODE 0x00 |
Definition at line 82 of file MPU9250_mag.h.
#define AK09916_CNTL2_SELFTEST_MODE 0x10 |
Definition at line 88 of file MPU9250_mag.h.
#define AK09916_CNTL2_SINGLE_MODE 0x01 /* default */ |
Definition at line 83 of file MPU9250_mag.h.
#define AK09916_CNTL3_SRST 0x01 |
Definition at line 89 of file MPU9250_mag.h.
#define AK09916_DEVICE_ID_A 0x48 |
Definition at line 67 of file MPU9250_mag.h.
#define AK09916_DEVICE_ID_B 0x09 |
Definition at line 68 of file MPU9250_mag.h.
#define AK09916_ST1_DOR 0x02 |
Definition at line 91 of file MPU9250_mag.h.
#define AK09916_ST1_DRDY 0x01 |
Definition at line 90 of file MPU9250_mag.h.
#define AK09916REG_CNTL2 0x31 |
Definition at line 78 of file MPU9250_mag.h.
#define AK09916REG_CNTL3 0x32 |
Definition at line 79 of file MPU9250_mag.h.
#define AK09916REG_HXH 0x12 |
Definition at line 71 of file MPU9250_mag.h.
#define AK09916REG_HXL 0x11 |
Definition at line 70 of file MPU9250_mag.h.
#define AK09916REG_HYH 0x14 |
Definition at line 73 of file MPU9250_mag.h.
#define AK09916REG_HYL 0x13 |
Definition at line 72 of file MPU9250_mag.h.
#define AK09916REG_HZH 0x16 |
Definition at line 75 of file MPU9250_mag.h.
#define AK09916REG_HZL 0x15 |
Definition at line 74 of file MPU9250_mag.h.
#define AK09916REG_ST1 0x10 |
Definition at line 76 of file MPU9250_mag.h.
#define AK09916REG_ST2 0x18 |
Definition at line 77 of file MPU9250_mag.h.
#define AK8963_14BIT_ADC 0x00 |
Definition at line 61 of file MPU9250_mag.h.
#define AK8963_16BIT_ADC 0x10 |
Definition at line 60 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_read_adjustments(), and MPU9250_mag::ak8963_setup().
#define AK8963_CONTINUOUS_MODE1 0x02 |
Definition at line 55 of file MPU9250_mag.h.
#define AK8963_CONTINUOUS_MODE2 0x06 |
Definition at line 56 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_setup().
#define AK8963_DEVICE_ID 0x48 |
Definition at line 45 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_check_id().
#define AK8963_FUZE_MODE 0x0F |
Definition at line 59 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_read_adjustments().
#define AK8963_HOFL 0x08 |
Definition at line 63 of file MPU9250_mag.h.
#define AK8963_I2C_ADDR 0x0C |
Definition at line 44 of file MPU9250_mag.h.
Referenced by MPU9250_mag::set_passthrough().
#define AK8963_POWERDOWN_MODE 0x00 |
Definition at line 57 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_read_adjustments().
#define AK8963_RESET 0x01 |
Definition at line 62 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_reset(), and MPU9250_mag::ak8963_setup().
#define AK8963_SELFTEST_MODE 0x08 |
Definition at line 58 of file MPU9250_mag.h.
#define AK8963_SINGLE_MEAS_MODE 0x01 |
Definition at line 54 of file MPU9250_mag.h.
#define AK8963REG_ASAX 0x10 |
Definition at line 50 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_read_adjustments().
#define AK8963REG_CNTL1 0x0A |
Definition at line 51 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_read_adjustments(), and MPU9250_mag::ak8963_setup().
#define AK8963REG_CNTL2 0x0B |
Definition at line 52 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_reset(), and MPU9250_mag::ak8963_setup().
#define AK8963REG_HXL 0x03 |
Definition at line 49 of file MPU9250_mag.h.
#define AK8963REG_ST1 0x02 |
Definition at line 48 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_setup(), and MPU9250_mag::measure().
#define AK8963REG_WIA 0x00 |
Definition at line 47 of file MPU9250_mag.h.
Referenced by MPU9250_mag::ak8963_check_id().
typedef device::Device*(* MPU9250_mag_constructor) (int, bool) |
Definition at line 107 of file MPU9250_mag.h.
device::Device* AK8963_I2C_interface | ( | int | bus | ) |
|
static |
Definition at line 41 of file MPU9250_mag.h.
Referenced by MPU9250_mag::MPU9250_mag().