📄 ioctrl.h
字号:
#ifndef _ioctrl_h
#define _ioctrl_h
#include "dsctypes.h"
typedef enum LEDControlTag
{
LED1 = (1<<8),
LED2 = (1<<9),
LED3 = (1<<10),
LED4 = (1<<11),
LED5 = (1<<12),
LED6 = (1<<13)
} LEDControl;
void SetLEDState(LEDControl LEDsOn, LEDControl LEDsOff);
typedef enum KeyControlTag
{
KEY0 = (1<<8),
KEY1 = (1<<9),
KEY2 = (1<<10),
KEY3 = (1<<11),
KEY4 = (1<<12),
KEY5 = (1<<13),
KEY6 = (1<<14),
KEY7 = (1<<15)
} KeyControlTag;
UINT32 GetKeyState(UINT32 Keys);
UINT32 ReadLatch(UINT32 Keys);
void WaitForKeyChange(UINT32 Keys);
#define SWITCH_TV_NORM KEY6
#define SWITCH_PLAYBACK KEY7
/* buttons in viewfinder */
#define BUTTON_SHUTTER_RELEASE KEY4
#define BUTTON_WHITEBALANCE KEY5
/* buttons in playback */
#define OPTION_UP KEY0
#define OPTION_DOWN KEY1
#define OPTION_SELECT KEY2
#define INPUT_PCD1 (1<<6)
#define INPUT_PCD2 (1<<7)
typedef enum GPInputputControlTag
{
GP_IN1 = (1<<1),
GP_IN2 = (1<<2),
GP_IN3 = (1<<3),
GP_IN4 = (1<<4),
GP_IN5 = (1<<5)
} GPInputControl;
UINT32 GetGPInput(UINT32 GPInput);
typedef enum GPOutputControlTag
{
GP_OUT0 = (1<<4),
GP_OUT1 = (1<<5),
GP_OUT2 = (1<<6),
GP_OUT3 = (1<<7)
} GPOutputControl;
void SetGPOutput(GPOutputControl GPOutOn, GPOutputControl GPOutOff);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -