SimpleKernel 1.17.0
Loading...
Searching...
No Matches
StateUnInit Struct Reference

UnInit 状态 — 任务尚未初始化 More...

#include <task_fsm.hpp>

Inheritance diagram for StateUnInit:
Inheritance graph
Collaboration diagram for StateUnInit:
Collaboration graph

Public Member Functions

auto on_event (const MsgSchedule &) -> etl::fsm_state_id_t
 
auto on_event_unknown (const etl::imessage &msg) -> etl::fsm_state_id_t
 

Detailed Description

UnInit 状态 — 任务尚未初始化

Definition at line 35 of file task_fsm.hpp.

Member Function Documentation

◆ on_event()

auto StateUnInit::on_event ( const MsgSchedule ) -> etl::fsm_state_id_t
inline

Definition at line 37 of file task_fsm.hpp.

37 {
39 }
constexpr etl::fsm_state_id_t kReady
Definition task_fsm.hpp:15

◆ on_event_unknown()

auto StateUnInit::on_event_unknown ( const etl::imessage &  msg) -> etl::fsm_state_id_t
inline

Definition at line 40 of file task_fsm.hpp.

40 {
41 klog::Warn("TaskFsm: UnInit received unexpected message id={}",
42 static_cast<int>(msg.get_message_id()));
43 return STATE_ID;
44 }
auto Warn(etl::format_string< Args... > fmt, Args &&... args) -> void
以 WARN 级别记录日志
Here is the call graph for this function:

The documentation for this struct was generated from the following file: