⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dc550_hookswitchmonitor.h

📁 一款经典的数字电话设计资料
💻 H
字号:
/*****************************************************************************/
/*  CONFIDENTIAL                                                             */
/*  Sigpro Copyright 2003, All rights reserved                               */
/*****************************************************************************/
/*  CLIENT:  Telematrix                                                      */
/*  PROJECT: DC550 Digital Centrex Phone                                     */
/*  FILE:    dc550_hookswitchmonitor.h                                       */
/*****************************************************************************/
/*  This is the header file for dc550_hookswitchmonitor.c.                   */
/*****************************************************************************/

#ifndef __DC550_HOOKSWITCHMONITOR_HEADER__
#define __DC550_HOOKSWITCHMONITOR_HEADER__

#include  "dc550_local.h"

/******************************************************************************
 *  FUNCTION PROTOTYPES
 *****************************************************************************/
void hookswitchmonitor_init(void);
void hookswitchmonitor_exec(void);
unsigned int hookswitchmonitor_gethookswitchstate(void);


/******************************************************************************
 *  CONSTANTS
 *****************************************************************************/
// Port definitions for signals used to monitor the hookswitch
#define HOOKSWITCH_DIR                P6DIR
#define HOOKSWITCH_IN                 P6IN
#define HOOKSWITCH_MSK                0x10

/* Number of iterations the phone  must be
 * read as constantly on/off-hook in order
 * to be considered fully debounced.
 */
#define HS_OFF_MAXCNT               10
#define HS_ON_MAXCNT                10

#endif

⌨️ 快捷键说明

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