Getting Started for FM4 S6E2DH (GAT-D)
www.cypress.com
Document No. 002-04388 Rev. *B
34
5
GAT-D API
Follow figure explains where the interface is, and overview software.
Figure 59. Position of API
1* and 2*: User function source also could access Hardware or Graphics Driver, but not recommended
Follow table explains interface of GAT-D API Library and Generate source give out:
No.
Prototype
Note
1
TGhcBool GhcProject_load(TGhcU32 a_mcuMemorySize, TGhcU32 a_displayListSize)
Refer to 4.1.1
2
TGhcBool GhcIrisInitialize(void)
Refer to 4.1.2
3
TGhcBool GhcProject_setStartupAction()
Refer to 4.1.3
4
TGhcBool GhcProject_RunAction()
Refer to 4.1.4
5
TGhcBool GhcProject_StopRuningAction(void)
Refer to 4.1.5
6
void GhcProject_sendEvent_Ex(EGhcEventName eEventName)
Refer to 4.1.6
7
TGhcInteger GhcFunc_getButtonAreaByIndex(TGhcInteger a_Index, TGhcS32*
a_pBtnTpLft_X, TGhcS32* a_pBtnTpLft_Y, TGhcS32* a_pBtnBtmRt_X, TGhcS32*
a_pBtnBtmRt_Y)
Refer to 4.1.7
8
TGhcInteger GhcFunc_getPageOfButtonByIndex(TGhcInteger a_Index, TGhcU32*
a_pPageId)
Refer to 4.1.8
9
TGhcInteger GhcFunc_getCurrentPage(TGhcU32* a_pCurrentPageId)
Refer to 4.1.9
Embedded
device
Graphics
Driver
Hardware (S6E2DH)
Other
Driver
Generate
Source
GAT-D API
Library
Other lib
Other
application
Graphics application
Other function
source
Interfac
e
2*
1*