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.
Dependents: SDC21XX_Motor SDC21XX_Motor
Diff: CANopen.h
- Revision:
- 0:0f99b1d63054
- Child:
- 2:3a8e39e5e13f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CANopen.h	Mon May 30 11:28:35 2016 +0000
@@ -0,0 +1,36 @@
+#ifndef CANOPEN_H
+#define CANOPEN_H
+
+#include "mbed.h"
+#include "CAN.h"
+
+
+namespace mbed {
+    class CANopen {
+        
+        public :
+            
+        CANopen(short _id, CAN * _can);
+        CANopen(short _id, CAN * _can, int _baud);
+        int Send_Initiate_SDO_Download(short index, short subindex, long data);
+        int Send_Initiate_SDO_Upload(short index, short subindex);
+        short GetNodeID(void);
+        void SetNodeID(short _id);
+        
+        private :
+        
+        
+        protected :
+        
+        short node_id;
+        CAN * can;
+        
+        
+        
+    };//end class
+    
+    
+    
+}//end namespace
+
+#endif
\ No newline at end of file