54 #include "../drv/mspi-drv.h"
55 #include <util/delay.h>
57 #ifndef PRESSUREMPL115A_H_
58 #define PRESSUREMPL115A_H_
92 #define MPL115A_PRESSURE_OUT_MSB 0x80 | (0x00 << 1)
118 #define MPL115A_PRESSURE_OUT_LSB 0x80 | (0x01 << 1)
145 #define MPL115A_TEMP_OUT_MSB 0x80 | (0x02 << 1)
171 #define MPL115A_TEMP_OUT_LSB 0x80 | (0x03 << 1)
176 #define MPL115A_COEFF_ADDR_A0_M 0x80 | (0x04 << 1)
180 #define MPL115A_COEFF_ADDR_A0_L 0x80 | (0x05 << 1)
185 #define MPL115A_COEFF_ADDR_B1_M 0x80 | (0x06 << 1)
189 #define MPL115A_COEFF_ADDR_B1_L 0x80 | (0x07 << 1)
194 #define MPL115A_COEFF_ADDR_B2_M 0x80 | (0x08 << 1)
198 #define MPL115A_COEFF_ADDR_B2_L 0x80 | (0x09 << 1)
203 #define MPL115A_COEFF_ADDR_C12_M 0x80 | (0x0A << 1)
207 #define MPL115A_COEFF_ADDR_C12_L 0x80 | (0x0B << 1)
212 #define MPL115A_COEFF_ADDR_C11_M 0x80 | (0x0C << 1)
216 #define MPL115A_COEFF_ADDR_C11_L 0x80 | (0x0D << 1)
221 #define MPL115A_COEFF_ADDR_C22_M 0x80 | (0x0E << 1)
225 #define MPL115A_COEFF_ADDR_C22_L 0x80 | (0x0F << 1)
230 #define MPL115A_START_P_CONV (0x10 << 1)
234 #define MPL115A_START_T_CONV (0x11 << 1)
239 #define MPL115A_START_B_CONV (0x12 << 1)
244 #define MPL115A_C12 3
245 #define MPL115A_C11 4
246 #define MPL115A_C22 5
264 static coeff_t coefficients[6] = {
307 int16_t mpl115a_get_Pcomp(
void);
317 void mpl115a_read_coefficients(
void);