pda_cmd.cpp

来自「嵌入式LINUX的智能家居系统源码」· C++ 代码 · 共 34 行

CPP
34
字号
#include"pda_cmd.h"#include<stdio.h>void pda_cmd::pda_cmd_proxy(int cmd){	if(cmd & TO(PDA_CMD))		//if this cmd is for PDA	{				if(cmd & ui)			//if this cmd is for ui			emit sig_cmd_local_ui(cmd);		else				{			if((cmd & ~(TO(PDA_CMD)))& TO(0xf))	//if this cmd is for anything else				emit sig_cmd_ker(cmd);			//if this cmd is for BT			emit sig_cmd_BT(cmd);		}	}	else						//if this cmd is not 	{		if(cmd & TO(0xf))			emit sig_cmd_ker(cmd);	}}pda_cmd::pda_cmd(){	KER_connected = false;}pda_cmd::~pda_cmd(){}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?