Lines Matching refs:regs

226 static inv_error_t inv_construct3_fifo(unsigned char *regs,
240 regs[0] = DINAF8 + 2;
247 regs[kk + 1] = DINAA0 + 3;
251 result = inv_set_mpu_memory(key, 4, regs);
262 unsigned char regs = DINA30;
400 result = inv_set_mpu_memory(KEY_CFG_16, 1, &regs);
410 regs = DINAA0 + 3;
411 result = inv_set_mpu_memory(KEY_CFG_16, 1, &regs);
466 unsigned char regs[4];
476 inv_int16_to_big8(delay, regs);
477 result = inv_set_mpu_memory(KEY_D_1_178, 2, regs);
490 (void)inv_int32_to_big8((long)tmp, regs);
491 result = inv_set_mpu_memory(KEY_D_1_128, sizeof(long), regs);
792 unsigned char regs[2];
799 regs);
804 fifo_obj.decoded[REF_RAW] = ((short)regs[0] << 8) | (regs[1]);
890 unsigned char regs[6];
896 regs);
902 (((long)regs[0]) << 24) | (((long)regs[1]) << 16);
904 (((long)regs[2]) << 24) | (((long)regs[3]) << 16);
906 (((long)regs[4]) << 24) | (((long)regs[5]) << 16);
993 unsigned char regs[4] = { DINAF8 + 1, DINA28, DINA30, DINA38 };
1000 result = inv_construct3_fifo(regs, elements, accuracy, REF_ACCEL,
1029 unsigned char regs[5] = { DINAF8 + 1, DINA20, DINA28, DINA30, DINA38 };
1038 regs[0] = DINAF8 + 2;
1045 regs[kk + 1] = DINAA0 + 3;
1049 result = inv_set_mpu_memory(KEY_CFG_1, 5, regs);
1079 unsigned char regs;
1087 regs = DINA28;
1091 regs = DINAF8 + 3;
1094 result = inv_set_mpu_memory(KEY_CFG_23, 1, &regs);
1147 unsigned char regs[4] = { DINAF8 + 1, DINA20, DINA28, DINA30 };
1154 regs[0] = DINA90 + 5;
1155 result = inv_set_mpu_memory(KEY_CFG_GYRO_SOURCE, 1, regs);
1160 regs[0] = DINAF8 + 1;
1161 regs[1] = DINA20;
1162 regs[2] = DINA28;
1163 regs[3] = DINA30;
1165 regs[0] = DINA90 + 10;
1166 result = inv_set_mpu_memory(KEY_CFG_GYRO_SOURCE, 1, regs);
1171 regs[0] = DINAF8 + 1;
1172 regs[1] = DINA28;
1173 regs[2] = DINA30;
1174 regs[3] = DINA38;
1176 result = inv_construct3_fifo(regs, elements, accuracy, REF_GYROS,
1255 unsigned char regs[5] = { DINAF8 + 1, DINA20, DINA28,
1268 regs[0] = DINAF8 + 2;
1275 regs[kk + 1] = DINAA0 + 3;
1279 result = inv_set_mpu_memory(KEY_CFG_8, 5, regs);
1303 unsigned char regs[7] = { DINAA0 + 3, DINAA0 + 3, DINAA0 + 3,
1327 regs[0] = DINACA;
1330 regs[1] = DINBC4;
1333 regs[2] = DINACC;
1336 regs[3] = DINBC6;
1339 regs[4] = DINBC0;
1342 regs[5] = DINAC8;
1345 regs[6] = DINBC2;
1347 result = inv_set_mpu_memory(KEY_CFG_15, 7, regs);
1357 unsigned char regs[4] = { DINAA0 + 3,
1373 regs[0] = DINA20;
1377 regs[1] = DINA28;
1381 regs[2] = DINA30;
1385 regs[3] = DINA38;
1388 result = inv_set_mpu_memory(KEY_CFG_15, 4, regs);
1423 unsigned char regs[6] = { DINAA0 + 3, DINAA0 + 3,
1441 regs[0] = DINBC2;
1444 regs[1] = DINACA;
1447 regs[2] = DINBC4;
1450 regs[3] = DINBC0;
1453 regs[4] = DINAC8;
1456 regs[5] = DINACC;
1459 result = inv_set_mpu_memory(KEY_CFG_EXTERNAL, sizeof(regs), regs);
1494 unsigned char regs[5] = { DINAF8 + 1, DINA20, DINA28,
1524 regs[kk + 1] = DINAA0 + 3;
1528 result = inv_set_mpu_memory(KEY_CFG_TAP0, 5, regs);
1553 unsigned char regs[3] = { DINA28, DINA30, DINA38 };
1570 regs[kk] = DINAA0 + 7;
1574 result = inv_set_mpu_memory(KEY_P_EIS_FIFO_XSHIFT, 3, regs);
1958 unsigned char regs[2];
1971 regs[0] = (unsigned char)((fifoRate >> 8) & 0xff);
1972 regs[1] = (unsigned char)(fifoRate & 0xff);
1974 result = inv_set_mpu_memory(KEY_D_0_22, 2, regs);