1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-01-31 20:15:20 +01:00

Better comments in ch341.h

This commit is contained in:
Will Toohey 2020-10-10 22:06:58 +10:00 committed by icex2
parent 98d0debd05
commit f39843b41f

View File

@ -1,9 +1,16 @@
/**
* This is the header for ch341dll.dll, a library for interfacing with the
* CH341 USB to serial/parallel port chip. Magic Box uses this for their
* proprietary IO, and it provides access to the panel sensors.
*
* The full .h for this file is floating around online with many more functions
* and comments (in Chinese). Only the bare minimum definitions are provided
* here for use in jbio-magicbox
*/
#ifndef IMPORTS_CH341_H
#define IMPORTS_CH341_H
// The bare minimum definitions to implement jbio-magicbox
// There is a full .h for this DLL floating around online, if you care
HANDLE WINAPI CH341OpenDevice(ULONG iIndex);
VOID WINAPI CH341CloseDevice(ULONG iIndex);
BOOL WINAPI CH341EppReadData(ULONG iIndex, PVOID oBuffer, PULONG ioLength);