lio.h

来自「CHP 4 - Real-Time Digital Signal Process」· C头文件 代码 · 共 58 行

H
58
字号
/*
 *  Copyright 2002 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) ReferenceFrameworks 1.10.00 04-30-02 (swat-b21)" */
/*
 *  ======== lio.h ========
 *  LIO: A "Low Level I/O" API for I/O device drivers.
 */
//
//  Tools used: CCS v.2.12.07
//              TMS320VC5510 DSK Rev-C
//

#ifndef LIO_
#define LIO_

#ifdef __cplusplus
extern "C" {
#endif  

typedef enum LIO_Mode {
    LIO_INPUT,
    LIO_OUTPUT
} LIO_Mode;

typedef Void    (*LIO_Tcallback)(Arg arg, Uns nmaus);

typedef Bool    (*LIO_Tcancel)(Ptr chanp);
typedef Bool    (*LIO_Tclose)(Ptr chanp);
typedef Bool    (*LIO_Tctrl)(Ptr chanp, Uns cmd, Ptr args);
typedef Ptr     (*LIO_Topen)(String name, LIO_Mode mode, Ptr args,
                        LIO_Tcallback cbFxn, Arg cbArg);
typedef Int     (*LIO_Tsubmit)(Ptr chanp, Ptr buf, Uns nmaus);

/*
 *  Function table structure used for actual linkage between client
 *  and controller.
 */
typedef struct LIO_Fxns
{
    LIO_Tcancel     cancel;
    LIO_Tclose      close;
    LIO_Tctrl       ctrl;
    LIO_Topen       open;
    LIO_Tsubmit     submit;
} LIO_Fxns;

#ifdef __cplusplus
}
#endif 

#endif

⌨️ 快捷键说明

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