Lines Matching refs:compassSysFs
36 #define COMPASS_MAX_SYSFS_ATTRB sizeof(compassSysFs) / sizeof(char*)
82 compassSysFs.compass_orient, getTimestamp());
84 fptr = fopen(compassSysFs.compass_orient, "r");
146 res = write_sysfs_int(compassSysFs.compass_enable, en);
150 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en);
151 res = write_sysfs_int(compassSysFs.compass_y_fifo_enable, en);
152 res = write_sysfs_int(compassSysFs.compass_z_fifo_enable, en);
165 1000000000.f / ns, compassSysFs.compass_rate, getTimestamp());
169 tempFd = open(compassSysFs.compass_rate, O_RDWR);
225 compassSysFs.compass_scale, getTimestamp());
226 inv_read_data(compassSysFs.compass_scale, &sensitivity);
343 dptr = (char**)&compassSysFs;
368 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable");
369 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate");
370 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale");
371 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix");
373 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/compass_enable");
374 sprintf(compassSysFs.compass_x_fifo_enable, "%s%s", sysfs_path, "/scan_elements/in_magn_x_en");
375 sprintf(compassSysFs.compass_y_fifo_enable, "%s%s", sysfs_path, "/scan_elements/in_magn_y_en");
376 sprintf(compassSysFs.compass_z_fifo_enable, "%s%s", sysfs_path, "/scan_elements/in_magn_z_en");
377 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/sampling_frequency");
378 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/in_magn_scale");
379 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix");
384 dptr = (char**)&compassSysFs;