iCub-main
Classes | Typedefs | Enumerations | Functions | Variables
dataTypes.h File Reference
#include <byteswap.h>
#include <string>
#include <map>
#include <unistd.h>
#include <stdint.h>
#include <stdio.h>
+ Include dependency graph for dataTypes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  _3f_vect_t
 
union  _4f_vect_t
 
union  _3f_matx_t
 
struct  _C2_
 
struct  _C5_
 
struct  _C8_
 
struct  _CB_
 
struct  _CC_
 
struct  _CE_
 
struct  _CF_
 
struct  _DF_
 
union  data_3DM_GX3_t
 
struct  imu_cmd_t
 

Typedefs

typedef _C2_ acc_angRate_t
 
typedef _C5_ orientMat_t
 
typedef _C8_ acc_ang_orient_t
 
typedef _CB_ acc_ang_mag_t
 
typedef _CC_ acc_ang_mag_orient_t
 
typedef _CE_ eul_t
 
typedef _CF_ eul_angRate_t
 
typedef _DF_ quat_t
 
typedef void *(* funptr_t) (data_3DM_GX3_t &)
 

Enumerations

enum  cmd {
  CMD_RAW = 0xC1 ,
  CMD_ACCEL_ANGRATE = 0xC2 ,
  CMD_DELVEL_DELANG = 0xC3 ,
  CMD_CONTINUOUS = 0xC4 ,
  CMD_ORIENT = 0xC5 ,
  CMD_ATT_UPDATE = 0xC6 ,
  CMD_MAG_VEC = 0xC7 ,
  CMD_ACCEL_ANGRATE_ORIENT = 0xC8 ,
  CMD_WRITE_ACCEL_BIAS = 0xC9 ,
  CMD_WRITE_GYRO_BIAS = 0xCA ,
  CMD_ACCEL_ANGRATE_MAG = 0xCB ,
  CMD_ACCEL_ANGRATE_MAG_ORIENT = 0xCC ,
  CMD_CAPTURE_GYRO_BIAS = 0xCD ,
  CMD_EULER = 0xCE ,
  CMD_EULER_ANGRATE = 0xCF ,
  CMD_TEMPERATURES = 0xD1 ,
  CMD_GYROSTAB_ANGRATE_MAG = 0xD2 ,
  CMD_DELVEL_DELANG_MAG = 0xD3 ,
  CMD_SAMPLING_SETTING = 0xDB ,
  CMD_QUATERNION = 0xDF ,
  CMD_DEV_ID_STR = 0xEA ,
  CMD_STOP_CONTINUOUS = 0xFA
}
 

Functions

struct _C2_ __attribute__ ((__packed__))
 
unsigned short calc_checksum (uint8_t *buff, int len)
 
void * process_C2 (data_3DM_GX3_t &data)
 
void * print_C2 (data_3DM_GX3_t &data)
 
void * process_C8 (data_3DM_GX3_t &data)
 
void * print_C8 (data_3DM_GX3_t &data)
 
void * process_CB (data_3DM_GX3_t &data)
 
void * print_CB (data_3DM_GX3_t &data)
 
void * process_CC (data_3DM_GX3_t &data)
 
void * print_CC (data_3DM_GX3_t &data)
 
void * process_CE (data_3DM_GX3_t &data)
 
void * print_CE (data_3DM_GX3_t &data)
 
void * process_CF (data_3DM_GX3_t &data)
 
void * print_CF (data_3DM_GX3_t &data)
 
void * process_DF (data_3DM_GX3_t &data)
 
void * print_DF (data_3DM_GX3_t &data)
 

Variables

typedef __attribute__
 
uint8_t cmd
 
_3f_vect_t acc
 
_3f_vect_t angRate
 
uint32_t timer
 
uint16_t checksum
 
_3f_matx_t orientMat
 
_3f_vect_t mag
 
_3f_vect_t eul
 
_4f_vect_t quat
 

Typedef Documentation

◆ acc_ang_mag_orient_t

Definition at line 152 of file dataTypes.h.

◆ acc_ang_mag_t

Definition at line 139 of file dataTypes.h.

◆ acc_ang_orient_t

Definition at line 127 of file dataTypes.h.

◆ acc_angRate_t

Definition at line 105 of file dataTypes.h.

◆ eul_angRate_t

Definition at line 173 of file dataTypes.h.

◆ eul_t

typedef _CE_ eul_t

Definition at line 162 of file dataTypes.h.

◆ funptr_t

typedef void*(* funptr_t) (data_3DM_GX3_t &)

Definition at line 199 of file dataTypes.h.

◆ orientMat_t

typedef _C5_ orientMat_t

Definition at line 115 of file dataTypes.h.

◆ quat_t

typedef _DF_ quat_t

Definition at line 183 of file dataTypes.h.

Enumeration Type Documentation

◆ cmd

enum uint8_t cmd
Enumerator
CMD_RAW 
CMD_ACCEL_ANGRATE 
CMD_DELVEL_DELANG 
CMD_CONTINUOUS 
CMD_ORIENT 
CMD_ATT_UPDATE 
CMD_MAG_VEC 
CMD_ACCEL_ANGRATE_ORIENT 
CMD_WRITE_ACCEL_BIAS 
CMD_WRITE_GYRO_BIAS 
CMD_ACCEL_ANGRATE_MAG 
CMD_ACCEL_ANGRATE_MAG_ORIENT 
CMD_CAPTURE_GYRO_BIAS 
CMD_EULER 
CMD_EULER_ANGRATE 
CMD_TEMPERATURES 
CMD_GYROSTAB_ANGRATE_MAG 
CMD_DELVEL_DELANG_MAG 
CMD_SAMPLING_SETTING 
CMD_QUATERNION 
CMD_DEV_ID_STR 
CMD_STOP_CONTINUOUS 

Definition at line 30 of file dataTypes.h.

Function Documentation

◆ __attribute__()

struct _C2_ __attribute__ ( (__packed__)  )

◆ calc_checksum()

unsigned short calc_checksum ( uint8_t *  buff,
int  len 
)
inline

Definition at line 212 of file dataTypes.h.

◆ print_C2()

void* print_C2 ( data_3DM_GX3_t data)
inline

Definition at line 232 of file dataTypes.h.

◆ print_C8()

void* print_C8 ( data_3DM_GX3_t data)
inline

Definition at line 259 of file dataTypes.h.

◆ print_CB()

void* print_CB ( data_3DM_GX3_t data)
inline

Definition at line 298 of file dataTypes.h.

◆ print_CC()

void* print_CC ( data_3DM_GX3_t data)
inline

Definition at line 332 of file dataTypes.h.

◆ print_CE()

void* print_CE ( data_3DM_GX3_t data)
inline

Definition at line 372 of file dataTypes.h.

◆ print_CF()

void* print_CF ( data_3DM_GX3_t data)
inline

Definition at line 394 of file dataTypes.h.

◆ print_DF()

void* print_DF ( data_3DM_GX3_t data)
inline

Definition at line 419 of file dataTypes.h.

◆ process_C2()

void* process_C2 ( data_3DM_GX3_t data)
inline

Definition at line 221 of file dataTypes.h.

◆ process_C8()

void* process_C8 ( data_3DM_GX3_t data)
inline

Definition at line 246 of file dataTypes.h.

◆ process_CB()

void* process_CB ( data_3DM_GX3_t data)
inline

Definition at line 285 of file dataTypes.h.

◆ process_CC()

void* process_CC ( data_3DM_GX3_t data)
inline

Definition at line 318 of file dataTypes.h.

◆ process_CE()

void* process_CE ( data_3DM_GX3_t data)
inline

Definition at line 362 of file dataTypes.h.

◆ process_CF()

void* process_CF ( data_3DM_GX3_t data)
inline

Definition at line 383 of file dataTypes.h.

◆ process_DF()

void* process_DF ( data_3DM_GX3_t data)
inline

Definition at line 409 of file dataTypes.h.

Variable Documentation

◆ __attribute__

◆ acc

Definition at line 1 of file dataTypes.h.

◆ angRate

_3f_vect_t angRate

Definition at line 2 of file dataTypes.h.

◆ checksum

uint16_t checksum

Definition at line 4 of file dataTypes.h.

◆ cmd

uint8_t cmd

Definition at line 0 of file dataTypes.h.

◆ eul

Definition at line 1 of file dataTypes.h.

◆ mag

Definition at line 3 of file dataTypes.h.

◆ orientMat

_3f_matx_t orientMat

Definition at line 1 of file dataTypes.h.

◆ quat

_4f_vect_t quat

Definition at line 1 of file dataTypes.h.

◆ timer

uint32_t timer

Definition at line 3 of file dataTypes.h.