Package hid :: Module win32 :: Class Win32HIDDevice
[frames] | no frames]

Class Win32HIDDevice

source code

HIDDevice --+
            |
           Win32HIDDevice

Instance Methods
 
__init__(self, device_path, vendor, product) source code
 
is_open(self) source code
 
open(self)
open this HID device for use (must be called before setting callbacks or setting reports)
source code
 
close(self)
close the device and stop the callback thread
source code
 
set_report(self, report_data, report_id=0)
"set" a report - send the data to the device (which must have been opened previously)
source code

Inherited from HIDDevice: __del__, __str__, set_interrupt_report_callback

Method Details

__init__(self, device_path, vendor, product)
(Constructor)

source code 
Overrides: HIDDevice.__init__

is_open(self)

source code 
Overrides: HIDDevice.is_open

open(self)

source code 
open this HID device for use (must be called before setting callbacks or setting reports)
Overrides: HIDDevice.open
(inherited documentation)

close(self)

source code 
close the device and stop the callback thread
Overrides: HIDDevice.close
(inherited documentation)

set_report(self, report_data, report_id=0)

source code 
"set" a report - send the data to the device (which must have been opened previously)
Overrides: HIDDevice.set_report