Labor04
FsmTape.h
Go to the documentation of this file.
1 
11 #ifndef __FSMTAPE_H_
12 #define __FSMTAPE_H_
13 
14 #include "ES2_V4_app.h"
15 
16 
21 typedef enum fsmTapeevents
22 {
23  evBegin = 0, // Button T5 is pressed
24  evInOut, // Button T6 is pressed
25  evEnd, // Button T7 is pressed
34 typedef enum fsmTapestates
35 {
36  sTapeOut = 0,
53 _Bool bFsmTapeInitialize(void);
54 
64 _Bool bFsmTapeDispatchEvent (int32_t event);
65 
66 
72 int32_t s32FsmTapeGetState(void);
73 
82 _Bool bFsmTapeIsStateChanged(void);
83 
84 
91 const char* pcFsmTapeGetStateName(void);
92 
93 /*
94 _Bool bGuard_tapein_andnot_atend(void);
95 _Bool bGuard_tapein_andnot_atbegin(void);
96 */
97 
98 void vEntry_sTapeBegin(void);
99 void vEntry_sTapeBetween(void);
100 void vEntry_sTapeEnd(void);
101 void vEntry_sTapeOut(void);
102 
103 
106 #endif /* __FSMTAPE_H_ */
GLCD_Param_2_uint32_t_char_p::param1
uint32_t param1
Definition: displaytask.h:67
bFsmframeworkDispatchEvent
_Bool bFsmframeworkDispatchEvent(psStateMachine_t psStateMachine, int32_t s32Event)
Dispatch Event.
Definition: FsmFramework.c:47
GLCD_Command::eDisplayCommand
enum DisplayCommand eDisplayCommand
Definition: displaytask.h:99
fsmTapestates
fsmTapestates
Enumeration holds all defined states for video recorder state machine.
Definition: FsmTape.h:35
ES2_V4_app.h
global header file for project
asEventsFsmTapeEnd
sStateTransitions_t asEventsFsmTapeEnd[]
Definition: FsmTape.c:28
stateMachine
All nesseccary data for a state machine.
Definition: FsmFramework.h:145
vEntry_sTapeEnd
void vEntry_sTapeEnd(void)
entry for sTapeEnd
Definition: FsmTape.c:187
GLCD_Param_2_uint32_t_char_p::param2
char * param2
Definition: displaytask.h:68
evBegintape
@ evBegintape
Definition: FsmVCR.h:28
asFsmTapeStates
sStateTable_t asFsmTapeStates[]
Definition: FsmTape.c:40
vEntry_sTapeEnd
void vEntry_sTapeEnd(void)
entry for sTapeEnd
Definition: FsmTape.c:187
s32FsmframeworkGetState
int32_t s32FsmframeworkGetState(psStateMachine_t psStateMachine)
Get the actual state of a statemachine.
Definition: FsmFramework.c:134
bFsmTapeInitialize
_Bool bFsmTapeInitialize(void)
Wrapper function to statemachine_init().
Definition: FsmTape.c:55
evBegin
@ evBegin
Definition: FsmTape.h:23
bFsmTapeIsStateChanged
_Bool bFsmTapeIsStateChanged(void)
Indicates if a state changed happend.
Definition: FsmTape.c:81
pdPASS
#define pdPASS
Definition: projdefs.h:48
sTapeBegin
@ sTapeBegin
Definition: FsmTape.h:37
TickType_t
uint32_t TickType_t
Definition: portmacro.h:64
STATE_LAST_TAPE
@ STATE_LAST_TAPE
Definition: FsmTape.h:40
evTapeout
@ evTapeout
Definition: FsmVCR.h:30
pcFsmTapeGetStateName
const char * pcFsmTapeGetStateName()
get FSM state name
Definition: FsmTape.c:107
s32FsmTapeGetState
int32_t s32FsmTapeGetState(void)
Returns the current state of the fsm.
Definition: FsmTape.c:94
FAULT_STATE
@ FAULT_STATE
Definition: FsmFramework.h:76
GLCD_Command::uparameters
union GLCD_Command::@0 uparameters
fsmTapeevents
fsmTapeevents
Enumeration holds all possible events for this state machine.
Definition: FsmTape.h:22
vEntry_sTapeOut
void vEntry_sTapeOut(void)
entry for sTapeOut
Definition: FsmTape.c:125
GLCD_Command
Definition: displaytask.h:98
sTapeBetween
@ sTapeBetween
Definition: FsmTape.h:39
evEndtape
@ evEndtape
Definition: FsmVCR.h:29
sTapeOut
@ sTapeOut
Definition: FsmTape.h:36
GLCD_Font_16x24
GLCD_FONT GLCD_Font_16x24
xQueueVCR
void * xQueueVCR
Definition: Globals.c:13
evEnd
@ evEnd
Definition: FsmTape.h:25
GLCD_Param_2_uint32_t_char_p::param0
uint32_t param0
Definition: displaytask.h:66
s32FsmTapeGetState
int32_t s32FsmTapeGetState()
get FSM state
Definition: FsmTape.c:94
asEventsFsmTapeBetween
sStateTransitions_t asEventsFsmTapeBetween[]
Definition: FsmTape.c:34
pcFsmTapestates_names
static const char * pcFsmTapestates_names[]
Definition: FsmTape.c:14
bFsmTapeDispatchEvent
_Bool bFsmTapeDispatchEvent(int32_t s32Event)
dispatch event Tape FSM
Definition: FsmTape.c:68
sFsmTape
sStateMachine_t sFsmTape
Definition: FsmTape.c:12
evInOut
@ evInOut
Definition: FsmTape.h:24
bFsmTapeInitialize
_Bool bFsmTapeInitialize(void)
init Tape FSM
Definition: FsmTape.c:55
stateTableEvents
State table holds states and corresponding event tables.
Definition: FsmFramework.h:128
GLCD_Command::sparam_2_uint32_t_const_char_p
struct GLCD_Param_2_uint32_t_char_p sparam_2_uint32_t_const_char_p
Definition: displaytask.h:108
vEntry_sTapeBegin
void vEntry_sTapeBegin(void)
entry for sTapeBegin
Definition: FsmTape.c:156
vEntry_sTapeBetween
void vEntry_sTapeBetween(void)
entry for sTapeBetween
Definition: FsmTape.c:218
pcFsmTapeGetStateName
const char * pcFsmTapeGetStateName(void)
Get the name of the current state.
Definition: FsmTape.c:107
asEventsFsmTapeBegin
sStateTransitions_t asEventsFsmTapeBegin[]
Definition: FsmTape.c:22
sTapeEnd
@ sTapeEnd
Definition: FsmTape.h:38
bFsmTapeIsStateChanged
_Bool bFsmTapeIsStateChanged()
check if state changed
Definition: FsmTape.c:81
stateTransition
Event table holds events that can generate a state transition.
Definition: FsmFramework.h:111
EV_LAST_TAPE
@ EV_LAST_TAPE
Definition: FsmTape.h:26
xQueueDisplay
void * xQueueDisplay
Definition: Globals.c:15
eStatesTape_t
enum fsmTapestates eStatesTape_t
Enumeration holds all defined states for video recorder state machine.
vEntry_sTapeBegin
void vEntry_sTapeBegin(void)
entry for sTapeBegin
Definition: FsmTape.c:156
vEntry_sTapeOut
void vEntry_sTapeOut(void)
entry for sTapeOut
Definition: FsmTape.c:125
cmd_GLCD_DrawString
@ cmd_GLCD_DrawString
Definition: displaytask.h:20
bFsmTapeDispatchEvent
_Bool bFsmTapeDispatchEvent(int32_t event)
Sends an event to the state machine.
Definition: FsmTape.c:68
bFsmframeworkIsStateChanged
_Bool bFsmframeworkIsStateChanged(psStateMachine_t psStateMachine)
Get the statechanged flag. 1 if last event changed the state, 0 if last event did not changed the sta...
Definition: FsmFramework.c:139
eEventsTape_t
enum fsmTapeevents eEventsTape_t
Enumeration holds all possible events for this state machine.
xQueueSend
#define xQueueSend(xQueue, pvItemToQueue, xTicksToWait)
Definition: queue.h:478
vEntry_sTapeBetween
void vEntry_sTapeBetween(void)
entry for sTapeBetween
Definition: FsmTape.c:218
bFsmframeworkInitialize
_Bool bFsmframeworkInitialize(psStateMachine_t psStateMachine, psStateTable_t psStateTable, int32_t s32StartState, uint32_t u32StateCount, uint32_t u32EventCount, vCallback_t vInitCallback)
Initialization of the State Machine.
Definition: FsmFramework.c:6
asEventsFsmTapeOut
sStateTransitions_t asEventsFsmTapeOut[]
Definition: FsmTape.c:16