rp2040_pac/tbman/
platform.rs

1#[doc = "Register `PLATFORM` reader"]
2pub type R = crate::R<PLATFORM_SPEC>;
3#[doc = "Field `ASIC` reader - Indicates the platform is an ASIC"]
4pub type ASIC_R = crate::BitReader;
5#[doc = "Field `FPGA` reader - Indicates the platform is an FPGA"]
6pub type FPGA_R = crate::BitReader;
7impl R {
8    #[doc = "Bit 0 - Indicates the platform is an ASIC"]
9    #[inline(always)]
10    pub fn asic(&self) -> ASIC_R {
11        ASIC_R::new((self.bits & 1) != 0)
12    }
13    #[doc = "Bit 1 - Indicates the platform is an FPGA"]
14    #[inline(always)]
15    pub fn fpga(&self) -> FPGA_R {
16        FPGA_R::new(((self.bits >> 1) & 1) != 0)
17    }
18}
19#[doc = "Indicates the type of platform in use  
20
21You can [`read`](crate::generic::Reg::read) this register and get [`platform::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
22pub struct PLATFORM_SPEC;
23impl crate::RegisterSpec for PLATFORM_SPEC {
24    type Ux = u32;
25}
26#[doc = "`read()` method returns [`platform::R`](R) reader structure"]
27impl crate::Readable for PLATFORM_SPEC {}
28#[doc = "`reset()` method sets PLATFORM to value 0x05"]
29impl crate::Resettable for PLATFORM_SPEC {
30    const RESET_VALUE: u32 = 0x05;
31}