Type Definition lpc81x_pac::lpc810::sct0::ev::ev_ctrl::DIRECTION_R
source · pub type DIRECTION_R = FieldReader<u8, DIRECTION_A>;
Expand description
Field DIRECTION
reader - Direction qualifier for event generation. This field only applies when the counters are operating in BIDIR mode. If BIDIR = 0, the SCT ignores this field. Value 0x3 is reserved.
Implementations§
source§impl DIRECTION_R
impl DIRECTION_R
sourcepub fn variant(&self) -> Option<DIRECTION_A>
pub fn variant(&self) -> Option<DIRECTION_A>
Get enumerated values variant
sourcepub fn is_direction_independent(&self) -> bool
pub fn is_direction_independent(&self) -> bool
Checks if the value of the field is DIRECTION_INDEPENDENT
sourcepub fn is_counting_up(&self) -> bool
pub fn is_counting_up(&self) -> bool
Checks if the value of the field is COUNTING_UP
sourcepub fn is_counting_down(&self) -> bool
pub fn is_counting_down(&self) -> bool
Checks if the value of the field is COUNTING_DOWN