aboutsummaryrefslogtreecommitdiff
path: root/ATmega48/Source/c_armcomm.h
blob: 239ab732fa02536eef7e0d1d89b399f353c4f085 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// Programmer      
//
// Date init       14.12.2004
//
// Reviser         $Author:: Dkandlun                                        $
//
// Revision date   $Date:: 28-12-04 14:19                                    $
//
// Filename        $Workfile:: c_armcomm.h                                   $
//
// Version         $Revision:: 1                                             $
//
// Archive         $Archive:: /LMS2006/Sys01/Peripheral/Firmware/Source/c_ar $
//
// Platform        C
//


#ifndef   C_ARMCOMM
#define   C_ARMCOMM

#define   NOS_OF_MOTORS                 4
#define   NOS_OF_SENSORS                4
#define   NOS_OF_BTNS                   5

typedef   struct
{
  UBYTE TimerTik;
  UBYTE MotorStatus[NOS_OF_MOTORS];
  UBYTE MotorSpeed[NOS_OF_MOTORS];
}InputMap;

typedef   struct
{
  SWORD SensorValue[NOS_OF_SENSORS];
  UBYTE ButtonState[NOS_OF_BTNS];
}OutputMap;

void      cArmCommInit(void);
UBYTE     cArmCommCtrl(void);
void      cArmCommExit(void);

#endif