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