Struct gd32f1x0_hal::pac::timer1::chctl1_input::W
source · [−]pub struct W(_);
Expand description
Register CHCTL1_Input
writer
Implementations
sourceimpl W
impl W
sourcepub fn ch3capflt(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0CAPFLT_A, Safe, 4_u8, 12_u8>
pub fn ch3capflt(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0CAPFLT_A, Safe, 4_u8, 12_u8>
Bits 12:15 - Channel 3 input capture filter control
sourcepub fn ch3cappsc(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0CAPPSC_A, Safe, 2_u8, 10_u8>
pub fn ch3cappsc(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0CAPPSC_A, Safe, 2_u8, 10_u8>
Bits 10:11 - Channel 3 input capture prescaler
sourcepub fn ch3ms(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0MS_A, Safe, 2_u8, 8_u8>
pub fn ch3ms(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0MS_A, Safe, 2_u8, 8_u8>
Bits 8:9 - Channel 3 mode selection
sourcepub fn ch2capflt(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0CAPFLT_A, Safe, 4_u8, 4_u8>
pub fn ch2capflt(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0CAPFLT_A, Safe, 4_u8, 4_u8>
Bits 4:7 - Channel 2 input capture filter control
sourcepub fn ch2cappsc(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0CAPPSC_A, Safe, 2_u8, 2_u8>
pub fn ch2cappsc(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL1_INPUT_SPEC, u8, CH0CAPPSC_A, Safe, 2_u8, 2_u8>
Bits 2:3 - Channel 2 input capture prescaler
Methods from Deref<Target = W<CHCTL1_INPUT_SPEC>>
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations
sourceimpl From<W<CHCTL1_INPUT_SPEC>> for W
impl From<W<CHCTL1_INPUT_SPEC>> for W
sourcefn from(writer: W<CHCTL1_INPUT_SPEC>) -> W
fn from(writer: W<CHCTL1_INPUT_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more