Class LedgerHIDAPI
java.lang.Object
com.jelurida.ardor.integration.wallet.ledger.LedgerDevice
com.jelurida.ardor.integration.wallet.ledger.LedgerHIDAPI
- All Implemented Interfaces:
purejavahidapi.DeviceRemovalListener,purejavahidapi.InputReportListener
public class LedgerHIDAPI
extends LedgerDevice
implements purejavahidapi.InputReportListener, purejavahidapi.DeviceRemovalListener
A Ledger device connected via USB HID.
This class is not thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]exchange(byte[] input) voidonDeviceRemoval(purejavahidapi.HidDevice hidDevice) voidonInputReport(purejavahidapi.HidDevice hidDevice, byte b, byte[] data, int length) Methods inherited from class com.jelurida.ardor.integration.wallet.ledger.LedgerDevice
findLedgerDevice
-
Method Details
-
exchange
public byte[] exchange(byte[] input) - Specified by:
exchangein classLedgerDevice
-
onInputReport
public void onInputReport(purejavahidapi.HidDevice hidDevice, byte b, byte[] data, int length) - Specified by:
onInputReportin interfacepurejavahidapi.InputReportListener
-
onDeviceRemoval
public void onDeviceRemoval(purejavahidapi.HidDevice hidDevice) - Specified by:
onDeviceRemovalin interfacepurejavahidapi.DeviceRemovalListener
-