Type Alias avr_device::atmega2560::tc2::tccr2b::CS2_W

source ·
pub type CS2_W<'a, const O: u8> = FieldWriterSafe<'a, u8, TCCR2B_SPEC, u8, CS2_A, 3, O>;
Expand description

Field CS2 writer - Clock Select bits

Aliased Type§

struct CS2_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> CS2_W<'a, O>

source

pub fn no_clock(self) -> &'a mut W

No clock source (Timer/Counter stopped)

source

pub fn direct(self) -> &'a mut W

Running, No Prescaling

source

pub fn prescale_8(self) -> &'a mut W

Running, CLK/8

source

pub fn prescale_32(self) -> &'a mut W

Running, CLK/32

source

pub fn prescale_64(self) -> &'a mut W

Running, CLK/64

source

pub fn prescale_128(self) -> &'a mut W

Running, CLK/128

source

pub fn prescale_256(self) -> &'a mut W

Running, CLK/256

source

pub fn prescale_1024(self) -> &'a mut W

Running, CLK/1024