Lines Matching refs:val
140 uint8_t val; in getVerifiedAxis() local
142 val = readByte(axis); in getVerifiedAxis()
145 } while (val & 0x40); in getVerifiedAxis()
148 return (char(val << 2) / 4); in getVerifiedAxis()
158 uint8_t val; in getVerifiedTilt() local
160 val = readByte(REG_TILT); in getVerifiedTilt()
163 } while (val & 0x40); in getVerifiedTilt()
165 return val; in getVerifiedTilt()
170 uint8_t val = getVerifiedTilt(); in tiltBackFront() local
173 val &= 0x03; in tiltBackFront()
174 return val; in tiltBackFront()
179 uint8_t val = getVerifiedTilt(); in tiltLandscapePortrait() local
182 val >>= 2; in tiltLandscapePortrait()
183 val &= 0x07; in tiltLandscapePortrait()
184 return val; in tiltLandscapePortrait()
189 uint8_t val = getVerifiedTilt(); in tiltTap() local
191 if (val & 0x20) in tiltTap()
199 uint8_t val = getVerifiedTilt(); in tiltShake() local
201 if (val & 0x80) in tiltShake()