Lines Matching refs:compassSysFs
35 #define COMPASS_MAX_SYSFS_ATTRB sizeof(compassSysFs) / sizeof(char*)
105 compassSysFs.compass_orient, getTimestamp());
106 fptr = fopen(compassSysFs.compass_orient, "r");
133 mCoilsResetFd = fopen(compassSysFs.compass_attr_1, "r+");
149 write_sysfs_int(compassSysFs.in_timestamp_en, 1);
153 compassSysFs.trigger_name, getTimestamp());
154 tempFp = fopen(compassSysFs.trigger_name, "r");
166 iio_trigger_name, compassSysFs.current_trigger, getTimestamp());
167 tempFp = fopen(compassSysFs.current_trigger, "w");
178 IIO_BUFFER_LENGTH, compassSysFs.buffer_length, getTimestamp());
179 tempFp = fopen(compassSysFs.buffer_length, "w");
203 compassSysFs.compass_x_fifo_enable, getTimestamp());
204 tempFd = open(compassSysFs.compass_x_fifo_enable, O_RDWR);
210 compassSysFs.compass_x_fifo_enable, strerror(res), res);
214 compassSysFs.compass_y_fifo_enable, getTimestamp());
215 tempFd = open(compassSysFs.compass_y_fifo_enable, O_RDWR);
221 compassSysFs.compass_y_fifo_enable, strerror(res), res);
225 compassSysFs.compass_z_fifo_enable, getTimestamp());
226 tempFd = open(compassSysFs.compass_z_fifo_enable, O_RDWR);
232 compassSysFs.compass_z_fifo_enable, strerror(res), res);
281 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en);
282 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en);
283 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en);
296 return write_sysfs_int(compassSysFs.chip_enable, en);
306 1000000000.f / ns, compassSysFs.compass_rate, getTimestamp());
310 tempFd = open(compassSysFs.compass_rate, O_RDWR);
365 compassSysFs.compass_scale, getTimestamp());
366 inv_read_data(compassSysFs.compass_scale, &sensitivity);
512 dptr = (char**)&compassSysFs;
534 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable");
535 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate");
536 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale");
537 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix");
539 sprintf(compassSysFs.chip_enable, "%s%s", sysfs_path, "/buffer/enable");
540 sprintf(compassSysFs.in_timestamp_en, "%s%s", sysfs_path, "/scan_elements/in_timestamp_en");
541 sprintf(compassSysFs.trigger_name, "%s%s", iio_trigger_path, "/name");
542 sprintf(compassSysFs.current_trigger, "%s%s", sysfs_path, "/trigger/current_trigger");
543 sprintf(compassSysFs.buffer_length, "%s%s", sysfs_path, "/buffer/length");
545 sprintf(compassSysFs.compass_x_fifo_enable, "%s%s", sysfs_path, "/scan_elements/in_magn_x_en");
546 sprintf(compassSysFs.compass_y_fifo_enable, "%s%s", sysfs_path, "/scan_elements/in_magn_y_en");
547 sprintf(compassSysFs.compass_z_fifo_enable, "%s%s", sysfs_path, "/scan_elements/in_magn_z_en");
548 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/sampling_frequency");
549 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/in_magn_scale");
550 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix");
553 sprintf(compassSysFs.compass_attr_1, "%s%s", sysfs_path, "/overunderflow");
559 dptr = (char**)&compassSysFs;