pub struct IR { /* private fields */ }
Expand description
Infrared receiver module
Implementations§
Source§impl IR
impl IR
Sourcepub const PTR: *const RegisterBlock = {0x2000a600 as *const ir::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2000a600 as *const ir::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn transmit_config(&self) -> &TRANSMIT_CONFIG
pub fn transmit_config(&self) -> &TRANSMIT_CONFIG
0x00 - ??
Sourcepub fn transmit_interrupt(&self) -> &TRANSMIT_INTERRUPT
pub fn transmit_interrupt(&self) -> &TRANSMIT_INTERRUPT
0x04 - ??
Sourcepub fn transmit_data(&self, n: usize) -> &TRANSMIT_DATA
pub fn transmit_data(&self, n: usize) -> &TRANSMIT_DATA
0x08..0x10 - ??
Sourcepub fn transmit_data_iter(&self) -> impl Iterator<Item = &TRANSMIT_DATA>
pub fn transmit_data_iter(&self) -> impl Iterator<Item = &TRANSMIT_DATA>
Iterator for array of: 0x08..0x10 - ??
Sourcepub fn transmit_width(&self) -> &TRANSMIT_WIDTH
pub fn transmit_width(&self) -> &TRANSMIT_WIDTH
0x10 - ??
Sourcepub fn receive_config(&self) -> &RECEIVE_CONFIG
pub fn receive_config(&self) -> &RECEIVE_CONFIG
0x80 - ??
Sourcepub fn receive_interrupt(&self) -> &RECEIVE_INTERRUPT
pub fn receive_interrupt(&self) -> &RECEIVE_INTERRUPT
0x84 - ??
Sourcepub fn receive_width(&self) -> &RECEIVE_WIDTH
pub fn receive_width(&self) -> &RECEIVE_WIDTH
0x88 - ??
Sourcepub fn receive_bit_count(&self) -> &RECEIVE_BIT_COUNT
pub fn receive_bit_count(&self) -> &RECEIVE_BIT_COUNT
0x90 - ??
Sourcepub fn receive_data(&self, n: usize) -> &RECEIVE_DATA
pub fn receive_data(&self, n: usize) -> &RECEIVE_DATA
0x94..0x9c - ??
Sourcepub fn receive_data_iter(&self) -> impl Iterator<Item = &RECEIVE_DATA>
pub fn receive_data_iter(&self) -> impl Iterator<Item = &RECEIVE_DATA>
Iterator for array of: 0x94..0x9c - ??