W

Type Alias W 

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

Register CTL0 writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn ctl0_enable(&mut self) -> CTL0_ENABLE_W<'_, CTL0_SPEC, 0>

Bit 0 - This bit enables the VREF module.

Source

pub fn ctl0_enablebias(&mut self) -> CTL0_ENABLEBIAS_W<'_, CTL0_SPEC, 1>

Bit 1 - This bit enables the VREF Bias.

Source

pub fn ctl0_ibprog(&mut self) -> CTL0_IBPROG_W<'_, CTL0_SPEC, 2>

Bits 2:3 - There bits configure current bias.

Source

pub fn ctl0_bufconfig(&mut self) -> CTL0_BUFCONFIG_W<'_, CTL0_SPEC, 7>

Bit 7 - These bits configure output buffer.

Source

pub fn ctl0_shmode(&mut self) -> CTL0_SHMODE_W<'_, CTL0_SPEC, 8>

Bit 8 - This bit enable sample and hold mode

Source

pub fn ctl0_spare(&mut self) -> CTL0_SPARE_W<'_, CTL0_SPEC, 9>

Bits 9:12 - These bits are reserved

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