📄 pga_1.h
字号:
//*****************************************************************************
//*****************************************************************************
// FILENAME: PGA_1.h ( PGA )
// Version: 3.2, Updated on 2005/10/03 at 13:04:43
// Generated by PSoC Designer ver 4.2 b1013 : 02 September, 2004
//
// DESCRIPTION: PGA User Module C Language interface file for the
// 22/24/27/29xxx PSoC family of devices.
//-----------------------------------------------------------------------------
// Copyright (c) Cypress MicroSystems 2001-2004. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************
#include <M8C.h>
//-------------------------------------------------
// Constants for PGA_1 API's.
//-------------------------------------------------
#define PGA_1_OFF 0
#define PGA_1_LOWPOWER 1
#define PGA_1_MEDPOWER 2
#define PGA_1_HIGHPOWER 3
#define PGA_1_G48_0 0x0C
#define PGA_1_G24_0 0x1C
#define PGA_1_G16_0 0x08
#define PGA_1_G8_00 0x18
#define PGA_1_G5_33 0x28
#define PGA_1_G4_00 0x38
#define PGA_1_G3_20 0x48
#define PGA_1_G2_67 0x58
#define PGA_1_G2_27 0x68
#define PGA_1_G2_00 0x78
#define PGA_1_G1_78 0x88
#define PGA_1_G1_60 0x98
#define PGA_1_G1_46 0xA8
#define PGA_1_G1_33 0xB8
#define PGA_1_G1_23 0xC8
#define PGA_1_G1_14 0xD8
#define PGA_1_G1_06 0xE8
#define PGA_1_G1_00 0xF8
#define PGA_1_G0_93 0xE0
#define PGA_1_G0_87 0xD0
#define PGA_1_G0_81 0xC0
#define PGA_1_G0_75 0xB0
#define PGA_1_G0_68 0xA0
#define PGA_1_G0_62 0x90
#define PGA_1_G0_56 0x80
#define PGA_1_G0_50 0x70
#define PGA_1_G0_43 0x60
#define PGA_1_G0_37 0x50
#define PGA_1_G0_31 0x40
#define PGA_1_G0_25 0x30
#define PGA_1_G0_18 0x20
#define PGA_1_G0_12 0x10
#define PGA_1_G0_06 0x00
#pragma fastcall16 PGA_1_Start
#pragma fastcall16 PGA_1_SetPower
#pragma fastcall16 PGA_1_SetGain
#pragma fastcall16 PGA_1_Stop
//-------------------------------------------------
// Prototypes of the PGA_1 API.
//-------------------------------------------------
extern void PGA_1_Start(BYTE bPowerSetting); // Proxy class 2
extern void PGA_1_SetPower(BYTE bPowerSetting); // Proxy class 2
extern void PGA_1_SetGain(BYTE bGainSetting); // Proxy class 2
extern void PGA_1_Stop(void); // Proxy class 1
//-------------------------------------------------
// Register Addresses for PGA_1
//-------------------------------------------------
#pragma ioport PGA_1_GAIN_CR0: 0x075
BYTE PGA_1_GAIN_CR0;
#pragma ioport PGA_1_GAIN_CR1: 0x076
BYTE PGA_1_GAIN_CR1;
#pragma ioport PGA_1_GAIN_CR2: 0x077
BYTE PGA_1_GAIN_CR2;
#pragma ioport PGA_1_GAIN_CR3: 0x074
BYTE PGA_1_GAIN_CR3;
// end of file PGA_1.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -