Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*********************************************************************
- *
- * MPUSBAPI Library Version 1.00
- *
- *********************************************************************
- * FileName: mpusbapi.h
- * Dependencies: None
- * Compiler: C++
- * Company: Copyright (C) 2004 by Microchip Technology, Inc.
- *
- * Software License Agreement
- *
- * The software supplied herewith by Microchip Technology Incorporated
- * (the “Company”) for its PICmicro® Microcontroller is intended and
- * supplied to you, the Company’s customer, for use solely and
- * exclusively on Microchip PICmicro Microcontroller products. The
- * software is owned by the Company and/or its supplier, and is
- * protected under applicable copyright laws. All rights are reserved.
- * Any use in violation of the foregoing restrictions may subject the
- * user to criminal sanctions under applicable laws, as well as to
- * civil liability for the breach of the terms and conditions of this
- * license.
- *
- * THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES,
- * WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
- * TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
- * IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
- * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
- *
- * Author Date Comment
- *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * Ross Fosler 9/2/04 Implemented MPUSBGetDeviceLink()
- * Rawin Rojvanit 11/19/04 Original version 1.00 completed
- ********************************************************************/
- #ifndef _MPUSBAPI_H_
- #define _MPUSBAPI_H_
- #define MPUSB_FAIL 0
- #define MPUSB_SUCCESS 1
- #define MP_WRITE 0
- #define MP_READ 1
- // MAX_NUM_MPUSB_DEV is an abstract limitation.
- // It is very unlikely that a computer system will have more
- // then 127 USB devices attached to it. (single or multiple USB hosts)
- #define MAX_NUM_MPUSB_DEV 127
- DWORD (*MPUSBGetDLLVersion)(void);
- DWORD (*MPUSBGetDeviceCount)(PCHAR pVID_PID);
- HANDLE (*MPUSBOpen)(DWORD instance, // Input
- PCHAR pVID_PID, // Input
- PCHAR pEP, // Input
- DWORD dwDir, // Input
- DWORD dwReserved); // Input <Future Use>
- DWORD (*MPUSBRead)(HANDLE handle, // Input
- PVOID pData, // Output
- DWORD dwLen, // Input
- PDWORD pLength, // Output
- DWORD dwMilliseconds); // Input
- DWORD (*MPUSBWrite)(HANDLE handle, // Input
- PVOID pData, // Input
- DWORD dwLen, // Input
- PDWORD pLength, // Output
- DWORD dwMilliseconds); // Input
- DWORD (*MPUSBReadInt)(HANDLE handle, // Input
- PVOID pData, // Output
- DWORD dwLen, // Input
- PDWORD pLength, // Output
- DWORD dwMilliseconds); // Input
- BOOL (*MPUSBClose)(HANDLE handle);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement