PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Public Member Functions | |
MS5611_I2C (uint8_t bus, ms5611::prom_u &prom_buf) | |
virtual | ~MS5611_I2C ()=default |
virtual int | read (unsigned offset, void *data, unsigned count) |
virtual int | ioctl (unsigned operation, unsigned &arg) |
Protected Member Functions | |
virtual int | probe () |
Private Member Functions | |
int | _probe_address (uint8_t address) |
int | _reset () |
Send a reset command to the MS5611. More... | |
int | _measure (unsigned addr) |
Send a measure command to the MS5611. More... | |
int | _read_prom () |
Read the MS5611 PROM. More... | |
Private Attributes | |
ms5611::prom_u & | _prom |
Definition at line 49 of file ms5611_i2c.cpp.
MS5611_I2C::MS5611_I2C | ( | uint8_t | bus, |
ms5611::prom_u & | prom_buf | ||
) |
Definition at line 95 of file ms5611_i2c.cpp.
Referenced by MS5611_i2c_interface().
|
virtualdefault |
|
private |
Send a measure command to the MS5611.
addr | Which address to use for the measure operation. |
Definition at line 199 of file ms5611_i2c.cpp.
Referenced by ioctl().
|
private |
Definition at line 165 of file ms5611_i2c.cpp.
References _read_prom(), and _reset().
Referenced by probe().
|
private |
Read the MS5611 PROM.
Definition at line 212 of file ms5611_i2c.cpp.
References _prom, ADDR_PROM_SETUP, ms5611::prom_u::c, and ms5611::crc4().
Referenced by _probe_address().
|
private |
Send a reset command to the MS5611.
This is required after any bus reset.
Definition at line 184 of file ms5611_i2c.cpp.
References ADDR_RESET_CMD.
Referenced by _probe_address(), and ioctl().
|
virtual |
Definition at line 126 of file ms5611_i2c.cpp.
References _measure(), _reset(), IOCTL_MEASURE, and IOCTL_RESET.
|
protectedvirtual |
Definition at line 147 of file ms5611_i2c.cpp.
References _probe_address(), MS5611_ADDRESS_1, and MS5611_ADDRESS_2.
|
virtual |
Definition at line 102 of file ms5611_i2c.cpp.
|
private |
Definition at line 62 of file ms5611_i2c.cpp.
Referenced by _read_prom().