PX4 Firmware
PX4 Autopilot Software http://px4.io
ms5611 Namespace Reference

Local functions in support of the shell command. More...

Classes

struct  ms5611_bus_option
 
struct  prom_s
 Calibration PROM as reported by the device. More...
 
union  prom_u
 Grody hack for crc4() More...
 

Functions

bool crc4 (uint16_t *n_prom)
 MS5611 crc4 cribbed from the datasheet. More...
 
static bool start_bus (struct ms5611_bus_option &bus, enum MS56XX_DEVICE_TYPES device_type)
 Start the driver. More...
 
static int start (enum MS5611_BUS busid, enum MS56XX_DEVICE_TYPES device_type)
 Start the driver. More...
 
static int info ()
 
static int usage ()
 

Variables

struct ms5611::ms5611_bus_option bus_options []
 

Detailed Description

Local functions in support of the shell command.

Function Documentation

◆ crc4()

bool ms5611::crc4 ( uint16_t *  n_prom)

MS5611 crc4 cribbed from the datasheet.

Definition at line 608 of file ms5611.cpp.

Referenced by MS5611_I2C::_read_prom().

Here is the caller graph for this function:

◆ info()

static int ms5611::info ( )
static

Definition at line 173 of file ms5611_main.cpp.

References bus_options, ms5611::ms5611_bus_option::dev, ms5611::ms5611_bus_option::devpath, NUM_BUS_OPTIONS, and MS5611::print_info().

Referenced by ms5611_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

static int ms5611::start ( enum MS5611_BUS  busid,
enum MS56XX_DEVICE_TYPES  device_type 
)
static

Start the driver.

This function call only returns once the driver is either successfully up and running or failed to start.

Definition at line 145 of file ms5611_main.cpp.

References bus_options, ms5611::ms5611_bus_option::dev, MS5611_BUS_ALL, NUM_BUS_OPTIONS, and start_bus().

Referenced by ms5611_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start_bus()

static bool ms5611::start_bus ( struct ms5611_bus_option bus,
enum MS56XX_DEVICE_TYPES  device_type 
)
static

Start the driver.

Definition at line 96 of file ms5611_main.cpp.

References ms5611::ms5611_bus_option::dev, fd, OK, px4_close(), px4_open(), SENSOR_POLLRATE_DEFAULT, and SENSORIOCSPOLLRATE.

Referenced by start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usage()

static int ms5611::usage ( void  )
static

Definition at line 188 of file ms5611_main.cpp.

Referenced by ms5611_main().

Here is the caller graph for this function:

Variable Documentation

◆ bus_options

struct ms5611::ms5611_bus_option ms5611::bus_options[]
Initial value:
= {
}

Referenced by info(), and start().