ComPort for Android USB Library 2.1 Full Source » Developer.Team

ComPort for Android USB Library 2.1 Full Source

ComPort for Android USB Library 2.1 Full Source
ComPort for Android USB Library 2.1 Full Source | 1 Mb


Delphi and C++ Builder serial communication library for USB serial devices for Android.

Features

Uses usb-serial-for-android library
Suports FT232R, CDC/ACM (Arduino Uno) and CP2102 chips
No special root access privileges needed
Available for Delphi/C++ Builder XE6 - 10
Source code included in full version
Royalty free distribution in applications

API

JUsbSerialPortClass = interface(IJavaClass)
property DATABITS_5: Integer read;
property DATABITS_6: Integer read;
property DATABITS_7: Integer read;
property DATABITS_8: Integer read;
property FLOWCONTROL_NONE: Integer read;
property FLOWCONTROL_RTSCTS_IN: Integer read;
property FLOWCONTROL_RTSCTS_OUT: Integer read;
property FLOWCONTROL_XONXOFF_IN: Integer read;
property FLOWCONTROL_XONXOFF_OUT: Integer read;
property PARITY_EVEN: Integer read;
property PARITY_MARK: Integer read;
property PARITY_NONE: Integer read;
property PARITY_ODD: Integer read;
property PARITY_SPACE: Integer read;
property STOPBITS_1: Integer read;
property STOPBITS_1_5: Integer read;
property STOPBITS_2: Integer read;
end;

JUsbSerialPort = interface(IJavaInstance)
procedure close;
function getCD: Boolean;
function getCTS: Boolean;
function getDriver: JUsbSerialDriver;
function getDSR: Boolean;
function getDTR: Boolean;
function getPortNumber: Integer;
function getRI: Boolean;
function getRTS: Boolean;
function getSerial: JString;
procedure open(connection: JUsbDeviceConnection);
function purgeHwBuffers(purgeReadBuffers: Boolean; purgeWriteBuffers: Boolean): Boolean;
function &read(dest: TJavaArray; timeoutMillis: Integer): Integer;
procedure setDTR(value: Boolean);
procedure setParameters(baudRate: Integer; dataBits: Integer; stopBits: Integer; parity: Integer);
procedure setRTS(value: Boolean);
function &write(src: TJavaArray; timeoutMillis: Integer): Integer;
end;

JSerialInputOutputManager_Listener = interface(IJavaInstance)
procedure onNewData(dаta: TJavaArray);
procedure onRunError(e: JException);
end;


[/b]

[b] Only for V.I.P
Warning! You are not allowed to view this text.
SiteLock