Lines Matching refs:compassSysFs
35 #define COMPASS_MAX_SYSFS_ATTRB sizeof(compassSysFs) / sizeof(char*)
88 compassSysFs.compass_orient, getTimestamp()); in CompassSensor()
90 fptr = fopen(compassSysFs.compass_orient, "r"); in CompassSensor()
146 en, compassSysFs.compass_enable, getTimestamp()); in enable()
147 res = write_sysfs_int(compassSysFs.compass_enable, en); in enable()
158 1000000000.f / ns, compassSysFs.compass_rate, getTimestamp()); in setDelay()
162 tempFd = open(compassSysFs.compass_rate, O_RDWR); in setDelay()
174 0, compassSysFs.compass_fifo_enable, getTimestamp()); in turnOffCompassFifo()
175 res += write_sysfs_int(compassSysFs.compass_fifo_enable, 0); in turnOffCompassFifo()
183 1, compassSysFs.compass_fifo_enable, getTimestamp()); in turnOnCompassFifo()
184 res += write_sysfs_int(compassSysFs.compass_fifo_enable, 1); in turnOnCompassFifo()
235 compassSysFs.compass_scale, getTimestamp()); in getSensitivity()
236 inv_read_data(compassSysFs.compass_scale, &sensitivity); in getSensitivity()
393 char **dptr = reinterpret_cast<char **>(&compassSysFs); in inv_init_sysfs_attributes()
414 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes()
415 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes()
416 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes()
417 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes()
419 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/compass_enable"); in inv_init_sysfs_attributes()
420 sprintf(compassSysFs.compass_fifo_enable, "%s%s", sysfs_path, "/compass_fifo_enable"); in inv_init_sysfs_attributes()
421 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/compass_rate"); in inv_init_sysfs_attributes()
422 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/in_magn_scale"); in inv_init_sysfs_attributes()
423 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes()