FLSerialBindings class
Automatycznie wygenerowane bindowania dla sterownika SerialPort C++
Constructors
- FLSerialBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
FLSerialBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
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
-
InitDartApiDL(
Pointer< Void> data) → int - Inicjalizuje Dart Native API. Musi być wywołane przed jakąkolwiek próbą wysłania danych przez NativePort.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register_port(
Pointer< SerialPort> sp, int port_id) → void - Rejestruje ID portu Darta, do którego C++ będzie wysyłać dane i zdarzenia.
-
serial_close(
Pointer< SerialPort> sp) → void - Zamyka fizyczne połączenie z portem.
-
serial_free(
Pointer< SerialPort> sp) → void - Zwalnia pamięć i zamyka port.
-
serial_get_modem_status(
Pointer< SerialPort> sp) → int - Pobiera stan linii wejściowych jako maskę bitową: Bit 0: CTS, Bit 1: DSR, Bit 2: RI, Bit 3: DCD
-
serial_new(
) → Pointer< SerialPort> - Tworzy nową instancję sterownika portu szeregowego.
-
serial_open_ext(
Pointer< SerialPort> sp, Pointer<Char> path, int baud, int dataBits, int stopBits, int parity) → bool - Otwiera port z zaawansowaną konfiguracją. parity: 0=none, 1=odd, 2=even stopBits: 1 lub 2
-
serial_set_dtr(
Pointer< SerialPort> sp, int active) → void - Ustawia stan linii DTR (Data Terminal Ready).
-
serial_set_rts(
Pointer< SerialPort> sp, int active) → void - Ustawia stan linii RTS (Request To Send).
-
serial_write(
Pointer< SerialPort> sp, Pointer<Uint8> data, int length) → void - Wysyła surowe bajty do portu.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited