WebRadioApp  0.1
ew_bsp_inout.h
Go to the documentation of this file.
1 /*******************************************************************************
2  *
3  * E M B E D D E D W I Z A R D P R O J E C T
4  *
5  * Copyright (c) TARA Systems
6  *GmbH written by Paul Banach and Manfred Schweyer
7  *
8  ********************************************************************************
9  *
10  * This software is delivered "as is" and shows the usage of other software
11  * components. It is provided as an example software which is intended to be
12  * modified and extended according to particular requirements.
13  *
14  * TARA Systems hereby disclaims all warranties and conditions with regard to
15  *the software, including all implied warranties and conditions of
16  *merchantability and non-infringement of any third party IPR or other rights
17  *which may result from the use or the inability to use the software.
18  *
19  ********************************************************************************
20  *
21  * DESCRIPTION:
22  * This file is part of the interface (glue layer) between an Embedded Wizard
23  * generated UI application and the board support package (BSP) of a dedicated
24  * target.
25  * This template provides access to some LEDs and buttons of the board.
26  *
27  *******************************************************************************/
28 
41 #ifndef EW_BSP_INOUT_H
42 #define EW_BSP_INOUT_H
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 /*******************************************************************************
49  * CALLBACK:
50  * TButtonCallback
51  *
52  * DESCRIPTION:
53  * A function of this type has to be set with EwBspButtonConfig() to get
54  * notified, everytime the hardware button is pressed or released.
55  *
56  * ARGUMENTS:
57  * aButtonPresssed
58  *
59  * RETURN VALUE:
60  * None
61  *
62  *******************************************************************************/
63 typedef void (*TButtonCallback)(int aButtonPresssed);
64 
65 /*******************************************************************************
66  * FUNCTION:
67  * EwBspInOutInitButton
68  *
69  * DESCRIPTION:
70  * Configures one hardware button of the board used for demo applications.
71  *
72  * ARGUMENTS:
73  * aButtonCallback - The button callback.
74  *
75  * RETURN VALUE:
76  * None
77  *
78  *******************************************************************************/
79 void EwBspInOutInitButton(TButtonCallback aButtonCallback);
80 
81 /*******************************************************************************
82  * FUNCTION:
83  * EwBspInOutInitLed
84  *
85  * DESCRIPTION:
86  * Configures one LED of the board used for demo applications.
87  *
88  * ARGUMENTS:
89  * None
90  *
91  * RETURN VALUE:
92  * None
93  *
94  *******************************************************************************/
95 void EwBspInOutInitLed(void);
96 
97 /*******************************************************************************
98  * FUNCTION:
99  * EwBspInOutLedOn
100  *
101  * DESCRIPTION:
102  * Switch LED on (used for demo applications).
103  *
104  * ARGUMENTS:
105  * None
106  *
107  * RETURN VALUE:
108  * None
109  *
110  *******************************************************************************/
111 void EwBspInOutLedOn(void);
112 
113 /*******************************************************************************
114  * FUNCTION:
115  * EwBspInOutLedOff
116  *
117  * DESCRIPTION:
118  * Switch LED off (used for demo applications).
119  *
120  * ARGUMENTS:
121  * None
122  *
123  * RETURN VALUE:
124  * None
125  *
126  *******************************************************************************/
127 void EwBspInOutLedOff(void);
128 
129 /*******************************************************************************
130  * FUNCTION:
131  * EwBspInOutEventHandler
132  *
133  * DESCRIPTION:
134  * The function EwBspInOutEventHandler is called from GPIO driver in case of
135  * an input event.
136  *
137  * ARGUMENTS:
138  * aEventId - An optional target specific event ID.
139  *
140  * RETURN VALUE:
141  * None.
142  *
143  *******************************************************************************/
144 void EwBspInOutEventHandler(int aEventId);
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
150 #endif /* EW_BSP_INOUT_H */
151 
152 /* msy */
153 
EwBspInOutEventHandler
void EwBspInOutEventHandler(int aEventId)
The function EwBspInOutEventHandler is called from the touch screen driver in case of an input event.
Definition: ew_bsp_inout.c:108
ew_bsp_inout.h
void
XRect CoreOutline aOutline void(CoreRoot _this, GraphicsCanvas aCanvas, XRect aClip, XPoint aOffset, XInt32 aOpacity, XBool aBlend) EW_METHOD(HandleEvent
EwBspInOutLedOff
void EwBspInOutLedOff(void)
Switch LED off.
Definition: ew_bsp_inout.c:95
EwBspInOutInitLed
void EwBspInOutInitLed(void)
Configures one LED of the board used for demo applications.
Definition: ew_bsp_inout.c:75
EwBspInOutLedOn
void EwBspInOutLedOn(void)
Switch LED on.
Definition: ew_bsp_inout.c:85
EW_LED
#define EW_LED
Definition: ew_bsp_inout.c:38
ButtonCallback
static TButtonCallback ButtonCallback
Definition: ew_bsp_inout.c:40
ewconfig.h
This file contains general configuration settings for the target system, like memory ranges and displ...
TButtonCallback
void(* TButtonCallback)(int aButtonPresssed)
Definition: ew_bsp_inout.h:63
EwBspInOutInitButton
void EwBspInOutInitButton(TButtonCallback aButtonCallback)
Configures one hardware button of the board used for demo applications.
Definition: ew_bsp_inout.c:50