cc2538_pac/ioc/
pc1_sel.rs1#[doc = "Register `PC1_SEL` reader"]
2pub type R = crate::R<Pc1SelSpec>;
3#[doc = "Register `PC1_SEL` writer"]
4pub type W = crate::W<Pc1SelSpec>;
5#[doc = "Field `PC1_sel` reader - Select one peripheral signal output for PC1."]
6pub type Pc1SelR = crate::FieldReader;
7#[doc = "Field `PC1_sel` writer - Select one peripheral signal output for PC1."]
8pub type Pc1SelW<'a, REG> = crate::FieldWriter<'a, REG, 5>;
9impl R {
10 #[doc = "Bits 0:4 - Select one peripheral signal output for PC1."]
11 #[inline(always)]
12 pub fn pc1_sel(&self) -> Pc1SelR {
13 Pc1SelR::new((self.bits & 0x1f) as u8)
14 }
15}
16impl W {
17 #[doc = "Bits 0:4 - Select one peripheral signal output for PC1."]
18 #[inline(always)]
19 pub fn pc1_sel(&mut self) -> Pc1SelW<Pc1SelSpec> {
20 Pc1SelW::new(self, 0)
21 }
22}
23#[doc = "Peripheral select control for PC1\n\nYou can [`read`](crate::Reg::read) this register and get [`pc1_sel::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pc1_sel::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct Pc1SelSpec;
25impl crate::RegisterSpec for Pc1SelSpec {
26 type Ux = u32;
27}
28#[doc = "`read()` method returns [`pc1_sel::R`](R) reader structure"]
29impl crate::Readable for Pc1SelSpec {}
30#[doc = "`write(|w| ..)` method takes [`pc1_sel::W`](W) writer structure"]
31impl crate::Writable for Pc1SelSpec {
32 type Safety = crate::Unsafe;
33 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets PC1_SEL to value 0"]
37impl crate::Resettable for Pc1SelSpec {
38 const RESET_VALUE: u32 = 0;
39}