Crates.io | parse_rc_ibus |
lib.rs | parse_rc_ibus |
version | 0.1.2 |
source | src |
created_at | 2024-08-10 20:21:52.603713 |
updated_at | 2024-08-13 19:00:40.924165 |
description | A simple parser for FlySky IBUS |
homepage | |
repository | https://github.com/sergeant-savage/parse_rc_ibus |
max_upload_size | |
id | 1332675 |
size | 6,312 |
A basic parser for the IBUS (Intelligent Bus) RC protocol, written in Rust. Ideal for decoding channel data in radio-controlled systems and other applications using the IBUS protocol.
Add parse_rc_ibus
to your Cargo.toml
:
[dependencies]
parse_rc_ibus = "0.1"
Then, in your Rust code:
use parse_rc_ibus::IbusPacket;
To parse an IBUS packet, pass the byte array to IbusPacket::try_from_bytes()
. This will return the parsed packet or an error if the data is invalid.
let buffer [u8; 32] = // ...
let packet = IbusPacket::try_from_bytes(&buffer)
MIT License. See LISCENSE for more details.