61 #include "../dev/mspi.h"
62 #include <util/delay.h>
64 #ifndef PRESSUREMPL115A_H_
65 #define PRESSUREMPL115A_H_
99 #define MPL115A_PRESSURE_OUT_MSB 0x80 | (0x00 << 1)
125 #define MPL115A_PRESSURE_OUT_LSB 0x80 | (0x01 << 1)
152 #define MPL115A_TEMP_OUT_MSB 0x80 | (0x02 << 1)
178 #define MPL115A_TEMP_OUT_LSB 0x80 | (0x03 << 1)
183 #define MPL115A_COEFF_ADDR_A0_M 0x80 | (0x04 << 1)
187 #define MPL115A_COEFF_ADDR_A0_L 0x80 | (0x05 << 1)
192 #define MPL115A_COEFF_ADDR_B1_M 0x80 | (0x06 << 1)
196 #define MPL115A_COEFF_ADDR_B1_L 0x80 | (0x07 << 1)
201 #define MPL115A_COEFF_ADDR_B2_M 0x80 | (0x08 << 1)
205 #define MPL115A_COEFF_ADDR_B2_L 0x80 | (0x09 << 1)
210 #define MPL115A_COEFF_ADDR_C12_M 0x80 | (0x0A << 1)
214 #define MPL115A_COEFF_ADDR_C12_L 0x80 | (0x0B << 1)
219 #define MPL115A_COEFF_ADDR_C11_M 0x80 | (0x0C << 1)
223 #define MPL115A_COEFF_ADDR_C11_L 0x80 | (0x0D << 1)
228 #define MPL115A_COEFF_ADDR_C22_M 0x80 | (0x0E << 1)
232 #define MPL115A_COEFF_ADDR_C22_L 0x80 | (0x0F << 1)
237 #define MPL115A_START_P_CONV (0x10 << 1)
241 #define MPL115A_START_T_CONV (0x11 << 1)
246 #define MPL115A_START_B_CONV (0x12 << 1)
251 #define MPL115A_C12 3
252 #define MPL115A_C11 4
253 #define MPL115A_C22 5
271 static coeff_t coefficients[6] = {
314 int16_t mpl115a_get_Pcomp(
void);
324 void mpl115a_read_coefficients(
void);