25 #include "mems_regs.h"
29 #define HIGH_RANGE_SENSITIVITY 72
30 #define LOW_RANGE_SENSITIVITY 18
32 #define MEMS_LOW_RANGE 0
33 #define MEMS_HIGH_RANGE 1
52 uint8_t MEMS_Init(
void);
54 uint8_t MEMS_On(
void);
55 uint8_t MEMS_Off(
void);
56 uint8_t MEMS_SetFullScale(
boolean range);
57 boolean MEMS_GetFullScale(
void);
58 uint8_t MEMS_Read_Reg (uint8_t slave_addr, uint8_t reg_addr, uint8_t *pBuffer,
60 uint8_t MEMS_Write_Reg (uint8_t slave_addr, uint8_t reg_addr,
Mems data type: three acceleration values each related to a specific direction Watch out: only lower ...