UsbPlugin class

Constructors

UsbPlugin()

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
Función de depuración para analizar el 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
Función para crear un diagrama visual de los bits de un byte
describeBit(int bitPosition, int bitValue) → String
Función auxiliar para describir la función de cada bit según el estándar ESC/POS común
detectPrinterConfiguration(int vendorId, int productId) → Future<Map<String, dynamic>>
exitLibUsb() → void
findAndClaimValidInterface(Pointer<libusb_device_handle>? handleNullable) → Future<Map<String, dynamic>>
getDetailedDeviceList() → List<UsbDeviceInfo>
getDeviceDetails(int vendorId, int productId) → Map<String, dynamic>
getPrinterStatus(int vendorId, int productId, List<int> command, {int interfaceNumber = 0, int endpointAddress = 0x01, int readEndpointAddress = 0x81, int timeout = 10000, bool expectResponse = false, int maxResponseLength = 542}) → Future<Map<String, dynamic>>
initLibUsb() → int
interpretPrinterStatus(int statusByte) → void
Función sencilla para interpretar el byte de estado de la impresora 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
Función de utilidad para mostrar el estado completo
sendDataToPrinter(int vendorId, int productId, Uint8List data, {int interfaceNumber = 0, int endpointAddress = 0x01, int readEndpointAddress = 0x81, int timeout = 10000, bool expectResponse = false, int maxResponseLength = 256}) → Future<Map<String, dynamic>>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited