62 void swap_vect(
void) {
for (
int i=0; i<3; i++) _bytes[i] = bswap_32(_bytes[i]);}
73 void swap_vect(
void) {
for (
int i=0; i<4; i++) _bytes[i] = bswap_32(_bytes[i]);}
89 void swap_vect(
void) {
for (
int i=0; i<9; i++) _bytes[i] = bswap_32(_bytes[i]);}
215 for (
int i = 0; i < len; i++) {
checksum += buff[i]; }
235 printf(
"Accel - Ang rate [0xC2]\n");
236 printf(
"\t%f %f %f\n\t%f %f %f\n",
263 printf(
"Accel - Ang rate - Mag - Orient M [0xCC]\n");
264 printf(
"\t%f %f %f\n",
268 printf(
"\t%f %f %f\n",
272 printf(
"\t[%f %f %f\n\t%f %f %f\n\t%f %f %f]\n",
302 printf(
"Accel - Ang rate - Mag - Orient M [0xCC]\n");
303 printf(
"\t%f %f %f\n",
307 printf(
"\t%f %f %f\n",
311 printf(
"\t%f %f %f\n",
336 printf(
"Accel - Ang rate - Mag - Orient M [0xCC]\n");
337 printf(
"\t%f %f %f\n",
341 printf(
"\t%f %f %f\n",
345 printf(
"\t%f %f %f\n",
349 printf(
"\t[%f %f %f\n\t%f %f %f\n\t%f %f %f]\n",
375 printf(
"Euler ang [0xCE]\n");
376 printf(
"\t%f %f %f\n",
397 printf(
"Euler ang [0xCE]\n");
398 printf(
"\t%f %f %f\n",
402 printf(
"\t%f %f %f\n",
414 quat->timer = bswap_32(
quat->timer);
415 quat->checksum = bswap_16(
quat->checksum);
422 printf(
"Quaternion [0xDF]\n");
423 printf(
"\t%f %f %f %f\n",
void * print_CE(data_3DM_GX3_t &data)
unsigned short calc_checksum(uint8_t *buff, int len)
void * print_DF(data_3DM_GX3_t &data)
void * print_C2(data_3DM_GX3_t &data)
void * process_C2(data_3DM_GX3_t &data)
void * process_CC(data_3DM_GX3_t &data)
@ CMD_ACCEL_ANGRATE_MAG_ORIENT
@ CMD_GYROSTAB_ANGRATE_MAG
@ CMD_ACCEL_ANGRATE_ORIENT
void * print_CF(data_3DM_GX3_t &data)
void * process_CE(data_3DM_GX3_t &data)
void * print_CB(data_3DM_GX3_t &data)
void * process_C8(data_3DM_GX3_t &data)
_CC_ acc_ang_mag_orient_t
void * process_CB(data_3DM_GX3_t &data)
void * process_CF(data_3DM_GX3_t &data)
void *(* funptr_t)(data_3DM_GX3_t &)
void * process_DF(data_3DM_GX3_t &data)
void * print_C8(data_3DM_GX3_t &data)
void * print_CC(data_3DM_GX3_t &data)
acc_ang_mag_orient_t aamom