Struct gd32f1x0_hal::pac::timer14::chctl0_input::W
source · [−]pub struct W(_);
Expand description
Register CHCTL0_Input
writer
Implementations
sourceimpl W
impl W
sourcepub fn ch1capflt(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0CAPFLT_A, Safe, 4_u8, 12_u8>
pub fn ch1capflt(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0CAPFLT_A, Safe, 4_u8, 12_u8>
Bits 12:15 - Channel 1 input capture filter control
sourcepub fn ch1cappsc(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0CAPPSC_A, Safe, 2_u8, 10_u8>
pub fn ch1cappsc(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0CAPPSC_A, Safe, 2_u8, 10_u8>
Bits 10:11 - Channel 1 input capture prescaler
sourcepub fn ch1ms(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0MS_A, Safe, 2_u8, 8_u8>
pub fn ch1ms(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0MS_A, Safe, 2_u8, 8_u8>
Bits 8:9 - Channel 1 mode selection
sourcepub fn ch0capflt(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0CAPFLT_A, Safe, 4_u8, 4_u8>
pub fn ch0capflt(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0CAPFLT_A, Safe, 4_u8, 4_u8>
Bits 4:7 - Channel 0 input capture filter control
sourcepub fn ch0cappsc(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0CAPPSC_A, Safe, 2_u8, 2_u8>
pub fn ch0cappsc(
&mut self
) -> FieldWriterRaw<'_, u16, CHCTL0_INPUT_SPEC, u8, CH0CAPPSC_A, Safe, 2_u8, 2_u8>
Bits 2:3 - Channel 0 input capture prescaler
Methods from Deref<Target = W<CHCTL0_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<CHCTL0_INPUT_SPEC>> for W
impl From<W<CHCTL0_INPUT_SPEC>> for W
sourcefn from(writer: W<CHCTL0_INPUT_SPEC>) -> W
fn from(writer: W<CHCTL0_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