rp2040 0.1.0

Peripheral access API for rp2040 microcontrollers (generated using svd2rust)
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[doc = "Reader of register SM2_ADDR"]
pub type R = crate::R<u32, super::SM2_ADDR>;
#[doc = "Reader of field `SM2_ADDR`"]
pub type SM2_ADDR_R = crate::R<u8, u8>;
impl R {
    #[doc = "Bits 0:4"]
    #[inline(always)]
    pub fn sm2_addr(&self) -> SM2_ADDR_R {
        SM2_ADDR_R::new((self.bits & 0x1f) as u8)
    }
}