Home
last modified time | relevance | path

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

/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c141 void process_scan(char *data, struct iio_channel_info *infoarray, in process_scan() argument
147 switch (infoarray[k].bytes) { in process_scan()
150 print2byte(*(uint16_t *)(data + infoarray[k].location), in process_scan()
151 &infoarray[k]); in process_scan()
155 if (infoarray[k].is_signed) { in process_scan()
156 int32_t val = *(int32_t *)(data + infoarray[k].location); in process_scan()
157 if ((val >> infoarray[k].bits_used) & 1) in process_scan()
158 val = (val & infoarray[k].mask) | ~infoarray[k].mask; in process_scan()
164 if (infoarray[k].is_signed) { in process_scan()
165 int64_t val = *(int64_t *)(data + infoarray[k].location); in process_scan()
[all …]