PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Functions | |
int | start () |
Attempt to start driver on all available I2C busses. More... | |
int | start_bus (uint8_t i2c_bus) |
Start the driver on a specific bus. More... | |
int | stop () |
Stop the driver. More... | |
int | reset () |
Reset the driver. More... | |
Variables | |
MS5525 * | g_dev = nullptr |
int ms5525_airspeed::reset | ( | ) |
Reset the driver.
Definition at line 136 of file MS5525_main.cpp.
References fd, PATH_MS5525, px4_ioctl(), px4_open(), SENSOR_POLLRATE_DEFAULT, SENSORIOCRESET, and SENSORIOCSPOLLRATE.
Referenced by ms5525_airspeed_main().
int ms5525_airspeed::start | ( | ) |
Attempt to start driver on all available I2C busses.
This function will return as soon as the first sensor is detected on one of the available busses or if no sensors are detected.
Definition at line 58 of file MS5525_main.cpp.
References i2c_bus_options, NUM_I2C_BUS_OPTIONS, and start_bus().
Referenced by ms5525_airspeed_main().
int ms5525_airspeed::start_bus | ( | uint8_t | i2c_bus | ) |
Start the driver on a specific bus.
This function call only returns once the driver is up and running or failed to detect the sensor.
Definition at line 76 of file MS5525_main.cpp.
References fd, g_dev, I2C_ADDRESS_1_MS5525DSO, Airspeed::init(), PATH_MS5525, px4_ioctl(), px4_open(), SENSOR_POLLRATE_DEFAULT, and SENSORIOCSPOLLRATE.
Referenced by ms5525_airspeed_main(), and start().
int ms5525_airspeed::stop | ( | ) |
Stop the driver.
Definition at line 121 of file MS5525_main.cpp.
References g_dev.
Referenced by ms5525_airspeed_main().
MS5525* ms5525_airspeed::g_dev = nullptr |
Definition at line 42 of file MS5525_main.cpp.
Referenced by start_bus(), and stop().