PX4 Firmware
PX4 Autopilot Software http://px4.io
lps22hb_main.cpp File Reference
#include "LPS22HB.hpp"
Include dependency graph for lps22hb_main.cpp:

Go to the source code of this file.

Classes

struct  lps22hb::lps22hb_bus_option
 

Namespaces

 lps22hb
 Local functions in support of the shell command.
 

Macros

#define NUM_BUS_OPTIONS   (sizeof(bus_options)/sizeof(bus_options[0]))
 

Enumerations

enum  LPS22HB_BUS { LPS22HB_BUS_ALL = 0, LPS22HB_BUS_I2C_INTERNAL, LPS22HB_BUS_I2C_EXTERNAL, LPS22HB_BUS_SPI }
 

Functions

__EXPORT int lps22hb_main (int argc, char *argv[])
 
int lps22hb::start (enum LPS22HB_BUS busid)
 Start the driver. More...
 
bool lps22hb::start_bus (struct lps22hb_bus_option &bus)
 start driver for a specific bus option More...
 
struct lps22hb_bus_option & lps22hb::find_bus (enum LPS22HB_BUS busid)
 find a bus structure for a busid More...
 
int lps22hb::reset (enum LPS22HB_BUS busid)
 Reset the driver. More...
 
int lps22hb::info ()
 Print a little info about the driver. More...
 
void lps22hb::usage ()
 Prints info about the driver argument usage. More...
 

Variables

struct lps22hb::lps22hb_bus_option lps22hb::bus_options []
 

Macro Definition Documentation

◆ NUM_BUS_OPTIONS

#define NUM_BUS_OPTIONS   (sizeof(bus_options)/sizeof(bus_options[0]))

Enumeration Type Documentation

◆ LPS22HB_BUS

Enumerator
LPS22HB_BUS_ALL 
LPS22HB_BUS_I2C_INTERNAL 
LPS22HB_BUS_I2C_EXTERNAL 
LPS22HB_BUS_SPI 

Definition at line 38 of file lps22hb_main.cpp.

Function Documentation

◆ lps22hb_main()

int lps22hb_main ( int  argc,
char *  argv[] 
)

Definition at line 238 of file lps22hb_main.cpp.

References lps22hb::lps22hb_bus_option::busid, lps22hb::info(), LPS22HB_BUS_ALL, LPS22HB_BUS_I2C_EXTERNAL, LPS22HB_BUS_I2C_INTERNAL, LPS22HB_BUS_SPI, lps22hb::reset(), lps22hb::start(), and lps22hb::usage().

Here is the call graph for this function: