Lines Matching refs:datas
44 unsigned char datas[6]; in test_gy271() local
70 datas[0] = 0x09; in test_gy271()
71 datas[1] = 0x01; in test_gy271()
73 if (i2c_write(i2c_dev, datas, 2, GY271_ADDR)) { in test_gy271()
78 datas[0] = 0x01; in test_gy271()
79 datas[1] = 0x20; in test_gy271()
82 if (i2c_write(i2c_dev, datas, 2, GY271_ADDR)) { in test_gy271()
87 datas[0] = 0x02; in test_gy271()
88 datas[1] = 0x00; in test_gy271()
89 if (i2c_write(i2c_dev, datas, 2, GY271_ADDR)) { in test_gy271()
99 datas[0] = 0x00; in test_gy271()
101 datas[0] = 0x03; in test_gy271()
104 if (i2c_write(i2c_dev, datas, 1, GY271_ADDR)) { in test_gy271()
109 (void)memset(datas, 0, sizeof(datas)); in test_gy271()
112 if (i2c_read(i2c_dev, datas, 6, GY271_ADDR)) { in test_gy271()
117 TC_PRINT("axis raw data: %d %d %d %d %d %d\n", datas[0], datas[1], datas[2], datas[3], in test_gy271()
118 datas[4], datas[5]); in test_gy271()
125 unsigned char datas[6]; in test_burst_gy271() local
151 datas[0] = 0x09; in test_burst_gy271()
152 datas[1] = 0x01; in test_burst_gy271()
154 if (i2c_burst_write(i2c_dev, GY271_ADDR, 0x00, datas, 2)) { in test_burst_gy271()
158 datas[0] = 0x01; in test_burst_gy271()
159 datas[1] = 0x20; in test_burst_gy271()
160 datas[2] = 0x02; in test_burst_gy271()
161 datas[3] = 0x00; in test_burst_gy271()
164 if (i2c_burst_write(i2c_dev, GY271_ADDR, 0x00, datas, 4)) { in test_burst_gy271()
171 (void)memset(datas, 0, sizeof(datas)); in test_burst_gy271()
181 if (i2c_burst_read(i2c_dev, GY271_ADDR, start_bit, datas, 6)) { in test_burst_gy271()
186 TC_PRINT("axis raw data: %d %d %d %d %d %d\n", datas[0], datas[1], datas[2], datas[3], in test_burst_gy271()
187 datas[4], datas[5]); in test_burst_gy271()