Searched refs:CONVERT_U16 (Results 1 – 1 of 1) sorted by relevance
62 #define CONVERT_U16(buf, idx) ((uint16_t)((buf[idx] & 0x7f) << 5) | (buf[idx + 1] >> 3)) macro97 meas->z += CONVERT_U16(buf, 1) + 4096 - CONVERT_U16(buf, 3); in xpt2046_read_and_cumulate()98 meas->x += CONVERT_U16(buf, 5); in xpt2046_read_and_cumulate()99 meas->y += CONVERT_U16(buf, 7); in xpt2046_read_and_cumulate()