Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Gamoto.h
- Revision:
- 1:260869102f7e
- Parent:
- 0:5ae6ccb247c6
--- a/Gamoto.h Mon Mar 14 08:33:05 2011 +0000
+++ b/Gamoto.h Thu Mar 17 09:46:31 2011 +0000
@@ -14,8 +14,8 @@
typedef unsigned char byte;
// Constants
-#define ACK 0x41
-#define gxHEADER 0xAA
+#define ACK 0x41
+#define gxHEADER 0xAA
#define gxWRITE 0x82
#include "mbed.h"
@@ -65,10 +65,10 @@
class Gamoto {
public:
- Gamoto();
- ~Gamoto();
+ Gamoto();
+ ~Gamoto();
- //methods
+ //methods
int WriteReg(int reg,int len,int data);
int ReadReg(int reg,int len);
//int Init(byte PortNum,int BaudRate,byte MotoAddress);
@@ -113,9 +113,9 @@
int getAnalog4();
private:
- //methods
- unsigned char CheckSum(unsigned char* Buffer,int Len);
- //variables
- unsigned char wBuffer[20]; //write buffer used to construct messages
- unsigned char rBuffer[20]; //read buffer used to parse messages
+ //methods
+ unsigned char CheckSum(unsigned char* Buffer,int Len);
+ //variables
+ unsigned char wBuffer[20]; //write buffer used to construct messages
+ unsigned char rBuffer[20]; //read buffer used to parse messages
};