📄 dc550_controller.h
字号:
/*****************************************************************************/
/* CONFIDENTIAL */
/* Sigpro Copyright 2003, All rights reserved */
/*****************************************************************************/
/* CLIENT: Telematrix */
/* PROJECT: DC550 Digital Centrex Phone */
/* FILE: dc550_controller.h */
/*****************************************************************************/
/* This is the header file for dc550_controller.c. */
/*****************************************************************************/
#ifndef __DC550_CONTROLLER_HEADER__
#define __DC550_CONTROLLER_HEADER__
#include "dc550_local.h"
/******************************************************************************
* FUNCTION PROTOTYPES
*****************************************************************************/
void controller_init(void);
void controller_exec(void);
void controller_report_keypress(unsigned int key, unsigned int updown);
void controller_report_modemcommand(DC550MDCMessage command);
unsigned int controller_gethookswitchstate(void);
/******************************************************************************
* CONSTANTS
*****************************************************************************/
#define CONTROLLER_DURATION_PERIODIC 800 // 100 milliseconds
#endif
#ifndef __DC550_CONTROLLER_EXTERN__
#define __DC550_CONTROLLER_EXTERN__
/******************************************************************************
* GLOBAL VARIABLES
*****************************************************************************/
// Externally accessible variables; these variables can also be modified
// through the interface functions defined above
extern unsigned int controller_keypress_keys[4];
extern unsigned int controller_keypress_states[4];
extern unsigned int controller_keypress_index;
extern DC550MDCMessage controller_modemreceive_commands[8];
extern DC550CommandIndex controller_modemreceive_index;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -