📄 ampio.h
字号:
/**************************************************************************************/
/*********************** BBK CONFIDENTIAL ************************/
/*********************** ************************/
/*********************** Description : Digital Audio Process ************************/
/*********************** ************************/
/*********************** Company: BBK AV ELECTRONICS CORP.,LTD ************************/
/*********************** ************************/
/*********************** Programmer : Terry Lee ******** ****************/
/**************************************************************************************/
#ifndef _AMPIO_H_
#define _AMPIO_H_
#ifdef BBK_RD2_THEATRE
#define SetCD4052A(){ \
}
#define ClrCD4052A(){ \
}
#define SetCD4052B(){ \
}
#define ClrCD4052B(){ \
}
#define SetDapReset(){ \
}
#define ClrDapReset(){ \
}
#define ClrDapMute(){ \
}
#define SetDapMute(){ \
}
#define SetVMute(){ \
}
#define ClrVMute(){ \
}
#define HI_SCLK_PT2314(){ \
}
#define LO_SCLK_PT2314(){ \
}
#define HI_SDATA_PT2314(){ \
}
#define LO_SDATA_PT2314(){ \
}
#define ACK_SDATA_PT2314(){ \
}
#define ACK_SCLK_PT2314(){ \
}
#define ClrFan(){ \
}
#define SetFan(){ \
}
#define ClrKaraOK(){ \
}
#define SetKaraOK(){ \
}
#define KaraokDet(){ \
}
#define ReadKaraOkdet()
//bReadBIM(BIM_RIODIM) & IOM_RD31
#ifdef BBK_EARPHONE
#define ReadEarPhoneIo() bReadBIM(BIM_IODIM) & 0x01
#define SetEarPhone(){ \
ClrBitBIM(BIM_RIODOM,IOM_RD26); \
SetBitBIM(BIM_RIODRM,IOM_RD26); \
}
#define ClrEarPhone(){ \
SetBitBIM(BIM_RIODOM,IOM_RD26); \
SetBitBIM(BIM_RIODRM,IOM_RD26); \
}
#endif
//coder
#define SetReadCoderIo1(){ \
}
#define SetReadCoderIo2(){ \
}
#define ReadCoderIo1()
//bReadBIM(BIM_PLLD) & 0x10 // temp
//bReadBIM(BIM_RIODIM)& IOM_RD30
#define ReadCoderIo2()
//bReadBIM(BIM_PLLD) & 0x10 // temp
//bReadBIM(BIM_RIODIM)& IOM_RD31
#define CODE_STATE_0 0x03
#define CODE_STATE_1 0x02
#define CODE_STATE_2 0x00
#define SetReadDTSIo(){ \
}
#define HI_TUNERPWR(){ \
}
#define LO_TUNERPWR(){ \
}
#define HI_DTSCE(){ \
vSetCD4094Pin(T_CE); \
}
#define LO_DTSCE(){ \
vClrCD4094Pin(T_CE); \
}
#define HI_DTSDI(){ \
vSetCD4094Pin(T_DI); \
}
#define LO_DTSDI(){ \
vClrCD4094Pin(T_DI); \
}
#define HI_DTSCL(){ \
vSetCD4094Pin(T_CK); \
}
#define LO_DTSCL(){ \
vClrCD4094Pin(T_CK); \
}
#define ReadDTSDOIo() (bReadBIM(BIM_IODIH) & IOH_GPIO19)//(bReadBIM(BIM_RIODIH) & IOH_MC)
#ifdef BBK_RD2_RDS
#ifdef RDS_USE_BU1924
#define SetReadRdsIo(){ \
}
#define SetReadyRdsSyncIo(){ \
WriteBIM(BIM_PLLS, PS_NEW_IO2_EN); \
ClrBitBIM(BIM_PLLD, 0x10); \
WriteBIM(BIM_PLLS, PS_NEW_IO2_IN); \
}
#define ReadRdsSyncIo() bReadBIM(BIM_PLLD) & 0x10
#define SetReadyRdsClkIo(){ \
WriteBIM(BIM_PLLS, PS_NEW_IO2_EN); \
ClrBitBIM(BIM_PLLD, 0x08); \
WriteBIM(BIM_PLLS, PS_NEW_IO2_IN); \
}
#define ReadRdsClkIo() bReadBIM(BIM_PLLD) & 0x08
#define SetReadyRdsDataIo(){ \
}
#define ReadRdsDataIo() P30
#else
#define ReadRdsDavnIo()
#endif
#endif
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -