Skip to main content

Crate irbt

Crate irbt 

Source
Expand description

Host-side client for the ir-bt-bridge USB configuration/control protocol.

let device = irbt::Device::open(None)?; // auto-detect the bridge
device.set_mapping(0x00FF_02FD, irbt::HidKey::Home)?;
for mapping in device.keymap()? {
    println!("0x{:08X} -> {}", mapping.ir, mapping.key);
}

Re-exports§

pub use irbt_proto as proto;

Structs§

Battery
BuildInfo
How the firmware was built. A free-form component list, so new entries need no protocol change.
Component
Device
A connection to one bridge.
DeviceInfo
Log
Mapping
Status

Enums§

Error
Event
Unsolicited device → host notifications.
HidKey
Keys the bridge can send to Google TV.
LogLevel
Notification
Something the device sent without being asked.

Constants§

DEFAULT_TIMEOUT
How long to wait for a response to a single request.
PROTOCOL_VERSION
Bumped on any change that alters the encoding of existing messages.
USB_PID
USB_VID
Espressif’s USB VID and the PID of the ESP32-S3’s built-in USB-Serial-JTAG.

Functions§

find_ports
Serial port paths of every connected device that looks like a bridge.

Type Aliases§

IrCode
A raw 32-bit NEC code as decoded by the firmware’s IR receiver (address, ~address, command, ~command, MSB-first).
Result