Type Alias W

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

Register channel writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn positive_signal(&mut self, n: u8) -> POSITIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Enable or disable positive signal for channel

NOTE: n is number of field in register. n == 0 corresponds to positive_signal0 field

Source

pub fn positive_signal0(&mut self) -> POSITIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Bit 0 - Enable or disable positive signal for channel

Source

pub fn positive_signal1(&mut self) -> POSITIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Bit 4 - Enable or disable positive signal for channel

Source

pub fn positive_signal2(&mut self) -> POSITIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Bit 8 - Enable or disable positive signal for channel

Source

pub fn positive_signal3(&mut self) -> POSITIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Bit 12 - Enable or disable positive signal for channel

Source

pub fn positive_idle(&mut self, n: u8) -> POSITIVE_IDLE_W<'_, CHANNEL_SPEC>

Idle state of positive signal

NOTE: n is number of field in register. n == 0 corresponds to positive_idle0 field

Source

pub fn positive_idle0(&mut self) -> POSITIVE_IDLE_W<'_, CHANNEL_SPEC>

Bit 1 - Idle state of positive signal

Source

pub fn positive_idle1(&mut self) -> POSITIVE_IDLE_W<'_, CHANNEL_SPEC>

Bit 5 - Idle state of positive signal

Source

pub fn positive_idle2(&mut self) -> POSITIVE_IDLE_W<'_, CHANNEL_SPEC>

Bit 9 - Idle state of positive signal

Source

pub fn positive_idle3(&mut self) -> POSITIVE_IDLE_W<'_, CHANNEL_SPEC>

Bit 13 - Idle state of positive signal

Source

pub fn negative_signal(&mut self, n: u8) -> NEGATIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Enable or disable negative signal for channel

NOTE: n is number of field in register. n == 0 corresponds to negative_signal0 field

Source

pub fn negative_signal0(&mut self) -> NEGATIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Bit 2 - Enable or disable negative signal for channel

Source

pub fn negative_signal1(&mut self) -> NEGATIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Bit 6 - Enable or disable negative signal for channel

Source

pub fn negative_signal2(&mut self) -> NEGATIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Bit 10 - Enable or disable negative signal for channel

Source

pub fn negative_signal3(&mut self) -> NEGATIVE_SIGNAL_W<'_, CHANNEL_SPEC>

Bit 14 - Enable or disable negative signal for channel

Source

pub fn negative_idle(&mut self, n: u8) -> NEGATIVE_IDLE_W<'_, CHANNEL_SPEC>

Idle state of negative signal

NOTE: n is number of field in register. n == 0 corresponds to negative_idle0 field

Source

pub fn negative_idle0(&mut self) -> NEGATIVE_IDLE_W<'_, CHANNEL_SPEC>

Bit 3 - Idle state of negative signal

Source

pub fn negative_idle1(&mut self) -> NEGATIVE_IDLE_W<'_, CHANNEL_SPEC>

Bit 7 - Idle state of negative signal

Source

pub fn negative_idle2(&mut self) -> NEGATIVE_IDLE_W<'_, CHANNEL_SPEC>

Bit 11 - Idle state of negative signal

Source

pub fn negative_idle3(&mut self) -> NEGATIVE_IDLE_W<'_, CHANNEL_SPEC>

Bit 15 - Idle state of negative signal

Source

pub fn positive_polarity( &mut self, n: u8, ) -> POSITIVE_POLARITY_W<'_, CHANNEL_SPEC>

Polarity of positive signal

NOTE: n is number of field in register. n == 0 corresponds to positive_polarity0 field

Source

pub fn positive_polarity0(&mut self) -> POSITIVE_POLARITY_W<'_, CHANNEL_SPEC>

Bit 16 - Polarity of positive signal

Source

pub fn positive_polarity1(&mut self) -> POSITIVE_POLARITY_W<'_, CHANNEL_SPEC>

Bit 18 - Polarity of positive signal

Source

pub fn positive_polarity2(&mut self) -> POSITIVE_POLARITY_W<'_, CHANNEL_SPEC>

Bit 20 - Polarity of positive signal

Source

pub fn positive_polarity3(&mut self) -> POSITIVE_POLARITY_W<'_, CHANNEL_SPEC>

Bit 22 - Polarity of positive signal

Source

pub fn negative_polarity( &mut self, n: u8, ) -> NEGATIVE_POLARITY_W<'_, CHANNEL_SPEC>

Polarity of negative signal

NOTE: n is number of field in register. n == 0 corresponds to negative_polarity0 field

Source

pub fn negative_polarity0(&mut self) -> NEGATIVE_POLARITY_W<'_, CHANNEL_SPEC>

Bit 17 - Polarity of negative signal

Source

pub fn negative_polarity1(&mut self) -> NEGATIVE_POLARITY_W<'_, CHANNEL_SPEC>

Bit 19 - Polarity of negative signal

Source

pub fn negative_polarity2(&mut self) -> NEGATIVE_POLARITY_W<'_, CHANNEL_SPEC>

Bit 21 - Polarity of negative signal

Source

pub fn negative_polarity3(&mut self) -> NEGATIVE_POLARITY_W<'_, CHANNEL_SPEC>

Bit 23 - Polarity of negative signal

Source

pub fn positive_break(&mut self, n: u8) -> POSITIVE_BREAK_W<'_, CHANNEL_SPEC>

Break state on positive signal of this channel

NOTE: n is number of field in register. n == 0 corresponds to positive_break0 field

Source

pub fn positive_break0(&mut self) -> POSITIVE_BREAK_W<'_, CHANNEL_SPEC>

Bit 24 - Break state on positive signal of this channel

Source

pub fn positive_break1(&mut self) -> POSITIVE_BREAK_W<'_, CHANNEL_SPEC>

Bit 26 - Break state on positive signal of this channel

Source

pub fn positive_break2(&mut self) -> POSITIVE_BREAK_W<'_, CHANNEL_SPEC>

Bit 28 - Break state on positive signal of this channel

Source

pub fn positive_break3(&mut self) -> POSITIVE_BREAK_W<'_, CHANNEL_SPEC>

Bit 30 - Break state on positive signal of this channel

Source

pub fn negative_break(&mut self, n: u8) -> NEGATIVE_BREAK_W<'_, CHANNEL_SPEC>

Break state on negative signal of this channel

NOTE: n is number of field in register. n == 0 corresponds to negative_break0 field

Source

pub fn negative_break0(&mut self) -> NEGATIVE_BREAK_W<'_, CHANNEL_SPEC>

Bit 25 - Break state on negative signal of this channel

Source

pub fn negative_break1(&mut self) -> NEGATIVE_BREAK_W<'_, CHANNEL_SPEC>

Bit 27 - Break state on negative signal of this channel

Source

pub fn negative_break2(&mut self) -> NEGATIVE_BREAK_W<'_, CHANNEL_SPEC>

Bit 29 - Break state on negative signal of this channel

Source

pub fn negative_break3(&mut self) -> NEGATIVE_BREAK_W<'_, CHANNEL_SPEC>

Bit 31 - Break state on negative signal of this channel

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual