WebRadioApp  0.1
_CoreTimer.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 GmbH
6 * written by Paul Banach and Manfred Schweyer
7 *
8 ********************************************************************************
9 *
10 * This file was generated automatically by Embedded Wizard Studio.
11 *
12 * Please do not make any modifications of this file! The modifications are lost
13 * when the file is generated again by Embedded Wizard Studio!
14 *
15 * The template of this heading text can be found in the file 'head.ewt' in the
16 * directory 'Platforms' of your Embedded Wizard installation directory. If you
17 * wish to adapt this text, please copy the template file 'head.ewt' into your
18 * project directory and edit the copy only. Please avoid any modifications of
19 * the original template file!
20 *
21 * Version : 10.00
22 * Profile : STM32H747
23 * Platform : STM.STM32.RGB565
24 *
25 *******************************************************************************/
26 
27 #ifndef _CoreTimer_H
28 #define _CoreTimer_H
29 
30 #ifdef __cplusplus
31  extern "C"
32  {
33 #endif
34 
35 #include "ewrte.h"
36 #if EW_RTE_VERSION != 0x000A0000
37  #error Wrong version of Embedded Wizard Runtime Environment.
38 #endif
39 
40 #include "ewgfx.h"
41 #if EW_GFX_VERSION != 0x000A0000
42  #error Wrong version of Embedded Wizard Graphics Engine.
43 #endif
44 
45 /* Forward declaration of the class Core::Timer */
46 #ifndef _CoreTimer_
47  EW_DECLARE_CLASS( CoreTimer )
48 #define _CoreTimer_
49 #endif
50 
51 
52 /* The class Core::Timer provides a mechanism to trigger periodical operations in
53  predetermined intervals. The intervals are defined by the properties @Begin und
54  @Period. After an interval is elapsed, the timer sends a signal to the method
55  stored in the property OnTrigger. Optionally, the method @Trigger() can be overridden
56  and implemented in classes derived from Core::Timer.
57  The timer will always start with the interval specified in @Begin. After the
58  begin interval is elapsed, the timer can continue running with the interval defined
59  in @Period.
60  Whether the timer is running or not is controlled by its property @Enabled. It
61  can be used to start and stop the timer. The timer can also be controlled by
62  sending signals to its @StartTimer and @StopTimer slot methods. */
63 EW_DEFINE_FIELDS( CoreTimer, XObject )
64  EW_PROPERTY( OnTrigger, XSlot )
65  EW_VARIABLE( timer, XHandle )
66  EW_VARIABLE( Time, XUInt32 )
67  EW_PROPERTY( Period, XInt32 )
68  EW_PROPERTY( Begin, XInt32 )
69  EW_PROPERTY( Enabled, XBool )
70 EW_END_OF_FIELDS( CoreTimer )
71 
72 /* Virtual Method Table (VMT) for the class : 'Core::Timer' */
73 EW_DEFINE_METHODS( CoreTimer, XObject )
74  EW_METHOD( Trigger, void )( CoreTimer _this )
75 EW_END_OF_METHODS( CoreTimer )
76 
77 /* 'C' function for method : 'Core::Timer.Done()' */
78 void CoreTimer_Done( CoreTimer _this );
79 
80 /* 'C' function for method : 'Core::Timer.restart()' */
81 void CoreTimer_restart( CoreTimer _this, XInt32 aBegin, XInt32 aPeriod );
82 
83 /* 'C' function for method : 'Core::Timer.OnSetPeriod()' */
84 void CoreTimer_OnSetPeriod( CoreTimer _this, XInt32 value );
85 
86 /* 'C' function for method : 'Core::Timer.OnSetBegin()' */
87 void CoreTimer_OnSetBegin( CoreTimer _this, XInt32 value );
88 
89 /* 'C' function for method : 'Core::Timer.OnSetEnabled()' */
90 void CoreTimer_OnSetEnabled( CoreTimer _this, XBool value );
91 
92 /* The method 'GetCurrentTime()' returns the current time expressed in milliseconds.
93  The value can be used e.g. to calculate the time span elapsed since the timer
94  was expired (see @Time). */
95 XUInt32 CoreTimer_GetCurrentTime( CoreTimer _this );
96 
97 /* The method Trigger() will be invoked when the timer is expired (when the interval
98  defined in @Begin or @Period is elapsed). The method can be overridden and implemented
99  in derived classes. The default implementation of this method sends a signal
100  to the slot method stored in the @OnTrigger property. */
101 void CoreTimer_Trigger( CoreTimer _this );
102 
103 /* Wrapper function for the virtual method : 'Core::Timer.Trigger()' */
104 void CoreTimer__Trigger( void* _this );
105 
106 /* The following define announces the presence of the method Core::Timer.Trigger(). */
107 #define _CoreTimer__Trigger_
108 
109 #ifdef __cplusplus
110  }
111 #endif
112 
113 #endif /* _CoreTimer_H */
114 
115 /* Embedded Wizard */
CoreTimer_OnSetPeriod
void CoreTimer_OnSetPeriod(CoreTimer _this, XInt32 value)
Definition: Core.c:7214
ewrte.h
XHandle
unsigned long XHandle
Definition: ewrte.h:291
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
XSlot
Definition: ewrte.h:2114
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
XInt32
signed long XInt32
Definition: ewrte.h:1586
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
CoreTimer_Done
void CoreTimer_Done(CoreTimer _this)
Definition: Core.c:7169
XBool
char XBool
Definition: ewrte.h:1592
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
CoreTimer_restart
void CoreTimer_restart(CoreTimer _this, XInt32 aBegin, XInt32 aPeriod)
Definition: Core.c:7180
CoreTimer_OnSetEnabled
void CoreTimer_OnSetEnabled(CoreTimer _this, XBool value)
Definition: Core.c:7244
CoreTimer__Trigger
void CoreTimer__Trigger(void *_this)
Definition: Core.c:7289
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
XUInt32
unsigned long XUInt32
Definition: ewrte.h:1590
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
CoreTimer_Trigger
void CoreTimer_Trigger(CoreTimer _this)
Definition: Core.c:7278
EW_METHOD
EW_METHOD(Trigger, void)(CoreTimer _this) void CoreTimer_Done(CoreTimer _this)
CoreTimer_OnSetBegin
void CoreTimer_OnSetBegin(CoreTimer _this, XInt32 value)
Definition: Core.c:7229
CoreTimer_GetCurrentTime
XUInt32 CoreTimer_GetCurrentTime(CoreTimer _this)
Definition: Core.c:7262
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451