📄 ctrlout.h
字号:
/******************************************************************************
* 头文件名: ctrlout.h *
******************************************************************************/
# ifndef __CTRLOUT_H__
# define __CTRLOUT_H__
# include "mcubas.h"
/* 指示灯亮灭控制 */
typedef union {
unsigned char byte;
struct {
unsigned char D4 :1;
unsigned char D5 :1;
unsigned char D6 :1;
unsigned char D7 :1;
unsigned char D8 :1;
unsigned char D9 :1;
unsigned char D10 :1;
unsigned char D11 :1;
} sw;
} SwitchOutLED;
extern SwitchOutLED swoLED;
# define LED_D4 swoLED.sw.D4
# define LED_D5 swoLED.sw.D5
# define LED_D6 swoLED.sw.D6
# define LED_D7 swoLED.sw.D7
# define LED_D8 swoLED.sw.D8
# define LED_D9 swoLED.sw.D9
# define LED_D10 swoLED.sw.D10
# define LED_D11 swoLED.sw.D11
# define portOUT_D4() portout_D4(LED_D4)
# define portOUT_D5() portout_D5(LED_D5)
# define portOUT_D6() portout_D6(LED_D6)
# define portOUT_D7() portout_D7(LED_D7)
# define portOUT_D8() portout_D8(LED_D8)
# define portOUT_D9() portout_D9(LED_D9)
# define portOUT_D10() portout_D10(LED_D10)
# define portOUT_D11() portout_D11(LED_D11)
extern unsigned char cgflgD4Flash;
extern unsigned char cgflgD5Flash;
extern unsigned char cgflgD6Flash;
extern unsigned char cgflgD7Flash;
extern unsigned char cgflgD10Flash;
extern unsigned char cgflgD11Flash;
/* 子函数声明 */
void InitCtrlOut (void);
void CtrlClrLed (void);
void CtrlLedOut (void);
void CtrlDataOut (void);
void RecvMsgNormalShow(void);
void RecvMsgFailShow (void);
# endif // __CTRLOUT_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -