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

📄 gtsio.h

📁 ge公司的dv4av4信号处理板的bsp源代码
💻 H
字号:
/***************************************************************************
*
*  $RCSfile: gtSio.h $
*
*  Copyright 2001 by Dy 4 Systems, Inc.  All Rights Reserved.
*
*  $Revision: 1.5 $
*
*  $Name: AV4-ISP-R1.2-1 AV4-ISP-R1.2-0 HMTST2 HMTST1 DVT_AV4_4.101 AV4-VSP-R1.0-2 AV4-VSP-R1.0 CT-ISP-1.1 AV4 ISP 1.1 CT_R0.1_AV4/CAV4 champtools2.22 CAV4_CP1 CHAMPtools FW 3.0 champtools2.21_1215 champtools2.21 champ221_build1 champtools2.2 $  $State: Developmental $  $Locker: $
*
*  $Source: L:/SWRND/champAV2/src/vx/h/drv/sio/rcs/gtSio.h $
*
*  RCS Project Name:
*
*  CSC:
*
*  Target:
*
*  Description:
*
*  Usage:
*
*  $Log: gtSio.h $
*  Revision 1.5  2004/06/10 21:13:32Z  dsessler
*  Added C++ support.
*  Revision 1.4  2002/03/27 20:01:51  dsessler
*
****************************************************************************/


#ifndef __INCgtSioh
#define __INCgtSioh

#include "sioLib.h"

#ifdef __cplusplus
extern "C" {
#endif


/* device and channel structures */

typedef struct
    {
    /* must be first */

    SIO_DRV_FUNCS *pDrvFuncs;  /* driver functions         */

    /* callbacks */

    STATUS	 (*getTxChar) ();
    STATUS	 (*putRcvChar) ();
    void *	 getTxArg;
    void *	 putRcvArg;

    int      mode;           /* current mode (interrupt or poll) */
    int      baud;           /* baud rate      */
    int      options;        /* stop bits, etc */
    int      portId;         /* 0 or 1         */
    
    
    /*
     *  These items are used for dynamically routing
     *  input data to other processors.
     */
     
    int      lastRxChar;    /* prev Rx character            */
    int      (*setRoute)(); /* set SIO routing callback     */
    void     (*rxRoute)();  /* input routing function       */
    int      route;         /* attached processor           */
    STATUS   (*savePutRcvChar)();
    void     *savePutRcvArg;    
    } GT_PORT;


/* definitions */

/* function prototypes */

#if defined(__STDC__)

extern void	gtSioDevInit(GT_PORT *pDusart); 
extern void	gtSioIntRcv(GT_PORT *pChan);
extern void	gtSioIntTx(GT_PORT *pChan);

#else   /* __STDC__ */

extern void gtSioDevInit();
extern void	gtSioIntRcv();
extern void	gtSioIntTx();

#endif  /* __STDC__ */

#ifdef __cplusplus
}
#endif

#endif  /* __INCgtSioh */

⌨️ 快捷键说明

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