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
HidExceptionpublic void executeExample()
throws HidException
HidExceptionpublic void hidDeviceAttached(HidServicesEvent event)
HidServicesListenerhidDeviceAttached in interface HidServicesListenerevent - The eventpublic void hidDeviceDetached(HidServicesEvent event)
HidServicesListenerhidDeviceDetached in interface HidServicesListenerevent - The eventpublic void hidFailure(HidServicesEvent event)
HidServicesListenerhidFailure in interface HidServicesListenerevent - The eventpublic static void sleepUninterruptibly(long sleepFor,
TimeUnit unit)
unit.sleep(sleepFor)
uninterruptibly.Copyright © 2014–2016 Bitcoin Solutions Ltd. All rights reserved.