This repository contains a platform-independent C API for the TE Connectivity MS5611 sensor. The driver facilitates communication via SPI or I2C, calibration, and raw data transformation.
- Raw Data Transformation: Handle transformation of raw sensor data.
- Adaptive Settings: Adjusts to changed settings dynamically.
- SPI/I2C Communication: Supports both communication protocols.
For updates and to report bugs, visit: GitHub Repository
To create and initialize a new MS5611 device instance:
float temperature, pressure;
MS5611_Device_t dev = MS5611_NewDevice(interface, MS5611_INTF_I2C, read_function, write_function, delay_function);
MS5611_Init(&dev);
MS5611_GetData(&dev, &temperature, &pressure);
- MS5611_Init: Initializes the MS5611 device.
- MS5611_Test: Performs a self-test on the device.
- MS5611_Reset: Resets the MS5611 device.
- MS5611_GetData: Retrieves processed temperature and pressure data.
- MS5611_RawDataProcess: Processes raw ADC data to calculate temperature and pressure.