SY-7000 SDK Manual - DRAFT
4
Chapter 4 - Writing the SDK Application...................................................... 18
CLASS EVENTMANAGER .................................................................................. 19
virtual ~EventManager(); ....................................................................................19
void RegisterForEvent(Event eventId, EventCallback callback , void* userdata ); 19
void UnRegisterForEvent(Event eventId, EventCallback callback); ...................20
int InstallNetworkServer ( const unsigned int port , const char* ifc = "eth0" ); .. 21
int createLowResTimer (long timeoutSeconds); .................................................21
void killTimer (int timerId); ................................................................................ 21
static EventManager * GetInstance(); ..................................................................21
CLASS LCDDISPLAY ...........................................................................................22
LCDDisplay (); .....................................................................................................22
virtual ~LCDDisplay (); ........................................................................................22
virtual void Write (int row, int col, const char * str); .......................................... 22
virtual void Clear (); .............................................................................................23
virtual void DisplayContrast (int contrast); .........................................................23
virtual void SetCursorState (CursorState state); ...................................................23
CLASS SOUND .......................................................................................................24
void Sound (); .......................................................................................................24
virtual ~Sound(); ...................................................................................................24
void Beep(int milliseconds, int toneHz); ..............................................................24
CLASS LED .............................................................................................................25
void LED (); ..........................................................................................................25
virtual ~LED(); .....................................................................................................25
void TurnOn(Light light); .....................................................................................25
CLASS RELAY .......................................................................................................26
void Relay (); ........................................................................................................26
virtual ~ Relay (); ..................................................................................................26
void Set(int index, int state); ................................................................................. 26
4.1Demo Application.......................................................................................................... 27
Chapter 5 - Creating and Loading the Application File to the Terminal .... 34
5.1Creating a Binary File of the Application...................................................................... 34
5.2Loading the Application Binary file to the Terminal..................................................... 35
5.3Running The Application on Terminal Startup ............................................................. 36
Appendix A - Setting Up the PIK Environment ............................................ 38
Appendix B - Model Matrix............................................................................. 53
Содержание SY-7000 SDK
Страница 1: ...SY 7000 SDK Manual SYnel Industries LTD...
Страница 10: ...IntroductionSY 7000 SDK Manual 10 1 1 3 2Bottom connector panel...
Страница 33: ...Writing the SDK ApplicationSY 7000 SDK Manual 33...
Страница 37: ...Creating and Loading the Application File to the TerminalSY 7000 SDK Manual 37...
Страница 40: ...SY 7000 SDK Manual 40 Step 6 Use the default settings on this screen and click Next...
Страница 41: ...SY 7000 SDK Manual 41 Step 7 Specify the location to store the installation files and click Next...
Страница 42: ...SY 7000 SDK Manual 42 Step 8 Select Direct Connection and click Next...
Страница 44: ...SY 7000 SDK Manual 44 Step 10 Click the sign next to Devel to expand it...
Страница 45: ...SY 7000 SDK Manual 45 Step 11 Under Devel scroll down to gcc...
Страница 46: ...SY 7000 SDK Manual 46 Step 12 Select gcc by clicking on the word Skip once...
Страница 48: ...SY 7000 SDK Manual 48 Cygwin will now download and install the packages that you selected...
Страница 49: ...SY 7000 SDK Manual 49 Step 14 Leave the options checked and click Finish...
Страница 51: ...SY 7000 SDK Manual 51...
Страница 52: ...SY 7000 SDK Manual 52...
Страница 54: ...SY 7000 SDK Manual 45...