pub trait NecCommandVariant: Sized {
    const PULSE_DISTANCE: &'static NecPulseLen;

    fn validate(bits: u32) -> bool;
    fn unpack(bits: u32, repeat: bool) -> Option<Self>;
    fn pack(&self) -> u32;
}
Expand description

Nec Command Variant

Required Associated Constants§

Required Methods§

Validate the bits as a Command of this type

Unpack the bits into Command

Pack command into a u32

Implementors§