Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6f55965e9fc1f2f05bb2ae17e894187be39bccbd (plain) (blame)
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
/*
 * etPlatform.h
 *
 *  Created on: 23.06.2012
 *      Author: junggtho
 */

#ifndef ETPLATFORM_H_
#define ETPLATFORM_H_


#define UP_SWITCH_LED		0x02
#define DOWN_SWITCH_LED		0x01
#define CABINE_SWITCH_LED	0x04

#define CABINE_BUTTON_ID		0x80
#define UP_BUTTON_ID			0x40
#define DOWN_BUTTON_ID			0x20
#define CABINE_DOOR_BUTTON_ID	0x10

#define ON		0x01
#define OFF		0x02
#define TOGGLE	0x03


void writeTo7Seg(unsigned char data);
void writeToDoor(unsigned char floor, unsigned char data);
unsigned char getButtonStatus(unsigned char floor, unsigned int id);
void writeToButtonLed(unsigned char floor, unsigned char id, unsigned char onOff);
void shiftMotorDown(void);
void shiftMotorUp(void);
unsigned char getMotorPosition(void);
void toggleTestLed(void);


#endif /* ETPLATFORM_H_ */

Back to the top