efm32pg12-pac 0.3.0

Peripheral access API for Silicon Labs EFM32PG12 microcontrollers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[doc = "Reader of register SCANDATAXP"]
pub type R = crate::R<u32, super::SCANDATAXP>;
#[doc = "Reader of field `DATAP`"]
pub type DATAP_R = crate::R<u16, u16>;
#[doc = "Reader of field `SCANINPUTIDPEEK`"]
pub type SCANINPUTIDPEEK_R = crate::R<u8, u8>;
impl R {
    #[doc = "Bits 0:15 - Scan Conversion Result Data Peek"]
    #[inline(always)]
    pub fn datap(&self) -> DATAP_R {
        DATAP_R::new((self.bits & 0xffff) as u16)
    }
    #[doc = "Bits 16:20 - Scan Conversion Data Source Peek"]
    #[inline(always)]
    pub fn scaninputidpeek(&self) -> SCANINPUTIDPEEK_R {
        SCANINPUTIDPEEK_R::new(((self.bits >> 16) & 0x1f) as u8)
    }
}