Synopsis
typedef struct {
  CTL_TRANSPORT_t transport;
  CTL_STATUS_t (*sample)(CTL_PRESSURE_SENSOR_s *, float *, float *);
  unsigned __resolution;
} CTL_PRESSURE_SENSOR_t;
Description

CTL_PRESSURE_SENSOR_t is an abstract pressure sensor interface that provides clients with a means to sample barometric air pressure.

Structure
transport
The underlying transport for the magnetometer which provides, typically, an I2C or SPI connection to the device and a means to read one or more registers from the device.
__resolution
Private member: resolution of the pressure sensor, in bits.
sample
Method to read the pressure, and optionally the temperature, measured by the pressure sensor.