Crate cec_linux

source ·
Expand description

Use CEC linux API in pure rust.

Create a CecDevice and optionally change its mode to send and receive messages to and from other devices.

let cec = CecDevice::open("/dev/cec0")?;
cec.set_mode(CecModeInitiator::Send, CecModeFollower::All)?;
cec.transmit(
     CecLogicalAddress::Playback2,
     CecLogicalAddress::Audiosystem,
     CecOpcode::Standby,
 )?;
let msg = cec.rec()?;

Modules§

Structs§

Enums§