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

Go to the source code of this file.

Macros

#define QMC5883L_REG_CONF1   0x09
 
#define QMC5883L_REG_CONF2   0x0A
 
#define QMC5883L_ODR_10HZ   (0x00 << 2)
 
#define QMC5883L_ODR_50HZ   (0x01 << 2)
 
#define QMC5883L_ODR_100HZ   (0x02 << 2)
 
#define QMC5883L_ODR_200HZ   (0x03 << 2)
 
#define QMC5883L_MODE_STANDBY   0x00
 
#define QMC5883L_MODE_CONTINUOUS   0x01
 
#define QMC5883L_RNG_2G   (0x00 << 4)
 
#define QMC5883L_RNG_8G   (0x01 << 4)
 
#define QMC5883L_OSR_512   (0x00 << 6)
 
#define QMC5883L_OSR_256   (0x01 << 6)
 
#define QMC5883L_OSR_128   (0x10 << 6)
 
#define QMC5883L_OSR_64   (0x11 << 6)
 
#define QMC5883L_RST   0x80
 
#define QMC5883L_REG_DATA_OUTPUT_X   0x00
 
#define QMC5883L_REG_STATUS   0x06
 
#define QMC5883L_REG_ID   0x0D
 
#define QMC5883_ID_VAL   0xFF
 

Variables

const AP_HAL::HALhal
 

Macro Definition Documentation

◆ QMC5883_ID_VAL

#define QMC5883_ID_VAL   0xFF

Definition at line 56 of file AP_Compass_QMC5883L.cpp.

Referenced by AP_Compass_QMC5883L::_check_whoami().

◆ QMC5883L_MODE_CONTINUOUS

#define QMC5883L_MODE_CONTINUOUS   0x01

Definition at line 40 of file AP_Compass_QMC5883L.cpp.

Referenced by AP_Compass_QMC5883L::init().

◆ QMC5883L_MODE_STANDBY

#define QMC5883L_MODE_STANDBY   0x00

Definition at line 39 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_ODR_100HZ

#define QMC5883L_ODR_100HZ   (0x02 << 2)

Definition at line 35 of file AP_Compass_QMC5883L.cpp.

Referenced by AP_Compass_QMC5883L::init().

◆ QMC5883L_ODR_10HZ

#define QMC5883L_ODR_10HZ   (0x00 << 2)

Definition at line 33 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_ODR_200HZ

#define QMC5883L_ODR_200HZ   (0x03 << 2)

Definition at line 36 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_ODR_50HZ

#define QMC5883L_ODR_50HZ   (0x01 << 2)

Definition at line 34 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_OSR_128

#define QMC5883L_OSR_128   (0x10 << 6)

Definition at line 47 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_OSR_256

#define QMC5883L_OSR_256   (0x01 << 6)

Definition at line 46 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_OSR_512

#define QMC5883L_OSR_512   (0x00 << 6)

Definition at line 45 of file AP_Compass_QMC5883L.cpp.

Referenced by AP_Compass_QMC5883L::init().

◆ QMC5883L_OSR_64

#define QMC5883L_OSR_64   (0x11 << 6)

Definition at line 48 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_REG_CONF1

#define QMC5883L_REG_CONF1   0x09

Definition at line 29 of file AP_Compass_QMC5883L.cpp.

Referenced by AP_Compass_QMC5883L::init().

◆ QMC5883L_REG_CONF2

#define QMC5883L_REG_CONF2   0x0A

Definition at line 30 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_REG_DATA_OUTPUT_X

#define QMC5883L_REG_DATA_OUTPUT_X   0x00

◆ QMC5883L_REG_ID

#define QMC5883L_REG_ID   0x0D

Definition at line 55 of file AP_Compass_QMC5883L.cpp.

Referenced by AP_Compass_QMC5883L::_check_whoami().

◆ QMC5883L_REG_STATUS

#define QMC5883L_REG_STATUS   0x06

Definition at line 53 of file AP_Compass_QMC5883L.cpp.

Referenced by AP_Compass_QMC5883L::timer().

◆ QMC5883L_RNG_2G

#define QMC5883L_RNG_2G   (0x00 << 4)

Definition at line 42 of file AP_Compass_QMC5883L.cpp.

◆ QMC5883L_RNG_8G

#define QMC5883L_RNG_8G   (0x01 << 4)

Definition at line 43 of file AP_Compass_QMC5883L.cpp.

Referenced by AP_Compass_QMC5883L::init().

◆ QMC5883L_RST

#define QMC5883L_RST   0x80

Definition at line 50 of file AP_Compass_QMC5883L.cpp.

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.