Struct gd32f1::gd32f170::timer14::chctl0_output::CH1COMCTL_W [−][src]
Write proxy for field CH1COMCTL
Implementations
impl<'a> CH1COMCTL_W<'a>
[src]
pub fn variant(self, variant: CH1COMCTL_A) -> &'a mut W
[src]
Writes variant
to the field
pub fn frozen(self) -> &'a mut W
[src]
The comparison between the output compare register CHyCV and the counter CNT has no effect on the outputs
pub fn active_on_match(self) -> &'a mut W
[src]
Set channel to active level on match. OxCPRE signal is forced high when the counter matches the capture/compare register CHyCV
pub fn inactive_on_match(self) -> &'a mut W
[src]
Set channel to inactive level on match. OxCPRE signal is forced low when the counter matches the capture/compare register CHyCV
pub fn toggle(self) -> &'a mut W
[src]
OxCPRE toggles when CNT=CHyCV
pub fn force_inactive(self) -> &'a mut W
[src]
OxCPRE is forced low
pub fn force_active(self) -> &'a mut W
[src]
OxCPRE is forced high
pub fn pwm_mode1(self) -> &'a mut W
[src]
In upcounting, channel is active as long as CNT<CHyCV else inactive. In downcounting, channel is inactive as long as CNT>CHyCV else active
pub fn pwm_mode2(self) -> &'a mut W
[src]
Inversely to PwmMode1
pub fn bits(self, value: u8) -> &'a mut W
[src]
Writes raw bits to the field
Auto Trait Implementations
impl<'a> Send for CH1COMCTL_W<'a>
impl<'a> !Sync for CH1COMCTL_W<'a>
impl<'a> Unpin for CH1COMCTL_W<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,