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 | |
SDP3X * | g_dev = nullptr |
int sdp3x_airspeed::reset | ( | ) |
Reset the driver.
Definition at line 149 of file SDP3X_main.cpp.
References fd, PATH_SDP3X, px4_ioctl(), px4_open(), SENSOR_POLLRATE_DEFAULT, SENSORIOCRESET, and SENSORIOCSPOLLRATE.
Referenced by sdp3x_airspeed_main().
int sdp3x_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 SDP3X_main.cpp.
References i2c_bus_options, NUM_I2C_BUS_OPTIONS, and start_bus().
Referenced by sdp3x_airspeed_main().
int sdp3x_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 SDP3X_main.cpp.
References fd, g_dev, I2C_ADDRESS_1_SDP3X, I2C_ADDRESS_2_SDP3X, Airspeed::init(), PATH_SDP3X, px4_ioctl(), px4_open(), SENSOR_POLLRATE_DEFAULT, and SENSORIOCSPOLLRATE.
Referenced by sdp3x_airspeed_main(), and start().
int sdp3x_airspeed::stop | ( | ) |
Stop the driver.
Definition at line 134 of file SDP3X_main.cpp.
References g_dev.
Referenced by sdp3x_airspeed_main().
SDP3X* sdp3x_airspeed::g_dev = nullptr |
Definition at line 42 of file SDP3X_main.cpp.
Referenced by start_bus(), and stop().