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

📄 acl_lib.h

📁 一个基于windriver开发的
💻 H
字号:
//////////////////////////////////////////////////////////////////////
// File - acl_lib.h
//
// Library for accessing the ACL card,
// Code was generated by DriverWizard v6.02 - http://www.jungo.com.
// The library accesses the hardware via WinDriver functions.
// 
// Copyright (c) 2003 Jungo Ltd.  http://www.jungo.com
// 
//////////////////////////////////////////////////////////////////////

#ifndef _ACL_LIB_H_
#define _ACL_LIB_H_

#include "include/windrvr.h"
#include "include/windrvr_int_thread.h"
#include "bits.h"

#ifdef __cplusplus
extern "C" {
#endif

enum
{
    ACL_MODE_BYTE   = 0,
    ACL_MODE_WORD   = 1,
    ACL_MODE_DWORD  = 2
};
typedef DWORD ACL_MODE;

enum
{
    ACL_IORange1 = 0,
};
typedef DWORD ACL_ADDR;

// Number of IO and memory ranges
enum { ACL_ITEMS = 1 };

enum{ ACL_TOTAL_ITEMS = 1 };

// IO ranges definitions
enum { ACL_IORange1_ADDR = 0x0 };
enum { ACL_IORange1_BYTES = 0x400 };

typedef struct ACL_STRUCT *ACL_HANDLE;

// Function: ACL_Open()
//   Register an ISA card to enable working with it.
//   The handle returned from this function is used by most of the functions in this file.
BOOL ACL_Open (ACL_HANDLE *phACL);

// Function: ACL_RegisterWinDriver()
//   Enter a license string into WinDriver module.
void ACL_RegisterWinDriver();

// Function: ACL_Close()
//   Unregister an opened card.
void ACL_Close(ACL_HANDLE hACL);

// General read/write functions

// Function: ACL_ReadWriteBlock()
//   Read/Write data from/to the card's memory/IO into/from a given buffer.
void ACL_ReadWriteBlock(ACL_HANDLE hACL, ACL_ADDR addrSpace,
    DWORD dwOffset, BOOL fRead, PVOID buf, DWORD dwBytes, ACL_MODE mode);

// Function: ACL_ReadByte()
//   Read a Byte from the card's memory/IO.
BYTE ACL_ReadByte (ACL_HANDLE hACL, ACL_ADDR addrSpace, DWORD dwOffset);

// Function: ACL_ReadWord()
//   Read a Word from the card's memory/IO.
WORD ACL_ReadWord (ACL_HANDLE hACL, ACL_ADDR addrSpace, DWORD dwOffset);

// Function: ACL_ReadDword()
//   Read a Dword from the card's memory/IO.
DWORD ACL_ReadDword (ACL_HANDLE hACL, ACL_ADDR addrSpace, DWORD dwOffset);

// Function: ACL_WriteByte()
//   Write a Byte to the card's memory/IO.
void ACL_WriteByte (ACL_HANDLE hACL, ACL_ADDR addrSpace, DWORD dwOffset, BYTE data);

// Function: ACL_WriteWord()
//   Write a Word to the card's memory/IO.
void ACL_WriteWord (ACL_HANDLE hACL, ACL_ADDR addrSpace, DWORD dwOffset, WORD data);

// Function: ACL_WriteDword()
//   Write a Dword to the card's memory/IO.
void ACL_WriteDword (ACL_HANDLE hACL, ACL_ADDR addrSpace, DWORD dwOffset, DWORD data);

// If an error occurs, this string will be set to contain a relevant error message
extern CHAR ACL_ErrorString[];

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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