▼ FSM_OOP | |
▼ baseFSM | |
FSM.c | |
FSM_private.h | 状态机框架的私有变量,只能在状态机框架内使用。 |
FSM_protected.h | 状态机框架的protected函数和变量,在继承的子类中可使用,在外界不可使用 |
FSM_public.h | |
▼ childtest | |
childFSM.h | |
childFSM_private.h | |
parentFSM.h | |
▼ keytest | |
keyFSM.h | |
keyFSM_private.h | |
▼ template | |
templateFSM.c | 重新实现几个必须实现的函数,并赋值到父类指针里 |
templateFSM.h | 对外暴露接口,外部可以设置状态机的信号 |
templateFSM_private.h | 用来声明状态、状态函数等。这个文件只能被templateFSM.c引用一次! |