bt.h
来自「嵌入式LINUX的智能家居系统源码」· C头文件 代码 · 共 33 行
H
33 行
#include <qtimer.h>#include <pthread.h>#include "cmd_config.h"class BT : public QObject{ Q_OBJECTpublic: BT(); ~BT();public slots: void switcher(int);//this will treat different cmds to this module bool setup_connection(); void stop_connection(); void start_BT_reader(); void write_BT(int cmd);//this is not called by cmds and cmd_proxy locally but directly by ker_cmdsignals: void sig_cmd(int cmd);//a way that BT executer can communicate with ker cmd module void sig_cmd_ker(int cmd);public: void emit_sig(int);//this is called by bt_reader thread to emit a cmd signal to the ker_cmd module //when there is a cmd from blue toothpublic: pthread_t th_bt_reader; bool bt_on; };
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?