Struct esp32s2_hal::peripherals::SYSTIMER
source · pub struct SYSTIMER { /* private fields */ }
Implementations§
source§impl SYSTIMER
impl SYSTIMER
sourcepub unsafe fn steal() -> SYSTIMER
pub unsafe fn steal() -> SYSTIMER
Unsafely create an instance of this peripheral out of thin air.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn load_hi(&self) -> &Reg<LOAD_HI_SPEC>
pub fn load_hi(&self) -> &Reg<LOAD_HI_SPEC>
0x08 - High 32 bits to be loaded to system timer
sourcepub fn load_lo(&self) -> &Reg<LOAD_LO_SPEC>
pub fn load_lo(&self) -> &Reg<LOAD_LO_SPEC>
0x0c - Low 32 bits to be loaded to system timer
sourcepub fn target0_hi(&self) -> &Reg<TARGET0_HI_SPEC>
pub fn target0_hi(&self) -> &Reg<TARGET0_HI_SPEC>
0x14 - System timer target 0, high 32 bits
sourcepub fn target0_lo(&self) -> &Reg<TARGET0_LO_SPEC>
pub fn target0_lo(&self) -> &Reg<TARGET0_LO_SPEC>
0x18 - System timer target 0, low 32 bits
sourcepub fn target1_hi(&self) -> &Reg<TARGET1_HI_SPEC>
pub fn target1_hi(&self) -> &Reg<TARGET1_HI_SPEC>
0x1c - System timer target 1, high 32 bits
sourcepub fn target1_lo(&self) -> &Reg<TARGET1_LO_SPEC>
pub fn target1_lo(&self) -> &Reg<TARGET1_LO_SPEC>
0x20 - System timer target 1, low 32 bits
sourcepub fn target2_hi(&self) -> &Reg<TARGET2_HI_SPEC>
pub fn target2_hi(&self) -> &Reg<TARGET2_HI_SPEC>
0x24 - System timer target 2, high 32 bits
sourcepub fn target2_lo(&self) -> &Reg<TARGET2_LO_SPEC>
pub fn target2_lo(&self) -> &Reg<TARGET2_LO_SPEC>
0x28 - System timer target 2, low 32 bits
sourcepub fn target0_conf(&self) -> &Reg<TARGET0_CONF_SPEC>
pub fn target0_conf(&self) -> &Reg<TARGET0_CONF_SPEC>
0x2c - Configure work mode for system timer target 0
sourcepub fn target1_conf(&self) -> &Reg<TARGET1_CONF_SPEC>
pub fn target1_conf(&self) -> &Reg<TARGET1_CONF_SPEC>
0x30 - Configure work mode for system timer target 1
sourcepub fn target2_conf(&self) -> &Reg<TARGET2_CONF_SPEC>
pub fn target2_conf(&self) -> &Reg<TARGET2_CONF_SPEC>
0x34 - Configure work mode for system timer target 2
sourcepub fn unit0_op(&self) -> &Reg<UNIT0_OP_SPEC>
pub fn unit0_op(&self) -> &Reg<UNIT0_OP_SPEC>
0x38 - Read out system timer value
sourcepub fn unit0_value_hi(&self) -> &Reg<UNIT0_VALUE_HI_SPEC>
pub fn unit0_value_hi(&self) -> &Reg<UNIT0_VALUE_HI_SPEC>
0x3c - System timer value, high 32 bits
sourcepub fn unit0_value_lo(&self) -> &Reg<UNIT0_VALUE_LO_SPEC>
pub fn unit0_value_lo(&self) -> &Reg<UNIT0_VALUE_LO_SPEC>
0x40 - System timer value, low 32 bits
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x44 - System timer interrupt enable
sourcepub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x48 - System timer interrupt raw
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x4c - System timer interrupt clear