25 lines
619 B
C
25 lines
619 B
C
|
#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
|