Getting Started for FM4 S6E2DH (GAT-D)
www.cypress.com
Document No. 002-04388 Rev. *B
36
5.1.6
G h c P r o j e c t _ s e n d E ve n t _ E x
Function
Play the action which is referred to given event
Parameter
Type
Name
Description
EGhcEventName
eEventName
Given event name 1*
Return
Void
-
Note
The reference between action and event is set in Event Table of GAT-D Tool. See 4.1 Event also for
details
1*: “eGEN_” should be added before event name.
5.1.7
G h c F u n c _ g e t B u t t o n Ar e a B y I n d e x
Function
Get the area of button by given button name
Parameter
Type
Name
Description
TGhcInteger
a_Index
Given button name 2*
TGhcS32* 1*
a_pBtnTpLft_X
Address to save x coordinate of top left corner
TGhcS32*
a_pBtnTpLft_Y
Address to save y coordinate of top left corner
TGhcS32*
a_pBtnBtmRt_X
Address to save x coordinate of bottom right corner
TGhcS32*
a_pBtnBtmRt_Y
Address to save y coordinate of bottom right corner
Return
TGhcBool
True: success; False: fail
Note
1*: TGhcS32 is typedef of signed int.
2*: Same with inputted name while set object’s button option
5.1.8
G h c F u n c _ g e t P a g e O f B u t t o n B y I n d e x
Function
Get the page id which button on by given button name
Parameter
Type
Name
Description
TGhcInteger
a_Index
Given button name 1*
TGhcU32
a_pPageId
Address to save id of page 2*
Return
TGhcBool
True: success; False: fail
Note
1*: Same with inputted name while set object’s button option
2*: The id is defined of page name in GAT-D Tool.
5.1.9
G h c F u n c _ g e t C u r r e n t P a g e
Function
Get the current page id displayed on LCD
Parameter
Type
Name
Description
TGhcU32
a_pCurrentPageId
Address to save id of page 1*
Return
TGhcBool
True: success; False: fail
Note
1*: The id is defined of page name in GAT-D Tool.