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
CANopen.h
- Committer:
- kkoichy
- Date:
- 2016-05-30
- Revision:
- 0:0f99b1d63054
- Child:
- 2:3a8e39e5e13f
File content as of revision 0:0f99b1d63054:
#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