📄 alarm._c
字号:
///////////////////////////////////////////////////////////////
/**************************************************************
公司名称: 扬州恒博科技
模块名 : 点动型STQ执行机构主控程序
创建人 : 章俭文
日期 : 2008/08/19
功能描述: 完成对本地旋钮和远程开关量的控制功能
其它说明: 编译环境为ICCAVR V6.31A
版本 : V1.0
**************************************************************/
///////////////////////////////////////////////////////////////
#define ALARM_GLOBAL
#include "alarm.h"
static void Flash(void);
void Alarm() //执行器状态的LED告警指示
{
if((MotorFlag == CLOSE)||(MotorFlag == OPEN)) //闪烁
{
Flash();
}
}
static void Flash()
{
static uchar last_flash = 0;
if(last_flash)
{
if(GetLocal())
{
SetRemoteLed();
}
if(GetRemote())
{
SetLocalLed();
}
last_flash = 0;
}
else
{
if(GetLocal())
{
ClrRemoteLed();
}
if(GetRemote())
{
ClrLocalLed();
}
last_flash = 1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -