summaryrefslogtreecommitdiff
path: root/trunk/darwin/firmware/Sanguino/Sanguino3G/SanguinoMaster/Datatypes.h
blob: 2f56b5598cc6710f521aa9f34576860aa6dd07bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _DATATYPES_H_
#define _DATATYPES_H_
/**
 *  Sanguino 3rd Generation Firmware (S3G)
 *
 *  Specification for this protocol is located at: 
 *    http://docs.google.com/Doc?id=dd5prwmp_14ggw37mfp
 *  
 *  License: GPLv2
 *  Authors: Marius Kintel, Adam Mayer, and Zach Hoeken
 */

#include <stdint.h>

/**
 * Our point representation.  Each coordinate is a 4-byte value.
 */
struct LongPoint {
public:
  int32_t x;
  int32_t y;
  int32_t z;
};

#define COMMAND_MODE_IDLE 0
#define COMMAND_MODE_WAIT_FOR_TOOL 1

#endif // _DATATYPES_H_