Skip to main content

BlockingPit

Type Alias BlockingPit 

Source
pub type BlockingPit<const N: u8, const HZ: u32> = Blocking<Pit<N>, HZ>;
Expand description

A single PIT channel that acts as a blocking timer.

Aliased Type§

pub struct BlockingPit<const N: u8, const HZ: u32> { /* private fields */ }

Implementations§

Source§

impl<const N: u8, const HZ: u32> BlockingPit<N, HZ>

Source

pub fn from_pit(pit: Pit<N>) -> Self

Create a blocking adapter from a PIT channel.

Source

pub fn from_pit_channel(pit: Pit<N>) -> Self

👎Deprecated since 0.5.1:

Use from_pit

Create a blocking adapter from a PIT channel.

Prefer from_pit, which is easier to type and matches the name of the type we’re converting.