FSM/vscode/FSM_OOP/childtest/childFSM_state.h

23 lines
591 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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