APM:Libraries
Macros | Variables
AP_Compass_AK09916.cpp File Reference
#include "AP_Compass_AK09916.h"
#include <AP_HAL/AP_HAL.h>
#include <utility>
#include <AP_Math/AP_Math.h>
#include <stdio.h>
Include dependency graph for AP_Compass_AK09916.cpp:

Go to the source code of this file.

Macros

#define REG_COMPANY_ID   0x00
 
#define REG_DEVICE_ID   0x01
 
#define REG_ST1   0x10
 
#define REG_HXL   0x11
 
#define REG_HXH   0x12
 
#define REG_HYL   0x13
 
#define REG_HYH   0x14
 
#define REG_HZL   0x15
 
#define REG_HZH   0x16
 
#define REG_TMPS   0x17
 
#define REG_ST2   0x18
 
#define REG_CNTL1   0x30
 
#define REG_CNTL2   0x31
 
#define REG_CNTL3   0x32
 
#define REG_ICM_WHOAMI   0x00
 
#define REG_ICM_PWR_MGMT_1   0x06
 
#define REG_ICM_INT_PIN_CFG   0x0f
 
#define ICM_WHOAMI_VAL   0xEA
 

Variables

const AP_HAL::HALhal
 

Macro Definition Documentation

◆ ICM_WHOAMI_VAL

#define ICM_WHOAMI_VAL   0xEA

Definition at line 44 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::init().

◆ REG_CNTL1

#define REG_CNTL1   0x30

Definition at line 36 of file AP_Compass_AK09916.cpp.

◆ REG_CNTL2

#define REG_CNTL2   0x31

Definition at line 37 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::init().

◆ REG_CNTL3

#define REG_CNTL3   0x32

Definition at line 38 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::init().

◆ REG_COMPANY_ID

#define REG_COMPANY_ID   0x00

Definition at line 25 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::init().

◆ REG_DEVICE_ID

#define REG_DEVICE_ID   0x01

Definition at line 26 of file AP_Compass_AK09916.cpp.

◆ REG_HXH

#define REG_HXH   0x12

Definition at line 29 of file AP_Compass_AK09916.cpp.

◆ REG_HXL

#define REG_HXL   0x11

Definition at line 28 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::timer().

◆ REG_HYH

#define REG_HYH   0x14

Definition at line 31 of file AP_Compass_AK09916.cpp.

◆ REG_HYL

#define REG_HYL   0x13

Definition at line 30 of file AP_Compass_AK09916.cpp.

◆ REG_HZH

#define REG_HZH   0x16

Definition at line 33 of file AP_Compass_AK09916.cpp.

◆ REG_HZL

#define REG_HZL   0x15

Definition at line 32 of file AP_Compass_AK09916.cpp.

◆ REG_ICM_INT_PIN_CFG

#define REG_ICM_INT_PIN_CFG   0x0f

Definition at line 42 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::init().

◆ REG_ICM_PWR_MGMT_1

#define REG_ICM_PWR_MGMT_1   0x06

Definition at line 41 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::init().

◆ REG_ICM_WHOAMI

#define REG_ICM_WHOAMI   0x00

Definition at line 40 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::init().

◆ REG_ST1

#define REG_ST1   0x10

Definition at line 27 of file AP_Compass_AK09916.cpp.

Referenced by AP_Compass_AK09916::timer().

◆ REG_ST2

#define REG_ST2   0x18

Definition at line 35 of file AP_Compass_AK09916.cpp.

◆ REG_TMPS

#define REG_TMPS   0x17

Definition at line 34 of file AP_Compass_AK09916.cpp.

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.