#ifndef _USER_ACC_h
#define _USER_ACC_h

#include <stdint.h>
 
#define IIS_WRITE 0x00
#define IIS_READ 0x80

#define IIS_INC 0x40


typedef enum{
    IIS_STATUS_REG_AUX = 0x07,
    IIS_OUT_TEMP_L     = 0x0C,
    IIS_OUT_TEMP_H,
    IIS_INT_COUNTER_REG,
    IIS_WHO_AM_I,
    IIS_TEMP_CFG_REG  = 0x1F,
    IIS_CTRL_REG1,
    IIS_CTRL_REG2,
    IIS_CTRL_REG3,
    IIS_CTRL_REG4,
    IIS_CTRL_REG5,
    IIS_CTRL_REG6,
    IIS_REFERENCE_DATACAPTURE,
    IIS_STATUS_REG,
    IIS_OUT_X_L,
    IIS_OUT_X_H,
    IIS_OUT_Y_L,
    IIS_OUT_Y_H,
    IIS_OUT_Z_L,
    IIS_OUT_Z_H,
    IIS_FIFO_CTRL_REG,
    IIS_FIFO_SRC_REG,
    IIS_INT1_CFG,
    IIS_INT1_SRC,
    IIS_INT1_THS,
    IIS_INT1_DURATION,
    IIS_INT2_CFG,
    IIS_INT2_SRC,
    IIS_INT2_THS,
    IIS_INT2_DURATION,
    IIS_CLICK_CFG,
    IIS_CLICK_SRC,
    IIS_CLICK_THS,
    IIS_TIME_LIMIT,
    IIS_TIME_LATENCY,
    IIS_TIME_WINDOW,
    IIS_Act_THS,
    IIS_Act_DUR,
    
}IIS_REGS;


void IIS_SetReg(IIS_REGS reg, uint8_t value);
uint8_t IIS_GetReg(IIS_REGS reg);
bool IIS_Init(void);


#endif