diff options
author | Jenna Fox <a@creativepony.com> | 2012-09-23 16:10:31 +1000 |
---|---|---|
committer | Jenna Fox <a@creativepony.com> | 2012-09-23 16:10:31 +1000 |
commit | 0b63b7b37c027ae58fa29698c5181ecf212f961b (patch) | |
tree | cbd2711939c9c29be8ca9b0840aeb9f38978265d /commandline/hidsdi.h | |
parent | 824c303782a62b57b6525875b3c2dee81056baa4 (diff) | |
download | micronucleus-0b63b7b37c027ae58fa29698c5181ecf212f961b.tar.gz micronucleus-0b63b7b37c027ae58fa29698c5181ecf212f961b.tar.bz2 micronucleus-0b63b7b37c027ae58fa29698c5181ecf212f961b.zip |
bring in slightly modified version of bootloadHID host programming app by objective development - including delays tiny85 requires (though they could be tuned to be a bit shorter for quicker programming later)
Diffstat (limited to 'commandline/hidsdi.h')
-rwxr-xr-x | commandline/hidsdi.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/commandline/hidsdi.h b/commandline/hidsdi.h new file mode 100755 index 0000000..cabb995 --- /dev/null +++ b/commandline/hidsdi.h @@ -0,0 +1,50 @@ +/* Name: hidsdi.h + * Project: usbcalls library + * Author: Christian Starkjohann + * Creation Date: 2006-02-02 + * Tabsize: 4 + * Copyright: (c) 2006 by OBJECTIVE DEVELOPMENT Software GmbH + * License: Proprietary, free under certain conditions. See Documentation. + * This Revision: $Id: hidsdi.h 281 2007-03-20 13:22:10Z cs $ + */ + +/* +General Description +This file is a replacement for hidsdi.h from the Windows DDK. It defines some +of the types and function prototypes of this header for our project. If you +have the Windows DDK version of this file or a version shipped with MinGW, use +that instead. +*/ + +#ifndef _HIDSDI_H +#define _HIDSDI_H + +#include <pshpack4.h> + +#include <ddk/hidusage.h> +#include <ddk/hidpi.h> + +typedef struct{ + ULONG Size; + USHORT VendorID; + USHORT ProductID; + USHORT VersionNumber; +}HIDD_ATTRIBUTES; + +void __stdcall HidD_GetHidGuid(OUT LPGUID hidGuid); + +BOOLEAN __stdcall HidD_GetAttributes(IN HANDLE device, OUT HIDD_ATTRIBUTES *attributes); + +BOOLEAN __stdcall HidD_GetManufacturerString(IN HANDLE device, OUT void *buffer, IN ULONG bufferLen); +BOOLEAN __stdcall HidD_GetProductString(IN HANDLE device, OUT void *buffer, IN ULONG bufferLen); +BOOLEAN __stdcall HidD_GetSerialNumberString(IN HANDLE device, OUT void *buffer, IN ULONG bufferLen); + +BOOLEAN __stdcall HidD_GetFeature(IN HANDLE device, OUT void *reportBuffer, IN ULONG bufferLen); +BOOLEAN __stdcall HidD_SetFeature(IN HANDLE device, IN void *reportBuffer, IN ULONG bufferLen); + +BOOLEAN __stdcall HidD_GetNumInputBuffers(IN HANDLE device, OUT ULONG *numBuffers); +BOOLEAN __stdcall HidD_SetNumInputBuffers(IN HANDLE device, OUT ULONG numBuffers); + +#include <poppack.h> + +#endif |