stepRocker servo Open Source TMCL  1.00
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
Can.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Project: stepRocker Mini-TMCL (for stepRocker V2.2)
3 
4  Module: Can.h
5  CAN routines
6 
7  Copyright (C) 2011 TRINAMIC Motion Control GmbH & Co KG
8  Waterloohain 5
9  D - 22769 Hamburg, Germany
10  http://www.trinamic.com/
11 
12  This program is free software; you can redistribute it and/or modify it
13  freely.
14 
15  This program is distributed "as is" in the hope that it will be useful, but
16  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17  or FITNESS FOR A PARTICULAR PURPOSE.
18 *******************************************************************************/
19 
31 #ifndef __CAN_H
32 #define __CAN_H
33 
34 typedef struct
35 {
36  unsigned char Dlc, Ext, Rtr;
37  unsigned long Id;
38  unsigned char Data[8];
39 } TCanFrame;
40 
41 void InitCan(UCHAR Baudrate, USHORT ReceiveID, USHORT SecondaryID);
42 int CanSendMessage(TCanFrame *Msg);
43 int CanGetMessage(TCanFrame *Msg);
44 
45 #endif
Definition: Can.h:34
unsigned char UCHAR
8 bits unsigned
Definition: stepRocker.h:31
unsigned short USHORT
16 bits unsigned
Definition: stepRocker.h:32