MCHPHIDClass::USBHIDClassInit Method

HID Class DLL

HID Class DLL
MCHPHIDClass::USBHIDClassInit Method
C
static void USBHIDClassInit(
    unsigned int VendorID, 
    unsigned int ProductID, 
    unsigned int BuffSize
);
Description

Initializes the DLL with the VID, PID, and Buffersize of the device. This function should be called before attempting to communicate with the device.

Preconditions

None

Parameters
Parameters 
Description 
VendorID 
16 bit unsigned integer. 
ProductID 
16 bit unsigned integer 
BufferSize 
16 bit unsigned integer. Usually 64 
Returns

Nothing

Remarks

This function, or an overloaded variant, should be called prior to attempting to communicate with the device.

Example
MCHPHIDCLASS::USBHIDClassInit(0x4D8, 0x0F00, 64);
Microchip HID Class DLL 1.10 - [15 April 2010]
Copyright © 2009, 2010 Microchip Technology, Inc.  All rights reserved.