📄 state_ext.h
字号:
// nbcode "decl" start#ifndef STATE_EXT_H#define STATE_EXT_H#include "scv.h"#include "state.h"// nbcode "decl" end// nbcode "onehot" starttemplate<>class scv_extensions<onehot_t> : public scv_enum_base<onehot_t> {public: SCV_ENUM_CTOR(onehot_t) { SCV_ENUM(STATE_0); SCV_ENUM(STATE_1); SCV_ENUM(STATE_2); SCV_ENUM(STATE_3); SCV_ENUM(STATE_4); SCV_ENUM(STATE_5); SCV_ENUM(STATE_6); }};// nbcode "onehot" end// nbcode "state" starttemplate<>class scv_extensions<state_t> : public scv_extensions_base<state_t> {public: scv_extensions<onehot_t > state; scv_extensions<int > delay; scv_extensions<unsigned > data; SCV_EXTENSIONS_CTOR(state_t) { //must be in order SCV_FIELD(state); SCV_FIELD(delay); SCV_FIELD(data); }};// nbcode "state" end#endif //STATE_EXT_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -