Home
last modified time | relevance | path

Searched refs:sysfsfp (Results 1 – 5 of 5) sorted by relevance

/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Diio_utils.h103 FILE *sysfsfp; in iioutils_get_type() local
145 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
146 if (sysfsfp == NULL) { in iioutils_get_type()
152 ret = fscanf(sysfsfp, in iioutils_get_type()
172 fclose(sysfsfp); in iioutils_get_type()
198 FILE *sysfsfp; in iioutils_get_param_float() local
230 sysfsfp = fopen(filename, "r"); in iioutils_get_param_float()
231 if (!sysfsfp) { in iioutils_get_param_float()
235 fscanf(sysfsfp, "%f", output); in iioutils_get_param_float()
282 FILE *sysfsfp; in build_channel_array() local
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Diio_utils.h105 FILE *sysfsfp; in iioutils_get_type() local
147 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
148 if (sysfsfp == NULL) { in iioutils_get_type()
154 ret = fscanf(sysfsfp, in iioutils_get_type()
174 fclose(sysfsfp); in iioutils_get_type()
200 FILE *sysfsfp; in iioutils_get_param_float() local
232 sysfsfp = fopen(filename, "r"); in iioutils_get_param_float()
233 if (!sysfsfp) { in iioutils_get_param_float()
237 fscanf(sysfsfp, "%f", output); in iioutils_get_param_float()
283 FILE *sysfsfp; in build_channel_array() local
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Diio_utils.h105 FILE *sysfsfp; in iioutils_get_type() local
147 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
148 if (sysfsfp == NULL) { in iioutils_get_type()
154 ret = fscanf(sysfsfp, in iioutils_get_type()
174 fclose(sysfsfp); in iioutils_get_type()
200 FILE *sysfsfp; in iioutils_get_param_float() local
232 sysfsfp = fopen(filename, "r"); in iioutils_get_param_float()
233 if (!sysfsfp) { in iioutils_get_param_float()
237 fscanf(sysfsfp, "%f", output); in iioutils_get_param_float()
283 FILE *sysfsfp; in build_channel_array() local
[all …]
/hardware/invensense/6515/libsensors_iio/
DMPLSupport.cpp149 FILE *sysfsfp; in read_sysfs_int() local
151 sysfsfp = fopen(filename, "r"); in read_sysfs_int()
152 if (sysfsfp != NULL) { in read_sysfs_int()
153 if (fscanf(sysfsfp, "%d\n", var) < 0 || fclose(sysfsfp) < 0) { in read_sysfs_int()
164 FILE *sysfsfp; in read_sysfs_int64() local
166 sysfsfp = fopen(filename, "r"); in read_sysfs_int64()
167 if (sysfsfp != NULL) { in read_sysfs_int64()
168 if (fscanf(sysfsfp, "%lld\n", var) < 0 || fclose(sysfsfp) < 0) { in read_sysfs_int64()
192 FILE *sysfsfp; in write_sysfs_int() local
194 sysfsfp = fopen(filename, "w"); in write_sysfs_int()
[all …]
DPressureSensor.IIO.secondary.cpp201 FILE *sysfsfp; in inv_init_sysfs_attributes() local
202 sysfsfp = fopen(pressureSysFs.pressure_rate, "r"); in inv_init_sysfs_attributes()
203 if (sysfsfp == NULL) { in inv_init_sysfs_attributes()
206 fclose(sysfsfp); in inv_init_sysfs_attributes()