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

📄 pga_out.h

📁 用VC编辑的一个MD5算法
💻 H
字号:
//************************************************************************
//************************************************************************
//
// PGA_OUT.h for PGA_A
//
//  C declarations for the Continuous Time Programmable Gain Amplifier
// Copyright (c) 2000-2002 Cypress Microsystems, Inc. All rights reserved.
// Rev B, 2002 Mar 30
// UserModuleID "PGA_A" 
//
//************************************************************************
//************************************************************************
#include <M8C.h>

#define PGA_OUT_OFF         0
#define PGA_OUT_LOWPOWER    1
#define PGA_OUT_MEDPOWER    2
#define PGA_OUT_HIGHPOWER   3

#define PGA_OUT_G16_0    0x08
#define PGA_OUT_G8_00    0x18
#define PGA_OUT_G5_33    0x28
#define PGA_OUT_G4_00    0x38
#define PGA_OUT_G3_20    0x48
#define PGA_OUT_G2_67    0x58
#define PGA_OUT_G2_27    0x68
#define PGA_OUT_G2_00    0x78
#define PGA_OUT_G1_78    0x88
#define PGA_OUT_G1_60    0x98
#define PGA_OUT_G1_46    0xA8
#define PGA_OUT_G1_33    0xB8
#define PGA_OUT_G1_23    0xC8
#define PGA_OUT_G1_14    0xD8
#define PGA_OUT_G1_06    0xE8
#define PGA_OUT_G1_00    0xF8
#define PGA_OUT_G0_93    0xE0
#define PGA_OUT_G0_87    0xD0
#define PGA_OUT_G0_81    0xC0
#define PGA_OUT_G0_75    0xB0
#define PGA_OUT_G0_68    0xA0
#define PGA_OUT_G0_62    0x90
#define PGA_OUT_G0_56    0x80
#define PGA_OUT_G0_50    0x70
#define PGA_OUT_G0_43    0x60
#define PGA_OUT_G0_37    0x50
#define PGA_OUT_G0_31    0x40
#define PGA_OUT_G0_25    0x30
#define PGA_OUT_G0_18    0x20
#define PGA_OUT_G0_12    0x10
#define PGA_OUT_G0_06    0x00



#pragma fastcall PGA_OUT_Start
#pragma fastcall PGA_OUT_SetPower

#pragma fastcall PGA_OUT_SetGain

#pragma fastcall PGA_OUT_Stop


extern void PGA_OUT_Start(char power);
extern void PGA_OUT_SetPower(char power);

extern void PGA_OUT_SetGain(char chout);

extern void PGA_OUT_Stop(void);


/************************************************
*  Hardware Register Definitions
*************************************************/
#pragma ioport  PGA_OUT_GAIN_CR0:   0x07d
BYTE            PGA_OUT_GAIN_CR0;
#pragma ioport  PGA_OUT_GAIN_CR1:   0x07e
BYTE            PGA_OUT_GAIN_CR1;
#pragma ioport  PGA_OUT_GAIN_CR2:   0x07f
BYTE            PGA_OUT_GAIN_CR2;

⌨️ 快捷键说明

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