DiveComputerFfiBindings class

Regenerate bindings with flutter pub run ffigen --config ffigen.yaml.

Constructors

DiveComputerFfiBindings(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
DiveComputerFfiBindings.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

dc_buffer_append(Pointer<dc_buffer_t> buffer, Pointer<UnsignedChar> data, int size) int
dc_buffer_clear(Pointer<dc_buffer_t> buffer) int
dc_buffer_free(Pointer<dc_buffer_t> buffer) → void
dc_buffer_get_data(Pointer<dc_buffer_t> buffer) Pointer<UnsignedChar>
dc_buffer_get_size(Pointer<dc_buffer_t> buffer) int
dc_buffer_insert(Pointer<dc_buffer_t> buffer, int offset, Pointer<UnsignedChar> data, int size) int
dc_buffer_new(int capacity) Pointer<dc_buffer_t>
dc_buffer_prepend(Pointer<dc_buffer_t> buffer, Pointer<UnsignedChar> data, int size) int
dc_buffer_reserve(Pointer<dc_buffer_t> buffer, int capacity) int
dc_buffer_resize(Pointer<dc_buffer_t> buffer, int size) int
dc_buffer_slice(Pointer<dc_buffer_t> buffer, int offset, int size) int
dc_context_free(Pointer<dc_context_t> context) int
dc_context_get_transports(Pointer<dc_context_t> context) int
dc_context_new(Pointer<Pointer<dc_context_t>> context) int
dc_context_set_logfunc(Pointer<dc_context_t> context, dc_logfunc_t logfunc, Pointer<Void> userdata) int
dc_context_set_loglevel(Pointer<dc_context_t> context, int loglevel) int
dc_datetime_gmtime(Pointer<dc_datetime_t> result, int ticks) Pointer<dc_datetime_t>
dc_datetime_localtime(Pointer<dc_datetime_t> result, int ticks) Pointer<dc_datetime_t>
dc_datetime_mktime(Pointer<dc_datetime_t> dt) int
dc_datetime_now() int
dc_descriptor_filter(Pointer<dc_descriptor_t> descriptor, int transport, Pointer<Void> userdata) int
Check if a low-level I/O device matches a supported dive computer.
dc_descriptor_free(Pointer<dc_descriptor_t> descriptor) → void
Free the device descriptor.
dc_descriptor_get_model(Pointer<dc_descriptor_t> descriptor) int
Get the model number of the dive computer.
dc_descriptor_get_product(Pointer<dc_descriptor_t> descriptor) Pointer<Char>
Get the product name of the dive computer.
dc_descriptor_get_transports(Pointer<dc_descriptor_t> descriptor) int
Get all transports supported by the dive computer.
dc_descriptor_get_type(Pointer<dc_descriptor_t> descriptor) int
Get the family type of the dive computer.
dc_descriptor_get_vendor(Pointer<dc_descriptor_t> descriptor) Pointer<Char>
Get the vendor name of the dive computer.
dc_descriptor_iterator(Pointer<Pointer<dc_iterator_t>> iterator) int
Create an iterator to enumerate the supported dive computers.
dc_device_close(Pointer<dc_device_t> device) int
dc_device_dump(Pointer<dc_device_t> device, Pointer<dc_buffer_t> buffer) int
dc_device_foreach(Pointer<dc_device_t> device, dc_dive_callback_t callback, Pointer<Void> userdata) int
dc_device_get_type(Pointer<dc_device_t> device) int
dc_device_open(Pointer<Pointer<dc_device_t>> out, Pointer<dc_context_t> context, Pointer<dc_descriptor_t> descriptor, Pointer<dc_iostream_t> iostream) int
dc_device_read(Pointer<dc_device_t> device, int address, Pointer<UnsignedChar> data, int size) int
dc_device_set_cancel(Pointer<dc_device_t> device, dc_cancel_callback_t callback, Pointer<Void> userdata) int
dc_device_set_events(Pointer<dc_device_t> device, int events, dc_event_callback_t callback, Pointer<Void> userdata) int
dc_device_set_fingerprint(Pointer<dc_device_t> device, Pointer<UnsignedChar> data, int size) int
dc_device_timesync(Pointer<dc_device_t> device, Pointer<dc_datetime_t> datetime) int
dc_device_write(Pointer<dc_device_t> device, int address, Pointer<UnsignedChar> data, int size) int
dc_iostream_close(Pointer<dc_iostream_t> iostream) int
Close the I/O stream and free all resources.
dc_iostream_configure(Pointer<dc_iostream_t> iostream, int baudrate, int databits, int parity, int stopbits, int flowcontrol) int
Configure the line settings.
dc_iostream_flush(Pointer<dc_iostream_t> iostream) int
Flush the internal output buffer and wait until the data has been transmitted.
dc_iostream_get_available(Pointer<dc_iostream_t> iostream, Pointer<Size> value) int
Query the number of available bytes in the input buffer.
dc_iostream_get_lines(Pointer<dc_iostream_t> iostream, Pointer<UnsignedInt> value) int
Query the state of the line signals.
dc_iostream_get_transport(Pointer<dc_iostream_t> iostream) int
Get the transport type.
dc_iostream_ioctl(Pointer<dc_iostream_t> iostream, int request, Pointer<Void> data, int size) int
Perform an I/O stream specific request.
dc_iostream_poll(Pointer<dc_iostream_t> iostream, int timeout) int
Poll the I/O stream for available data.
dc_iostream_purge(Pointer<dc_iostream_t> iostream, int direction) int
Discards all data from the internal buffers.
dc_iostream_read(Pointer<dc_iostream_t> iostream, Pointer<Void> data, int size, Pointer<Size> actual) int
Read data from the I/O stream.
dc_iostream_set_break(Pointer<dc_iostream_t> iostream, int value) int
Set the state of the break condition.
dc_iostream_set_dtr(Pointer<dc_iostream_t> iostream, int value) int
Set the state of the DTR line.
dc_iostream_set_rts(Pointer<dc_iostream_t> iostream, int value) int
Set the state of the RTS line.
dc_iostream_set_timeout(Pointer<dc_iostream_t> iostream, int timeout) int
Set the read timeout.
dc_iostream_sleep(Pointer<dc_iostream_t> iostream, int milliseconds) int
Suspend execution of the current thread for the specified amount of time.
dc_iostream_write(Pointer<dc_iostream_t> iostream, Pointer<Void> data, int size, Pointer<Size> actual) int
Write data to the I/O stream.
dc_iterator_free(Pointer<dc_iterator_t> iterator) int
dc_iterator_next(Pointer<dc_iterator_t> iterator, Pointer<Void> item) int
dc_parser_destroy(Pointer<dc_parser_t> parser) int
dc_parser_get_datetime(Pointer<dc_parser_t> parser, Pointer<dc_datetime_t> datetime) int
dc_parser_get_field(Pointer<dc_parser_t> parser, int type, int flags, Pointer<Void> value) int
dc_parser_get_type(Pointer<dc_parser_t> parser) int
dc_parser_new(Pointer<Pointer<dc_parser_t>> parser, Pointer<dc_device_t> device, Pointer<UnsignedChar> data, int size) int
dc_parser_new2(Pointer<Pointer<dc_parser_t>> parser, Pointer<dc_context_t> context, Pointer<dc_descriptor_t> descriptor, Pointer<UnsignedChar> data, int size) int
dc_parser_samples_foreach(Pointer<dc_parser_t> parser, dc_sample_callback_t callback, Pointer<Void> userdata) int
dc_parser_set_atmospheric(Pointer<dc_parser_t> parser, double atmospheric) int
dc_parser_set_clock(Pointer<dc_parser_t> parser, int devtime, int systime) int
dc_parser_set_density(Pointer<dc_parser_t> parser, double density) int
dc_serial_device_free(Pointer<dc_serial_device_t> device) → void
Destroy the serial device and free all resources.
dc_serial_device_get_name(Pointer<dc_serial_device_t> device) Pointer<Char>
Get the device node of the serial device.
dc_serial_iterator_new(Pointer<Pointer<dc_iterator_t>> iterator, Pointer<dc_context_t> context, Pointer<dc_descriptor_t> descriptor) int
Create an iterator to enumerate the serial devices.
dc_serial_open(Pointer<Pointer<dc_iostream_t>> iostream, Pointer<dc_context_t> context, Pointer<Char> name) int
Open a serial connection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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