Skip to main content

W

Type Alias W 

Source
pub type W = W<Ctrl2Spec>;
Expand description

Register CTRL2 writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn updhld(&mut self) -> UpdhldW<'_, Ctrl2Spec>

Bit 0 - Update Hold Registers

Source

pub fn updpos(&mut self) -> UpdposW<'_, Ctrl2Spec>

Bit 1 - Update Position Registers

Source

pub fn opmode(&mut self) -> OpmodeW<'_, Ctrl2Spec>

Bit 2 - Operation Mode Select

Source

pub fn ldmod(&mut self) -> LdmodW<'_, Ctrl2Spec>

Bit 3 - Buffered Register Load (Update) Mode Select

Source

pub fn revmod(&mut self) -> RevmodW<'_, Ctrl2Spec>

Bit 8 - Revolution Counter Modulus Enable

Source

pub fn outctl(&mut self) -> OutctlW<'_, Ctrl2Spec>

Bit 9 - Output Control

Source

pub fn pmen(&mut self) -> PmenW<'_, Ctrl2Spec>

Bit 10 - Period measurement function enable

Source

pub fn emip(&mut self) -> EmipW<'_, Ctrl2Spec>

Bit 11 - Enables/disables the position counter to be initialized by Index Event Edge Mark

Source

pub fn initpos(&mut self) -> InitposW<'_, Ctrl2Spec>

Bit 12 - Initial Position Register

Source

pub fn once(&mut self) -> OnceW<'_, Ctrl2Spec>

Bit 13 - Count Once

Source

pub fn cmode(&mut self) -> CmodeW<'_, Ctrl2Spec>

Bits 14:15 - Counting Mode