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

📄 gpif.h

📁 cy7c68013的GPIF测试FIREWARE
💻 H
字号:
/*declear Function for Gpif*/
//2005.10.5

#ifndef __GPIF_H__
#define __GPIF_H__

extern void GpifInit( void );
// Set Address GPIFADR[8:0] to PERIPHERAL
extern void Peripheral_SetAddress( WORD gaddr );
// Set EP2GPIF Transaction Count
extern void Peripheral_SetEP2GPIFTC( WORD xfrcnt );

// Set EP4GPIF Transaction Count
extern void Peripheral_SetEP4GPIFTC( WORD xfrcnt );
// Set EP6GPIF Transaction Count
extern void Peripheral_SetEP6GPIFTC( WORD xfrcnt );

// Set EP8GPIF Transaction Count
extern void Peripheral_SetEP8GPIFTC( WORD xfrcnt );

// Set EP2GPIF Decision Point FIFO Flag Select (PF, EF, FF)
extern void SetEP2GPIFFLGSEL( WORD DP_FIFOFlag );

// Set EP4GPIF Decision Point FIFO Flag Select (PF, EF, FF)
extern void SetEP4GPIFFLGSEL( WORD DP_FIFOFlag );

// Set EP6GPIF Decision Point FIFO Flag Select (PF, EF, FF)
extern void SetEP6GPIFFLGSEL( WORD DP_FIFOFlag );

// Set EP8GPIF Decision Point FIFO Flag Select (PF, EF, FF)
extern void SetEP8GPIFFLGSEL( WORD DP_FIFOFlag );

// Set EP2GPIF Programmable Flag STOP, overrides Transaction Count
extern void SetEP2GPIFPFSTOP( void );

// Set EP4GPIF Programmable Flag STOP, overrides Transaction Count
extern void SetEP4GPIFPFSTOP( void );

// Set EP6GPIF Programmable Flag STOP, overrides Transaction Count
extern void SetEP6GPIFPFSTOP( void );

// Set EP8GPIF Programmable Flag STOP, overrides Transaction Count
extern void SetEP8GPIFPFSTOP( void );

// write single byte to PERIPHERAL, using GPIF
extern void Peripheral_SingleByteWrite( BYTE gdata );

// write single word to PERIPHERAL, using GPIF
extern void Peripheral_SingleWordWrite( WORD gdata );
// read single byte from PERIPHERAL, using GPIF
extern void Peripheral_SingleByteRead( BYTE xdata *gdata );

// read single word from PERIPHERAL, using GPIF
extern void Peripheral_SingleWordRead( WORD xdata *gdata );

// write byte(s)/word(s) to PERIPHERAL, using GPIF and EPxFIFO
// if EPx WORDWIDE=0 then write byte(s)
// if EPx WORDWIDE=1 then write word(s)
extern void Peripheral_FIFOWrite( BYTE FIFO_EpNum );

// read byte(s)/word(s) from PERIPHERAL, using GPIF and EPxFIFO
// if EPx WORDWIDE=0 then read byte(s)
// if EPx WORDWIDE=1 then read word(s)
extern void Peripheral_FIFORead( BYTE FIFO_EpNum );
//--------------------------------------------------------------
extern void GPIF_LOAD_SINGLE();//单通道

extern void GPIF_LOAD_DOUBLE();//双通道					

extern void GPIF_LOAD_TRI();   //三通道

extern void GPIF_LOAD_QUAD();	//四通道

extern void GPIF_LOAD_PWDW();	//AD 掉电模式


#endif

⌨️ 快捷键说明

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