26 #define MMA7660_DEFAULT_I2C_BUS 0 27 #define MMA7660_DEFAULT_I2C_ADDR 0x4c 35 MMA7660_REG_XOUT = 0x00,
36 MMA7660_REG_YOUT = 0x01,
37 MMA7660_REG_ZOUT = 0x02,
38 MMA7660_REG_TILT = 0x03,
39 MMA7660_REG_SRST = 0x04,
40 MMA7660_REG_SPCNT = 0x05,
41 MMA7660_REG_INTSU = 0x06,
42 MMA7660_REG_MODE = 0x07,
43 MMA7660_REG_SR = 0x08,
44 MMA7660_REG_PDET = 0x09,
51 MMA7660_INTR_NONE = 0x00,
52 MMA7660_INTR_FBINT = 0x01,
53 MMA7660_INTR_PLINT = 0x02,
54 MMA7660_INTR_PDINT = 0x04,
55 MMA7660_INTR_ASINT = 0x08,
56 MMA7660_INTR_GINT = 0x10,
57 MMA7660_INTR_SHINTZ = 0x20,
58 MMA7660_INTR_SHINTY = 0x40,
59 MMA7660_INTR_SHINTX = 0x80
64 MMA7660_MODE_MODE = 0x01,
66 MMA7660_MODE_TON = 0x04,
67 MMA7660_MODE_AWE = 0x08,
68 MMA7660_MODE_ASE = 0x10,
69 MMA7660_MODE_SCPS = 0x20,
70 MMA7660_MODE_IPP = 0x40,
71 MMA7660_MODE_IAH = 0x80
76 MMA7660_BF_UNKNOWN = 0x00,
77 MMA7660_BF_LYING_FRONT = 0x01,
78 MMA7660_BF_LYING_BACK = 0x02
83 MMA7660_LP_UNKNOWN = 0x00,
84 MMA7660_LP_LANDSCAPE_LEFT = 0x01,
85 MMA7660_LP_LANDSCAPE_RIGHT = 0x02,
86 MMA7660_LP_VERT_DOWN = 0x05,
87 MMA7660_LP_VERT_UP = 0x06
92 MMA7660_AUTOSLEEP_120 = 0x00,
93 MMA7660_AUTOSLEEP_64 = 0x01,
94 MMA7660_AUTOSLEEP_32 = 0x02,
95 MMA7660_AUTOSLEEP_16 = 0x03,
96 MMA7660_AUTOSLEEP_8 = 0x04,
97 MMA7660_AUTOSLEEP_4 = 0x05,
98 MMA7660_AUTOSLEEP_2 = 0x06,
99 MMA7660_AUTOSLEEP_1 = 0x07
100 } MMA7660_AUTOSLEEP_T;