📄 ks8695sio.h
字号:
/* ks8695Sio.h - KS8695/P/X UART header file */
/*
modification history
--------------------
11/13/2003 LIQUN RUAN (RLQ) modified for KS8695/X
09/22/2003 Ritter Yeh created
*/
#ifndef __INCks8695pSioh
#define __INCks8695pSioh
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ASMLANGUAGE
typedef struct KS8695P_CHAN
{
/* must be first */
SIO_CHAN sio; /* standard SIO_CHAN element */
/* callbacks */
STATUS (*getTxChar) (); /* installed Tx callback routine */
STATUS (*putRcvChar) (); /* installed Rx callback routine */
void * getTxArg; /* argument to Tx callback routine */
void * putRcvArg; /* argument to Rx callback routine */
UINT32 * regs; /* AMBA registers */
UINT8 levelRx; /* Rx Interrupt level for this device */
UINT8 levelTx; /* Tx Interrupt level for this device */
UINT32 channelMode; /* such as INT, POLL modes */
int baudRate; /* the current baud rate */
UINT32 xtal; /* UART clock frequency */
} KS8695P_CHAN;
/* function declarations */
extern void ks8695pSioIntTx (KS8695P_CHAN *pChan);
extern void ks8695pSioIntRx (KS8695P_CHAN *pChan);
extern void ks8695pSioIntErr (KS8695P_CHAN *pChan);
extern void ks8695pSioDevInit (KS8695P_CHAN *pChan);
#endif /* _ASMLANGUAGE */
#ifdef __cplusplus
}
#endif
#endif /* __INCks8695pSioh */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -