IR Functions
dev.wireless.ir - wire path w\i - generated from fwMenuIR.
enable_ir_stream
Stream IR. Enables or disables streaming of received IR codes to the host.
Wire command: w\i\o
| Arg | Wire type |
|---|---|
| enable | decS32 |
Returns: none (Ok/Err only)
dev.wireless.ir.enable_ir_stream(enable: int) -> Result
ow_status ow_wireless_ir_enable_ir_stream(ow_device* dev, int32_t enable);
dev.wireless().ir().enable_ir_stream(enable: i32) -> Result<(), OwError>
The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).
dev.wireless.ir.enable_ir_stream(enable) # check dev.ok
send_ir_data
Send IR. Transmits a 4-byte IR code.
Wire command: w\i\a
| Arg | Wire type |
|---|---|
| ir_code | decU32 |
Returns: none (Ok/Err only)
dev.wireless.ir.send_ir_data(ir_code: int) -> Result
ow_status ow_wireless_ir_send_ir_data(ow_device* dev, int32_t ir_code);
dev.wireless().ir().send_ir_data(ir_code: i32) -> Result<(), OwError>
The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).
dev.wireless.ir.send_ir_data(ir_code) # check dev.ok