Lines Matching refs:buffer
102 uint8_t buffer[3]; in cf1133_get_chip_id() local
108 ret = i2c_burst_read_dt(&config->bus, CHIP_ID, buffer, sizeof(buffer)); in cf1133_get_chip_id()
113 if (buffer[0] == 0) { in cf1133_get_chip_id()
114 if (buffer[1] + buffer[2] > 32) { in cf1133_get_chip_id()
120 data->chip_id = buffer[0]; in cf1133_get_chip_id()
122 num_x = buffer[1]; in cf1133_get_chip_id()
123 num_y = buffer[2]; in cf1133_get_chip_id()
132 uint8_t buffer; in cf1133_get_protocol_type() local
138 ret = i2c_reg_read_byte_dt(&config->bus, I2C_PROTOCOL, &buffer); in cf1133_get_protocol_type()
143 data->touch_protocol_type = FIELD_GET(I2C_PROTOCOL_BMSK, buffer); in cf1133_get_protocol_type()
146 buffer); in cf1133_get_protocol_type()
152 ret = i2c_reg_read_byte_dt(&config->bus, 0xf0, &buffer); in cf1133_get_protocol_type()
157 sensing_mode = FIELD_GET(ONE_D_SENSING_CONTROL_BMSK, buffer); in cf1133_get_protocol_type()
197 uint8_t buffer[1 + SUPPORTED_POINT * PIXEL_DATA_LENGTH_A]; in cf1133_process() local
200 ret = i2c_burst_read_dt(&config->bus, KEYS_REG, buffer, in cf1133_process()
208 if (buffer[1 + XY_COORD_H] & TOUCH_POINT_VALID_MSK) { in cf1133_process()
209 x = (uint16_t)(buffer[1 + XY_COORD_H] & 0x70) << 4 | buffer[1 + X_COORD_L]; in cf1133_process()
210 y = (uint16_t)(buffer[1 + XY_COORD_H] & 0x07) << 8 | buffer[1 + Y_COORD_L]; in cf1133_process()