wdbTyCoDrv.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* wdbTyCoDrv.h - header file for BSP serial drivers used by the agent */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01d,25apr02,jhw  Added C++ support (SPR 76304).
  7. 01c,15jun95,ms updated for new serial driver.
  8. 01b,05apr95,ms  new data types.
  9. 01a,20dec94,ms  written.
  10. */
  11. #ifndef __INCwdbTyCoDrvh
  12. #define __INCwdbTyCoDrvh
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /* includes */
  17. #include "sioLib.h"
  18. /* data types */
  19. typedef struct
  20.     {
  21.     SIO_DRV_FUNCS * pDrvFuncs; /* driver functions */
  22.     STATUS (*getTxChar)(); /* tx callback */
  23.     void * getTxArg; /* callback arg */
  24.     STATUS (*putRcvChar)(); /* receive callback */
  25.     void * putRcvArg; /* callback arg */
  26.     int fd; /* underlying tyCo file descriptor */
  27.     } WDB_TYCO_SIO_CHAN;
  28. /* function prototypes */
  29. #if defined(__STDC__)
  30. extern STATUS  wdbTyCoDevInit (WDB_TYCO_SIO_CHAN *pDev, char *devName,
  31.  int baud);
  32. #else   /* __STDC__ */
  33. extern STATUS  wdbTyCoInit ();
  34. #endif  /* __STDC__ */
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif  /* __INCwdbTyCoDrvh */