VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
state_machine.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
vlcb/common/node.h
"
4
#include "
vlcb/module.h
"
5
#include <
time.h
>
6
7
typedef
enum
{
8
MSE_INIT
,
9
MSE_UI_REQ_TO_SETUP
,
10
MSE_UI_REQ_TO_PREV
,
11
MSE_MODE_REQ_TO_SETUP
,
12
MSE_MODE_REQ_TO_NORMAL
,
13
MSE_MODE_MSG_FOR_ANOTHER_MODULE
,
14
MSE_NNRSM_MSG
,
15
MSE_SNN_MSG
,
16
MSE_ABORT_SETUP
,
17
MSE_POLL
,
18
}
ModuleStateEventSignal
;
19
20
typedef
struct
{
21
VlcbNodeNumber
nodeAddr
;
22
}
ModuleStateEventSnnMsgData
;
23
24
typedef
union
{
25
ModuleStateEventSnnMsgData
snnMsg
;
26
}
ModuleStateEventData
;
27
28
typedef
struct
{
29
ModuleStateEventSignal
sig
;
30
ModuleStateEventData
data
;
31
}
ModuleStateEvent
;
32
33
void
state_Dispatch
(
VlcbModule
*
const
self,
const
ModuleStateEvent
e,
34
clock_t now);
module.h
node.h
VlcbNodeNumber
uint16_t VlcbNodeNumber
Definition
node.h:8
state_Dispatch
void state_Dispatch(VlcbModule *const self, const ModuleStateEvent e, clock_t now)
Definition
state_machine.c:100
ModuleStateEventSignal
ModuleStateEventSignal
Definition
state_machine.h:7
MSE_NNRSM_MSG
@ MSE_NNRSM_MSG
Definition
state_machine.h:14
MSE_POLL
@ MSE_POLL
Definition
state_machine.h:17
MSE_MODE_REQ_TO_NORMAL
@ MSE_MODE_REQ_TO_NORMAL
Definition
state_machine.h:12
MSE_ABORT_SETUP
@ MSE_ABORT_SETUP
Definition
state_machine.h:16
MSE_INIT
@ MSE_INIT
Definition
state_machine.h:8
MSE_MODE_MSG_FOR_ANOTHER_MODULE
@ MSE_MODE_MSG_FOR_ANOTHER_MODULE
Definition
state_machine.h:13
MSE_UI_REQ_TO_SETUP
@ MSE_UI_REQ_TO_SETUP
Definition
state_machine.h:9
MSE_SNN_MSG
@ MSE_SNN_MSG
Definition
state_machine.h:15
MSE_UI_REQ_TO_PREV
@ MSE_UI_REQ_TO_PREV
Definition
state_machine.h:10
MSE_MODE_REQ_TO_SETUP
@ MSE_MODE_REQ_TO_SETUP
Definition
state_machine.h:11
ModuleStateEventSnnMsgData
Definition
state_machine.h:20
ModuleStateEventSnnMsgData::nodeAddr
VlcbNodeNumber nodeAddr
Definition
state_machine.h:21
ModuleStateEvent
Definition
state_machine.h:28
ModuleStateEvent::sig
ModuleStateEventSignal sig
Definition
state_machine.h:29
ModuleStateEvent::data
ModuleStateEventData data
Definition
state_machine.h:30
VlcbModule
Definition
module/inc/vlcb/module.h:58
time.h
ModuleStateEventData
Definition
state_machine.h:24
ModuleStateEventData::snnMsg
ModuleStateEventSnnMsgData snnMsg
Definition
state_machine.h:25
module
src
state_machine.h
Generated on Mon Nov 4 2024 09:13:33 for VLCB SDK by
1.12.0