PX4 Firmware
PX4 Autopilot Software http://px4.io
LPS22HB_I2C Class Reference
Inheritance diagram for LPS22HB_I2C:
Collaboration diagram for LPS22HB_I2C:

Public Member Functions

 LPS22HB_I2C (int bus)
 
virtual ~LPS22HB_I2C ()=default
 
virtual int read (unsigned address, void *data, unsigned count)
 
virtual int write (unsigned address, void *data, unsigned count)
 

Protected Member Functions

virtual int probe ()
 

Detailed Description

Definition at line 46 of file LPS22HB_I2C.cpp.

Constructor & Destructor Documentation

◆ LPS22HB_I2C()

LPS22HB_I2C::LPS22HB_I2C ( int  bus)

Definition at line 66 of file LPS22HB_I2C.cpp.

Referenced by LPS22HB_I2C_interface().

Here is the caller graph for this function:

◆ ~LPS22HB_I2C()

virtual LPS22HB_I2C::~LPS22HB_I2C ( )
virtualdefault

Member Function Documentation

◆ probe()

int LPS22HB_I2C::probe ( )
protectedvirtual

Definition at line 72 of file LPS22HB_I2C.cpp.

References DEVICE_DEBUG, LPS22HB_ID_WHO_AM_I, OK, read(), and WHO_AM_I.

Here is the call graph for this function:

◆ read()

int LPS22HB_I2C::read ( unsigned  address,
void *  data,
unsigned  count 
)
virtual

Definition at line 109 of file LPS22HB_I2C.cpp.

Referenced by probe().

Here is the caller graph for this function:

◆ write()

int LPS22HB_I2C::write ( unsigned  address,
void *  data,
unsigned  count 
)
virtual

Definition at line 94 of file LPS22HB_I2C.cpp.


The documentation for this class was generated from the following file: