FSM/vscode/FSM_OOP/childtest/parentFSM_state.h

25 lines
619 B
C
Raw Normal View History

#ifndef __PARENT_FSM_STATE_H_
#define __PARENT_FSM_STATE_H_
/* -------------------------------------------------------------------------- */
/* 状态定义 */
/* -------------------------------------------------------------------------- */
/**
* @brief Idle和Count_State必须占据开头和结尾两个位置
*
*/
typedef enum _State
{
Idle, /**< 必须在开头,并且枚举值=0表示空状态 */
A,
B,
C,
Count_State, /**< 必须在结尾,用来统计状态数量 */
} State;
#endif