[][src]Struct infrared::hal::HalSender

pub struct HalSender<PWMPIN, DUTY> where
    PWMPIN: PwmPin<Duty = DUTY>, 
{ pub counter: u32, // some fields omitted }

Fields

counter: u32

Implementations

impl<'a, PWMPIN, DUTY> HalSender<PWMPIN, DUTY> where
    PWMPIN: PwmPin<Duty = DUTY>, 
[src]

pub fn new(samplerate: u32, pin: PWMPIN) -> Self[src]

pub fn load<C: Command>(&mut self, cmd: &C) -> Result<(), Infallible>[src]

pub fn buffer(&self) -> &[u16][src]

Get a reference to the data

pub fn tick(&mut self)[src]

Method to be called periodically to update the pwm output

Auto Trait Implementations

impl<PWMPIN, DUTY> Send for HalSender<PWMPIN, DUTY> where
    PWMPIN: Send
[src]

impl<PWMPIN, DUTY> Sync for HalSender<PWMPIN, DUTY> where
    PWMPIN: Sync
[src]

impl<PWMPIN, DUTY> Unpin for HalSender<PWMPIN, DUTY> where
    PWMPIN: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.