cmpprg_1.h
来自「A very good POCSAG Paging Protocol Decod」· C头文件 代码 · 共 63 行
H
63 行
//************************************************************************
//************************************************************************
//
// CMPPRG_1.h for CMPPRG
//
// C declarations for the Continuous Time Programmable Comparator
//
// Rev B, 2002 MAR 30
//
// Copyright (c) 2000 Cypress Microsystems, Inc. All rights reserved.
//
//************************************************************************
//************************************************************************
#include <M8C.h>
#define CMPPRG_1_OFF 0
#define CMPPRG_1_LOWPOWER 1
#define CMPPRG_1_MEDPOWER 2
#define CMPPRG_1_HIGHPOWER 3
#define CMPPRG_1_REF1_000 0xf0
#define CMPPRG_1_REF0_937 0xe0
#define CMPPRG_1_REF0_875 0xd0
#define CMPPRG_1_REF0_812 0xc0
#define CMPPRG_1_REF0_750 0xb0
#define CMPPRG_1_REF0_688 0xa0
#define CMPPRG_1_REF0_625 0x90
#define CMPPRG_1_REF0_562 0x80
#define CMPPRG_1_REF0_500 0x70
#define CMPPRG_1_REF0_437 0x60
#define CMPPRG_1_REF0_375 0x50
#define CMPPRG_1_REF0_312 0x40
#define CMPPRG_1_REF0_250 0x30
#define CMPPRG_1_REF0_188 0x20
#define CMPPRG_1_REF0_125 0x10
#define CMPPRG_1_REF0_062 0x00
#pragma fastcall CMPPRG_1_Start
#pragma fastcall CMPPRG_1_SetPower
#pragma fastcall CMPPRG_1_SetGain
#pragma fastcall CMPPRG_1_Stop
extern void CMPPRG_1_Start(char power);
extern void CMPPRG_1_SetPower(char power);
extern void CMPPRG_1_SetRef(char chout);
extern void CMPPRG_1_Stop(void);
/************************************************
* Hardware Register Definitions
*************************************************/
#pragma ioport CMPPRG_1_COMP_CR0: 0x071
BYTE CMPPRG_1_COMP_CR0;
#pragma ioport CMPPRG_1_COMP_CR1: 0x072
BYTE CMPPRG_1_COMP_CR1;
#pragma ioport CMPPRG_1_COMP_CR2: 0x073
BYTE CMPPRG_1_COMP_CR2;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?