Skip to main content

Crate hexa_tune_proto_ffi

Crate hexa_tune_proto_ffi 

Source
Expand description

hexaTune FFI adapter — C ABI functions for Flutter/Dart integration.

All functions use caller-owned buffers (pointer + length pattern). Return values: 0 = success, negative = error code.

Structs§

HtpAtParseResult
Parse result returned by htp_at_parse.
HtpSlice
A byte slice descriptor for FFI (pointer + length).

Functions§

htp_at_encode
Encodes an AT command string into the output buffer.
htp_at_parse
Parses an AT command from a byte buffer.
htp_encode_to_packets
Full pipeline: encode AT command → SysEx → USB MIDI packets.
htp_sysex_frame
Frames payload bytes into a SysEx message.
htp_sysex_unframe
Extracts payload from a SysEx message.
htp_usb_depacketize
Reassembles SysEx bytes from USB MIDI 4-byte packets.
htp_usb_packetize
Converts SysEx bytes to USB MIDI 4-byte packets.