public class UsbHidTrezorV1Example extends Object implements HidServicesListener
Demonstrate the USB HID interface using a production Bitcoin Trezor
Constructor and Description |
---|
UsbHidTrezorV1Example() |
Modifier and Type | Method and Description |
---|---|
void |
executeExample() |
void |
hidDeviceAttached(HidServicesEvent event)
A HID device was attached
|
void |
hidDeviceDetached(HidServicesEvent event)
A HID device was detached
|
void |
hidFailure(HidServicesEvent event)
A HID failure occurred during scanning
|
static void |
main(String[] args) |
static void |
sleepUninterruptibly(long sleepFor,
TimeUnit unit)
Invokes
unit. sleep(sleepFor)
uninterruptibly. |
public static void main(String[] args) throws HidException
HidException
public void executeExample() throws HidException
HidException
public void hidDeviceAttached(HidServicesEvent event)
HidServicesListener
hidDeviceAttached
in interface HidServicesListener
event
- The eventpublic void hidDeviceDetached(HidServicesEvent event)
HidServicesListener
hidDeviceDetached
in interface HidServicesListener
event
- The eventpublic void hidFailure(HidServicesEvent event)
HidServicesListener
hidFailure
in interface HidServicesListener
event
- The eventpublic static void sleepUninterruptibly(long sleepFor, TimeUnit unit)
unit.
sleep(sleepFor)
uninterruptibly.Copyright © 2014–2015 Bitcoin Solutions Ltd. All rights reserved.