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

📄 edc.h

📁 DM642的VP口驱动
💻 H
字号:
/*
 *  Copyright 2003 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.
 *  
 */
/* "@(#) DDK 1.10.00.23 07-02-03 (ddk-b12)" */
#ifndef _EDC_H
#define _EDC_H

#include <std.h>                                 
#ifdef __cplusplus
extern "C" {
#endif

/* EDC control commands */
#define EDC_CONFIG         0x00000001
#define EDC_RESET          0x00000002
#define EDC_START          0x00000003
#define EDC_STOP           0x00000004
#define EDC_GET_CONFIG     0x00000005
#define EDC_GET_STATUS     0x00000006

/* base of user defined commands */
#define EDC_USER           0x10000000


/* EDC return codes */
#define EDC_SUCCESS             0
#define EDC_FAILED              -1

typedef void*  EDC_Handle;
/*
 *  ======== EDC_Fxns ========
 *      edcOpen()      required, open the device 
 *      edcClose()      required, close the device
 *      edcCtrl()       required, control/query device
 */
typedef struct EDC_Fxns {
    EDC_Handle  (*open)(String name, Arg optArg);
    Int (*close)(Ptr devHandle);
    Int (*ctrl)(Ptr devHandle, Uns cmd, Arg arg);
} EDC_Fxns;


#ifdef __cplusplus
{
#endif
#endif /* _EDC_H */

⌨️ 快捷键说明

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