PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Local functions in support of the shell command. More...
Functions | |
void | start (int spi_bus) |
Start the driver. More... | |
void | stop () |
Stop the driver. More... | |
void | test () |
Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes. More... | |
void | reset () |
Reset the driver. More... | |
void | info () |
Print a little info about the driver. More... | |
void | usage () |
Print a little info about how to start/stop/use the driver. More... | |
Variables | |
PMW3901 * | g_dev |
Local functions in support of the shell command.
void pmw3901::info | ( | ) |
Print a little info about the driver.
Definition at line 109 of file pmw3901_main.cpp.
References errx, and PMW3901::print_info().
Referenced by pmw3901_main().
void pmw3901::reset | ( | ) |
Reset the driver.
Definition at line 319 of file ets_airspeed.cpp.
References ACCEL_DEVICE_PATH, err, ETS_PATH, fd, GPSSIM_DEVICE_PATH, SF0X::ioctl(), SF1XX::ioctl(), SRF02::ioctl(), BMA180::ioctl(), cdev::CDev::open(), PATH_MS4525, PATH_MS5525, PATH_SDP3X, px4_close(), px4_ioctl(), px4_open(), RANGE_FINDER0_DEVICE_PATH, SENSOR_POLLRATE_DEFAULT, SENSORIOCRESET, SENSORIOCSPOLLRATE, SF1XX_DEVICE_PATH, SRF02_DEVICE_PATH, VL53LXX::start(), MB12XX::start(), VL53LXX::stop(), and MB12XX::stop().
Referenced by bma180_main(), ets_airspeed_main(), gpssim_main(), mb12xx_main(), ms4525_airspeed_main(), ms5525_airspeed_main(), sdp3x_airspeed_main(), mb12xx::set_address(), sf0x_main(), sf1xx_main(), srf02_main(), bma180::test(), and vl53lxx_main().
void pmw3901::start | ( | int | spi_bus | ) |
Start the driver.
Definition at line 60 of file pmw3901_main.cpp.
References errx, g_dev, PMW3901::init(), and OK.
Referenced by pmw3901_main().
void pmw3901::stop | ( | ) |
Stop the driver.
Stop the driver.
Definition at line 92 of file pmw3901_main.cpp.
Referenced by pmw3901_main().
void pmw3901::test | ( | ) |
Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes.
Definition at line 554 of file mb12xx.cpp.
References ACCEL_DEVICE_PATH, err, errx, fd, SF0X::ioctl(), SF1XX::ioctl(), SRF02::ioctl(), MB12XX_DEVICE_PATH, OK, cdev::CDev::open(), cdev::CDev::poll(), px4_close(), px4_open(), RANGE_FINDER0_DEVICE_PATH, SF0X::read(), SF1XX::read(), read(), VL53LXX::read(), SRF02::read(), BMA180::read(), bma180::reset(), SENSOR_POLLRATE_DEFAULT, SENSORIOCSPOLLRATE, SF1XX_DEVICE_PATH, SRF02_DEVICE_PATH, and VL53LXX_DEVICE_PATH.
Referenced by bma180_main(), gpssim_main(), mb12xx_main(), sf0x_main(), sf1xx_main(), srf02_main(), and vl53lxx_main().
void pmw3901::usage | ( | void | ) |
Print a little info about how to start/stop/use the driver.
Prints info about the driver argument usage.
Definition at line 124 of file pmw3901_main.cpp.
Referenced by pmw3901_main().
PMW3901* pmw3901::g_dev |
Definition at line 47 of file pmw3901_main.cpp.