📄 s3c2510sio.h
字号:
/* s3c2510Sio.h - SAMSUNG S3C2510 SIO header file */
/* Copyright 2002 SAMSUNG ELECTRONICS */
/*
modification history
--------------------
01b,10July02,jwchoi
01a,08feb02,jmLee created.
*/
#ifndef __INCs3c2510Sioh
#define __INCs3c2510Sioh
#include "sioLib.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Device Initialization Structure */
typedef struct {
int intLvlRx; /* Rx interrupt level */
int intLvlTx; /* Tx interrupt level */
VOIDFUNCPTR *intVecRx; /* Rx interrupt vector */
VOIDFUNCPTR *intVecTx; /* Tx interrupt vector */
int ch; /* channel number, 0:CUART, 1:HUART0, 2:HUART2 */
} S3C2510_SIO_CHAN_PARAM;
/* Device and Channel Structures */
typedef struct {
/* Must be first */
SIO_DRV_FUNCS *pDrvFuncs; /* driver functions */
/* Callbacks */
STATUS (*getTxChar)(); /* pointer to transmit function */
STATUS (*putRcvChar)(); /* pointer to receive function */
void *getTxArg; /* argument of transmit function */
void *putRcvArg; /* argument of receive function */
/* Interrupt */
int intLvlRx; /* Rx interrupt vevel */
int intLvlTx; /* Tx interrupt vevel */
VOIDFUNCPTR *intVecRx; /* Rx interrupt vector */
VOIDFUNCPTR *intVecTx; /* Tx interrupt vector */
/* Channel Information */
int ch; /* channel number, 0:CUART, 1:HUART0, 2:HUART2 */
int baudRate; /* baud rate */
int sioMode; /* SIO mode */
int options; /* SIO options */
} S3C2510_SIO_CHAN;
/* Function Prototypes */
#if defined(__STDC__) || defined(__cplusplus)
extern void s3c2510SioDevInit(S3C2510_SIO_CHAN *pChan);
extern void s3c2510SioDevInit2(S3C2510_SIO_CHAN *pChan);
extern void s3c2510SioIntRx(S3C2510_SIO_CHAN *pChan);
extern void s3c2510SioIntTx(S3C2510_SIO_CHAN *pChan);
#else /* defined(__STDC__) || defined(__cplusplus) */
extern void s3c2510SioDevInit();
extern void s3c2510SioDevInit2();
extern void s3c2510SioIntRx();
extern void s3c2510SioIntTx();
#endif /* defined(__STDC__) || defined(__cplusplus) */
#ifdef __cplusplus
}
#endif
#endif /* __INCs3c2510Sioh */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -