54 #ifdef PX4_I2C_BUS_EXPANSION 57 #ifdef PX4_I2C_BUS_EXPANSION1 60 #ifdef PX4_I2C_BUS_EXPANSION2 63 #ifdef PX4_I2C_BUS_ONBOARD
int init(struct lis3mdl_bus_option &bus)
Initializes the driver – sets defaults and starts a cycle.
struct lis3mdl::lis3mdl_bus_option bus_options[]
int reset(struct lis3mdl_bus_option &bus)
Resets the driver.
LIS3MDL_constructor interface_constructor
device::Device *(* LIS3MDL_constructor)(int)
Rotation
Enum for board and external compass rotations.
Shared defines for the LIS3MDL driver.
device::Device * LIS3MDL_SPI_interface(int bus)
int info(struct lis3mdl_bus_option &bus)
Prints info about the driver.
void usage()
Prints info about the driver argument usage.
int calibrate(struct lis3mdl_bus_option &bus)
Calibrate and self test.
device::Device * LIS3MDL_I2C_interface(int bus)
int stop(struct lis3mdl_bus_option &bus)
Stop the driver.
int test(struct lis3mdl_bus_option &bus)
Perform some basic functional tests on the driver; make sure we can collect data from the sensor in p...
int start(struct lis3mdl_bus_option &bus, Rotation rotation)
Starts the driver.
int start_bus(struct lis3mdl_bus_option &bus, Rotation rotation)
Starts the driver for a specific bus option.