UsbPlugin class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
analyzeStatusByte(int statusByte)
→ void
-
Debugging function to analyze the status byte
-
closeDevice(Pointer<libusb_device_handle> handle)
→ void
-
-
controlTransfer(Pointer<libusb_device_handle> handle, int requestType, int request, int value, int index, Pointer<UnsignedChar> data, int length, int timeout)
→ int
-
-
createBitDiagram(int statusByte)
→ String
-
Function to create a visual diagram of the bits of a byte
-
describeBit(int bitPosition, int bitValue)
→ String
-
Helper function to describe the function of each bit according to the common ESC/POS standard
-
detectPrinterConfiguration(int vendorId, int productId)
→ Future<Map<String, dynamic>>
-
-
exitUsbLibrary()
→ void
-
-
findAndClaimValidInterface(Pointer<libusb_device_handle>? handleNullable)
→ Future<Map<String, dynamic>>
-
-
getDetailedDeviceList()
→ List<UsbDeviceInfo>
-
-
getDevice(int vendorId, int productId)
→ Pointer<libusb_device>?
-
-
getDeviceDetails(int vendorId, int productId)
→ Map<String, dynamic>
-
-
getDeviceEndpoints(Pointer<libusb_device> device)
→ List<int>
-
-
getPrinterStatus(int vendorId, int productId, List<int> command, {int interfaceNumber = 0, int timeout = 10000, bool expectResponse = false, int maxResponseLength = 542})
→ Future<Map<String, dynamic>>
-
-
initUsbLibrary()
→ int
-
-
interpretPrinterStatus(int statusByte)
→ void
-
Simple function to interpret the printer status byte for 3nStart RPT008
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
openDevice(int vendorId, int productId)
→ Pointer<libusb_device_handle>?
-
-
printEscPos(int vendorId, int productId, List<int> commandBytes, {int interfaceNumber = 0, int endpointAddress = 0x01, int readEndpointAddress = 0x81, int timeout = 5000, bool autoInitialize = false, bool autoCut = false, bool expectResponse = false})
→ Future<Map<String, dynamic>>
-
-
printFullStatus(Map<String, dynamic> statusMap)
→ void
-
Utility function to display the full status
-
sendDataToPrinter(int vendorId, int productId, Uint8List data, {int interfaceNumber = 0, int timeout = 10000, bool expectResponse = false, int maxResponseLength = 256})
→ Future<Map<String, dynamic>>
-
-
toString()
→ String
-
A string representation of this object.
inherited