#ifndef FARO_ARM_H #define FARO_ARM_H typedef struct { int error; int button1; int button2; float x; float y; float z; float a; float b; float c; } FaroPoint; /* Open and Close the Faro device */ int Faro_Open(void); void Faro_Close(void); /* Read a point from the faro arm */ int Faro_ReadPoint(FaroPoint *info); /* Read a point from the arm only when a button has been pushd */ /* The point is on buttonDown, but dont return until buttonUp */ int Faro_ReadClickButton(FaroPoint *info); /* Read a point when the button is down. If the user is slow */ /* and your looping, you might get several points. */ int Faro_ReadWhileButton(FaroPoint *info); /* Print the point structure to stdout */ void Faro_PrintPoint(FaroPoint *info); #endif