PX4 Firmware
PX4 Autopilot Software http://px4.io
ak09916.hpp File Reference
#include <px4_platform_common/px4_config.h>
#include <lib/perf/perf_counter.h>
#include <systemlib/conversions.h>
#include <drivers/drv_hrt.h>
#include <drivers/device/i2c.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <lib/drivers/magnetometer/PX4Magnetometer.hpp>
Include dependency graph for ak09916.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ak09916_regs
 
class  AK09916
 

Variables

static constexpr auto AK09916_DEVICE_PATH_MAG = "/dev/ak09916_i2c_int"
 
static constexpr auto AK09916_DEVICE_PATH_MAG_EXT = "/dev/ak09916_i2c_ext"
 
static constexpr float AK09916_MAG_RANGE_GA = 1.5e-3f
 
static constexpr uint8_t AK09916_I2C_ADDR = 0x0C
 
static constexpr uint8_t AK09916_DEVICE_ID_A = 0x48
 
static constexpr uint8_t AK09916REG_WIA = 0x00
 
static constexpr uint8_t AK09916REG_ST1 = 0x10
 
static constexpr uint8_t AK09916REG_HXL = 0x11
 
static constexpr uint8_t AK09916REG_CNTL2 = 0x31
 
static constexpr uint8_t AK09916REG_CNTL3 = 0x32
 
static constexpr uint8_t AK09916_RESET = 0x01
 
static constexpr uint8_t AK09916_CNTL2_CONTINOUS_MODE_100HZ = 0x08
 
static constexpr uint8_t AK09916_ST1_DRDY = 0x01
 
static constexpr uint8_t AK09916_ST1_DOR = 0x02
 
static constexpr uint8_t AK09916_ST2_HOFL = 0x08
 
static constexpr unsigned AK09916_CONVERSION_INTERVAL_us = 1000000 / 100
 

Variable Documentation

◆ AK09916_CNTL2_CONTINOUS_MODE_100HZ

constexpr uint8_t AK09916_CNTL2_CONTINOUS_MODE_100HZ = 0x08
static

Definition at line 62 of file ak09916.hpp.

◆ AK09916_CONVERSION_INTERVAL_us

constexpr unsigned AK09916_CONVERSION_INTERVAL_us = 1000000 / 100
static

Definition at line 70 of file ak09916.hpp.

Referenced by AK09916::start().

◆ AK09916_DEVICE_ID_A

constexpr uint8_t AK09916_DEVICE_ID_A = 0x48
static

Definition at line 53 of file ak09916.hpp.

◆ AK09916_DEVICE_PATH_MAG

constexpr auto AK09916_DEVICE_PATH_MAG = "/dev/ak09916_i2c_int"
static

Definition at line 45 of file ak09916.hpp.

Referenced by ak09916::start().

◆ AK09916_DEVICE_PATH_MAG_EXT

constexpr auto AK09916_DEVICE_PATH_MAG_EXT = "/dev/ak09916_i2c_ext"
static

Definition at line 46 of file ak09916.hpp.

Referenced by ak09916::start().

◆ AK09916_I2C_ADDR

constexpr uint8_t AK09916_I2C_ADDR = 0x0C
static

Definition at line 51 of file ak09916.hpp.

◆ AK09916_MAG_RANGE_GA

constexpr float AK09916_MAG_RANGE_GA = 1.5e-3f
static

Definition at line 49 of file ak09916.hpp.

Referenced by AK09916::AK09916().

◆ AK09916_RESET

constexpr uint8_t AK09916_RESET = 0x01
static

Definition at line 61 of file ak09916.hpp.

◆ AK09916_ST1_DOR

constexpr uint8_t AK09916_ST1_DOR = 0x02
static

Definition at line 65 of file ak09916.hpp.

◆ AK09916_ST1_DRDY

constexpr uint8_t AK09916_ST1_DRDY = 0x01
static

Definition at line 64 of file ak09916.hpp.

◆ AK09916_ST2_HOFL

constexpr uint8_t AK09916_ST2_HOFL = 0x08
static

Definition at line 67 of file ak09916.hpp.

Referenced by AK09916::measure().

◆ AK09916REG_CNTL2

constexpr uint8_t AK09916REG_CNTL2 = 0x31
static

Definition at line 58 of file ak09916.hpp.

◆ AK09916REG_CNTL3

constexpr uint8_t AK09916REG_CNTL3 = 0x32
static

Definition at line 59 of file ak09916.hpp.

◆ AK09916REG_HXL

constexpr uint8_t AK09916REG_HXL = 0x11
static

Definition at line 57 of file ak09916.hpp.

◆ AK09916REG_ST1

constexpr uint8_t AK09916REG_ST1 = 0x10
static

Definition at line 56 of file ak09916.hpp.

◆ AK09916REG_WIA

constexpr uint8_t AK09916REG_WIA = 0x00
static

Definition at line 54 of file ak09916.hpp.