PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Shared defines for the LIS3MDL driver. More...
#include <float.h>
#include <drivers/device/i2c.h>
#include <drivers/device/ringbuffer.h>
#include <drivers/drv_hrt.h>
#include <drivers/drv_mag.h>
#include <lib/conversion/rotation.h>
#include <systemlib/err.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <perf/perf_counter.h>
#include <px4_platform_common/defines.h>
Go to the source code of this file.
Classes | |
class | LIS3MDL |
struct | LIS3MDL::_last_report |
used for info() More... | |
Macros | |
#define | LIS3MDL_CONVERSION_INTERVAL (1000000 / 80) /* 12,500 microseconds */ |
LIS3MDL internal constants and data structures. More... | |
#define | NUM_BUS_OPTIONS (sizeof(lis3mdl::bus_options)/sizeof(lis3mdl::bus_options[0])) |
#define | ADDR_WHO_AM_I 0x0f |
#define | ID_WHO_AM_I 0x3d |
#define | ADDR_CTRL_REG1 0x20 |
#define | ADDR_CTRL_REG2 0x21 |
#define | ADDR_CTRL_REG3 0x22 |
#define | ADDR_CTRL_REG4 0x23 |
#define | ADDR_CTRL_REG5 0x24 |
#define | ADDR_STATUS_REG 0x27 |
#define | ADDR_OUT_X_L 0x28 |
#define | ADDR_OUT_X_H 0x29 |
#define | ADDR_OUT_Y_L 0x2a |
#define | ADDR_OUT_Y_H 0x2b |
#define | ADDR_OUT_Z_L 0x2c |
#define | ADDR_OUT_Z_H 0x2d |
#define | ADDR_OUT_T_L 0x2e |
#define | ADDR_OUT_T_H 0x2f |
#define | MODE_REG_CONTINOUS_MODE (0 << 0) |
#define | MODE_REG_SINGLE_MODE (1 << 0) /* default */ |
#define | CNTL_REG1_DEFAULT 0xFC |
#define | CNTL_REG2_DEFAULT 0x00 |
#define | CNTL_REG3_DEFAULT 0x00 |
#define | CNTL_REG4_DEFAULT 0x0C |
#define | CNTL_REG5_DEFAULT 0x00 |
Typedefs | |
typedef device::Device *(* | LIS3MDL_constructor) (int) |
Enumerations | |
enum | LIS3MDL_BUS { LIS3MDL_BUS_ALL = 0, LIS3MDL_BUS_I2C_INTERNAL, LIS3MDL_BUS_I2C_EXTERNAL, LIS3MDL_BUS_SPI } |
enum | OPERATING_MODE { CONTINUOUS = 0, SINGLE, CONTINUOUS = 0, SINGLE } |
Functions | |
device::Device * | LIS3MDL_SPI_interface (int bus) |
device::Device * | LIS3MDL_I2C_interface (int bus) |
#define ADDR_OUT_T_L 0x2e |
Definition at line 81 of file lis3mdl.h.
Referenced by LIS3MDL::collect().
#define CNTL_REG1_DEFAULT 0xFC |
Definition at line 87 of file lis3mdl.h.
Referenced by LIS3MDL::LIS3MDL(), and LIS3MDL::set_default_register_values().
#define CNTL_REG2_DEFAULT 0x00 |
Definition at line 88 of file lis3mdl.h.
Referenced by LIS3MDL::LIS3MDL(), and LIS3MDL::set_default_register_values().
#define CNTL_REG3_DEFAULT 0x00 |
Definition at line 89 of file lis3mdl.h.
Referenced by LIS3MDL::LIS3MDL(), and LIS3MDL::set_default_register_values().
#define CNTL_REG4_DEFAULT 0x0C |
Definition at line 90 of file lis3mdl.h.
Referenced by LIS3MDL::LIS3MDL(), and LIS3MDL::set_default_register_values().
#define CNTL_REG5_DEFAULT 0x00 |
Definition at line 91 of file lis3mdl.h.
Referenced by LIS3MDL::LIS3MDL(), and LIS3MDL::set_default_register_values().
#define LIS3MDL_CONVERSION_INTERVAL (1000000 / 80) /* 12,500 microseconds */ |
LIS3MDL internal constants and data structures.
Definition at line 61 of file lis3mdl.h.
Referenced by LIS3MDL::ioctl(), LIS3MDL::read(), and LIS3MDL::Run().
#define NUM_BUS_OPTIONS (sizeof(lis3mdl::bus_options)/sizeof(lis3mdl::bus_options[0])) |
typedef device::Device*(* LIS3MDL_constructor) (int) |
enum LIS3MDL_BUS |
enum OPERATING_MODE |
device::Device* LIS3MDL_I2C_interface | ( | int | bus | ) |
device::Device* LIS3MDL_SPI_interface | ( | int | bus | ) |