[−][src]Struct infrared::rc5::Rc5Receiver
Fields
rc5cntr: u32
Methods
impl Rc5Receiver
[src]
pub fn new(samplerate: u32) -> Self
[src]
pub fn interval_to_units(&self, interval: u16) -> Option<u32>
[src]
Trait Implementations
impl Receiver for Rc5Receiver
[src]
type Cmd = Rc5Command
The resulting command type
type Err = Rc5Error
Receive Error
const PROTOCOL_ID: ProtocolId
[src]
fn sample(
&mut self,
pinval: bool,
sampletime: u32
) -> ReceiverState<Rc5Command, Rc5Error>
[src]
&mut self,
pinval: bool,
sampletime: u32
) -> ReceiverState<Rc5Command, Rc5Error>
fn sample_edge(
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Rc5Command, Rc5Error>
[src]
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Rc5Command, Rc5Error>
fn reset(&mut self)
[src]
fn disable(&mut self)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,