?? ioctr_m04_c2.h
字號:
/****************************************************************************************************/
/* $Header :
/* AUTHOR : TC PUI
/* FILE NAME: IOCTR.H
/* PURPOSE : I/O HEADER
/* MODEL : 2004 CIS 2-CH AMP
/* Copyright (c) 2004 Sony Corporation All Rights Reserved
/****************************************************************************************************/
#ifndef _IOCTR_H
#define _IOCTR_H
#ifdef _IOCTR_C
#define IOCTR_EXT
#else
#define IOCTR_EXT extern
#endif
/****************************************************************************************************/
/* global function prototype
/****************************************************************************************************/
IOCTR_EXT void PotInitialize(void);
IOCTR_EXT void IopControl(void);
IOCTR_EXT void IopControlTest(void);
/****************************************************************************************************/
/* global define value
/****************************************************************************************************/
#define P0_EEPDAT 0x04
#define P0_EEP_DFLT 0x7B
#define P_STANDBY_LED P_LED0
#define P_OPERATION_LED P_LED1
#define P_PROTECT_LED P_LED2
#define P_SEL_12V_TRIG P_AUTOPOW_SEL0
#define P_SEL_AUDIO_SENSE P_AUTOPOW_SEL1
#define P_SEL_IR_IN P_AUTOPOW_SEL2
#define P_FREE01 PDR4.BIT.B6 /* < 01 > O */
#define P_FLASH1 PDR4.BIT.B7 /* < 02 > I */ /* MOD2 */
#define P_ADKEY0 PDR5.BIT.B0 /* < 03 > I */ /* AD */
#define P_ADKEY1 PDR5.BIT.B1 /* < 04 > I */ /* AD */
#define P_VOL_AD_L PDR5.BIT.B2 /* < 05 > I */ /* AD */
#define P_VOL_AD_R PDR5.BIT.B3 /* < 06 > I */ /* AD */
#define P_FREE07 PDR5.BIT.B4 /* < 07 > O */
#define P_FREE08 PDR5.BIT.B5 /* < 08 > O */
#define P_FREE09 PDR5.BIT.B6 /* < 09 > O */
#define P_FREE10 PDR5.BIT.B7 /* < 10 > O */
#define P_SIRCS PDR6.BIT.B0 /* < 14 > I */ /* INPUT-ONLY PORT */
#define P_AU_SENSEOFF PDR6.BIT.B1 /* < 15 > I */ /* INPUT-ONLY PORT */
#define P_STOP PDR6.BIT.B2 /* < 16 > I */ /* INPUT-ONLY PORT */
#define P_FREE17 PDR6.BIT.B3 /* < 17 > I */ /* INPUT-ONLY PORT */
#define P_FREE18 PDR6.BIT.B4 /* < 18 > I */ /* INPUT-ONLY PORT */
#define P_PROTCT PDR2.BIT.B7 /* < 25 > I */
#define P_FREE26 PDR2.BIT.B6 /* < 26 > O */
#define P_FREE27 PDR2.BIT.B5 /* < 27 > O */
#define P_FREE28 PDR2.BIT.B4 /* < 28 > O */
#define P_FLASH2 PDR2.BIT.B3 /* < 29 > I */ /* P29 */
#define P_FLASH3 PDR2.BIT.B2 /* < 30 > I */ /* PPG02 */
#define P_VOL_STB PDR2.BIT.B1 /* < 31 > O */
#define P_FREE32 PDR2.BIT.B0 /* < 32 > O */
#define P_AUTOPOW_SEL0 PDR1.BIT.B7 /* < 33 > I */
#define P_AUTOPOW_SEL1 PDR1.BIT.B6 /* < 34 > I */
#define P_AUTOPOW_SEL2 PDR1.BIT.B5 /* < 35 > I */
#define P_FREE36 PDR1.BIT.B4 /* < 36 > O */
#define P_LED2 PDR1.BIT.B3 /* < 37 > O */
#define P_LED1 PDR1.BIT.B2 /* < 38 > O */
#define P_LED0 PDR1.BIT.B1 /* < 39 > O */
#define P_FLASH4 PDR1.BIT.B0 /* < 40 > O */
#define P_12V_TRIG_IN PDR0.BIT.B7 /* < 41 > I */
#define P_12V_TRIG_OUT PDR0.BIT.B6 /* < 42 > O */
#define P_POWRLY PDR0.BIT.B5 /* < 43 > O */
#define P_SPK_RELAY PDR0.BIT.B4 /* < 44 > O */
#define P_FREE45 PDR0.BIT.B3 /* < 45 > O */
#define P_SDA PDR0.BIT.B2 /* < 46 > I/O */
#define P_SCL PDR0.BIT.B1 /* < 47 > O */
#define P_FREE48 PDR0.BIT.B0 /* < 48 > O */
#define P_ID0 PDR3.BIT.B0 /* < 50 > I */
#define P_EVLCLK PDR3.BIT.B1 /* < 51 > O */
#define P_EVLDAT PDR3.BIT.B2 /* < 52 > O */
#define P_SIRCS_OUT PDR3.BIT.B3 /* < 53 > O */
#define P_ID1 PDR3.BIT.B4 /* < 54 > I */
#define P_ID3 PDR3.BIT.B5 /* < 55 > I */
#define P_ID2 PDR3.BIT.B6 /* < 57 > I */
#define P_CARRIER PDR3.BIT.B7 /* < 58 > O */
#define P_ID4 PDR4.BIT.B0 /* < 59 > I */
#define P_FLASH5 PDR4.BIT.B1 /* < 60 > I */ /* SCK2 */
#define P_FLASH6 PDR4.BIT.B2 /* < 61 > O */ /* SOT2 */
#define P_FLASH7 PDR4.BIT.B3 /* < 62 > I */ /* SIN2 */
#define P_FREE63 PDR4.BIT.B4 /* < 63 > O */
#define P_FREE64 PDR4.BIT.B5 /* < 64 > O */
#define F_STDBYLED Exp.Bit.D02 /* STANDBY LED flag */
#define F_OPERTLED Exp.Bit.D01 /* OPERATION LED flag */
#define F_PROTRLED Exp.Bit.D00 /* PROTECTOR LED flag */
typedef union {
unsigned char Byte;
struct {
unsigned char D08:1;
unsigned char D07:1;
unsigned char D06:1;
unsigned char D05:1;
unsigned char D04:1;
unsigned char D03:1;
unsigned char D02:1;
unsigned char D01:1;
unsigned char D00:1;
} Bit;
} Latch8bit_;
/****************************************************************************************************/
/* variable type define
/****************************************************************************************************/
/* nothing */
/****************************************************************************************************/
/* global variable
/****************************************************************************************************/
/* nothing */
/****************************************************************************************************/
IOCTR_EXT Latch8bit_ Exp;
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -