Trait Writable

Source
pub trait Writable: RegisterSpec {
    type Safety;

    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux;
}
Expand description

Trait implemented by writeable registers.

This enables the write, write_with_zero and reset methods.

Registers marked with Readable can be also be modify’ed.

Required Associated Constants§

Source

const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux

Specifies the register bits that are not changed if you pass 1 and are changed if you pass 0

Source

const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux

Specifies the register bits that are not changed if you pass 0 and are changed if you pass 1

Required Associated Types§

Source

type Safety

Is it safe to write any bits to register

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Writable for COCPU_CTRL_SPEC

write(|w| ..) method takes cocpu_ctrl::W writer structure

Source§

impl Writable for ULP_CP_CTRL_SPEC

write(|w| ..) method takes ulp_cp_ctrl::W writer structure

Source§

impl Writable for ULP_CP_TIMER_SPEC

write(|w| ..) method takes ulp_cp_timer::W writer structure

Source§

impl Writable for ULP_CP_TIMER_1_SPEC

write(|w| ..) method takes ulp_cp_timer_1::W writer structure

Source§

impl Writable for CMD_SPEC

write(|w| ..) method takes cmd::W writer structure

Source§

impl Writable for CTRL_SPEC

write(|w| ..) method takes ctrl::W writer structure

Source§

impl Writable for DATA_SPEC

write(|w| ..) method takes data::W writer structure

Source§

impl Writable for DATE_SPEC

write(|w| ..) method takes date::W writer structure

Source§

impl Writable for INT_CLR_SPEC

write(|w| ..) method takes int_clr::W writer structure

Source§

impl Writable for INT_ENA_SPEC

write(|w| ..) method takes int_ena::W writer structure

Source§

impl Writable for SCL_HIGH_SPEC

write(|w| ..) method takes scl_high::W writer structure

Source§

impl Writable for SCL_LOW_SPEC

write(|w| ..) method takes scl_low::W writer structure

Source§

impl Writable for SCL_START_PERIOD_SPEC

write(|w| ..) method takes scl_start_period::W writer structure

Source§

impl Writable for SCL_STOP_PERIOD_SPEC

write(|w| ..) method takes scl_stop_period::W writer structure

Source§

impl Writable for SDA_DUTY_SPEC

write(|w| ..) method takes sda_duty::W writer structure

Source§

impl Writable for SLAVE_ADDR_SPEC

write(|w| ..) method takes slave_addr::W writer structure

Source§

impl Writable for TO_SPEC

write(|w| ..) method takes to::W writer structure

Source§

impl Writable for ENABLE_SPEC

write(|w| ..) method takes enable::W writer structure

Source§

impl Writable for ENABLE_W1TC_SPEC

write(|w| ..) method takes enable_w1tc::W writer structure

Source§

impl Writable for ENABLE_W1TS_SPEC

write(|w| ..) method takes enable_w1ts::W writer structure

Source§

impl Writable for EXT_WAKEUP0_SPEC

write(|w| ..) method takes ext_wakeup0::W writer structure

Source§

impl Writable for OUT_SPEC

write(|w| ..) method takes out::W writer structure

Source§

impl Writable for OUT_W1TC_SPEC

write(|w| ..) method takes out_w1tc::W writer structure

Source§

impl Writable for OUT_W1TS_SPEC

write(|w| ..) method takes out_w1ts::W writer structure

Source§

impl Writable for PAD_DAC1_SPEC

write(|w| ..) method takes pad_dac1::W writer structure

Source§

impl Writable for PAD_DAC2_SPEC

write(|w| ..) method takes pad_dac2::W writer structure

Source§

impl Writable for PIN_SPEC

write(|w| ..) method takes pin::W writer structure

Source§

impl Writable for RTC_DEBUG_SEL_SPEC

write(|w| ..) method takes rtc_debug_sel::W writer structure

Source§

impl Writable for RTC_IO_DATE_SPEC

write(|w| ..) method takes rtc_io_date::W writer structure

Source§

impl Writable for RTC_IO_TOUCH_CTRL_SPEC

write(|w| ..) method takes rtc_io_touch_ctrl::W writer structure

Source§

impl Writable for RTC_PAD19_SPEC

write(|w| ..) method takes rtc_pad19::W writer structure

Source§

impl Writable for RTC_PAD20_SPEC

write(|w| ..) method takes rtc_pad20::W writer structure

Source§

impl Writable for RTC_PAD21_SPEC

write(|w| ..) method takes rtc_pad21::W writer structure

Source§

impl Writable for SAR_I2C_IO_SPEC

write(|w| ..) method takes sar_i2c_io::W writer structure

Source§

impl Writable for STATUS_SPEC

write(|w| ..) method takes status::W writer structure

Source§

impl Writable for STATUS_W1TC_SPEC

write(|w| ..) method takes status_w1tc::W writer structure

Source§

impl Writable for STATUS_W1TS_SPEC

write(|w| ..) method takes status_w1ts::W writer structure

Source§

impl Writable for TOUCH_PAD_SPEC

write(|w| ..) method takes touch_pad::W writer structure

Source§

impl Writable for XTAL_32N_PAD_SPEC

write(|w| ..) method takes xtal_32n_pad::W writer structure

Source§

impl Writable for XTAL_32P_PAD_SPEC

write(|w| ..) method takes xtal_32p_pad::W writer structure

Source§

impl Writable for XTL_EXT_CTR_SPEC

write(|w| ..) method takes xtl_ext_ctr::W writer structure

Source§

impl Writable for SAR_COCPU_INT_CLR_SPEC

write(|w| ..) method takes sar_cocpu_int_clr::W writer structure

Source§

impl Writable for SAR_COCPU_INT_ENA_SPEC

write(|w| ..) method takes sar_cocpu_int_ena::W writer structure

Source§

impl Writable for SAR_I2C_CTRL_SPEC

write(|w| ..) method takes sar_i2c_ctrl::W writer structure

Source§

impl Writable for SAR_SLAVE_ADDR1_SPEC

write(|w| ..) method takes sar_slave_addr1::W writer structure

Source§

impl Writable for SAR_SLAVE_ADDR2_SPEC

write(|w| ..) method takes sar_slave_addr2::W writer structure

Source§

impl Writable for SAR_SLAVE_ADDR3_SPEC

write(|w| ..) method takes sar_slave_addr3::W writer structure

Source§

impl Writable for SAR_SLAVE_ADDR4_SPEC

write(|w| ..) method takes sar_slave_addr4::W writer structure