Home | History | Annotate | Download | only in gesture_test

Lines Matching defs:mpu

68 } mpu;
149 dptr = (char**)&mpu;
159 // get proper (in absolute/relative) IIO path & build MPU's sysfs paths
162 sprintf(mpu.enable, "%s%s", sysfs_path, "/buffer/enable");
163 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state");
164 sprintf(mpu.dmp_on,"%s%s", sysfs_path, "/dmp_on");
165 sprintf(mpu.dmp_int_on, "%s%s", sysfs_path, "/dmp_int_on");
166 sprintf(mpu.self_test, "%s%s", sysfs_path, "/self_test");
167 sprintf(mpu.dmp_firmware, "%s%s", sysfs_path, "/dmp_firmware");
168 sprintf(mpu.firmware_loaded, "%s%s", sysfs_path, "/firmware_loaded");
169 sprintf(mpu.display_orientation_on, "%s%s", sysfs_path, "/display_orientation_on");
170 sprintf(mpu.orientation_on, "%s%s", sysfs_path, "/orientation_on");
171 sprintf(mpu.event_flick, "%s%s", sysfs_path, "/event_flick");
172 sprintf(mpu.event_display_orientation, "%s%s", sysfs_path, "/event_display_orientation");
173 sprintf(mpu.event_orientation, "%s%s", sysfs_path, "/event_orientation");
174 sprintf(mpu.event_tap, "%s%s", sysfs_path, "/event_tap");
175 sprintf(mpu.flick_axis, "%s%s", sysfs_path, "/flick_axis");
176 sprintf(mpu.flick_counter, "%s%s", sysfs_path, "/flick_counter");
177 sprintf(mpu.flick_int_on, "%s%s", sysfs_path, "/flick_int_on");
178 sprintf(mpu.flick_lower, "%s%s", sysfs_path, "/flick_lower");
179 sprintf(mpu.flick_upper, "%s%s", sysfs_path, "/flick_upper");
180 sprintf(mpu.flick_message_on, "%s%s", sysfs_path, "/flick_message_on");
181 sprintf(mpu.tap_min_count, "%s%s", sysfs_path, "/tap_min_count");
182 sprintf(mpu.tap_on, "%s%s", sysfs_path, "/tap_on");
183 sprintf(mpu.tap_threshold, "%s%s", sysfs_path, "/tap_threshold");
184 sprintf(mpu.tap_time, "%s%s", sysfs_path, "/tap_time");
188 dptr = (char**)&mpu;
199 read_sysfs_int(mpu.firmware_loaded, &res);
208 if (write_sysfs_int(mpu.flick_int_on, en) < 0) {
219 if (write_sysfs_int(mpu.flick_upper, flickUpper) < 0) {
224 if (write_sysfs_int(mpu.flick_lower, flickLower) < 0) {
229 if (write_sysfs_int(mpu.flick_counter, flickCounter) < 0) {
234 if (write_sysfs_int(mpu.flick_message_on, 0) < 0) {
239 if (write_sysfs_int(mpu.flick_axis, 0) < 0) {
249 if (write_sysfs_int(mpu.tap_on, en) < 0) {
259 if (write_sysfs_int(mpu.display_orientation_on, en) < 0) {
269 if (write_sysfs_int(mpu.orientation_on, en) < 0) {
286 fp = fopen(mpu.event_flick, "rt");
300 fp = fopen(mpu.event_tap, "rt");
350 fp = fopen(mpu.event_display_orientation, "rt");
364 fp = fopen(mpu.event_orientation, "rt");
423 pfd[i].fd = open(mpu.event_tap, O_RDONLY | O_NONBLOCK);
427 pfd[i].fd = open(mpu.event_flick, O_RDONLY | O_NONBLOCK);
431 pfd[i].fd = open(mpu.event_display_orientation, O_RDONLY | O_NONBLOCK);
435 pfd[i].fd = open(mpu.event_orientation, O_RDONLY | O_NONBLOCK);