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