awr2544_pac/mss_ctrl/
cpsw_hw_trig_ctrl.rs1#[doc = "Register `CPSW_HW_TRIG_CTRL` reader"]
2pub type R = crate::R<CpswHwTrigCtrlSpec>;
3#[doc = "Register `CPSW_HW_TRIG_CTRL` writer"]
4pub type W = crate::W<CpswHwTrigCtrlSpec>;
5#[doc = "Field `CPSW_HW_TRIG_CTRL` reader - 2:0\\]
6Bits \\[1:0\\]
7are used for Genf select line bits 2'b00 : Genf0 2'b01 : Genf1 2'b10 : Genf2 2'b11 : Not used Bit2 is used to select Genf or CPSW_HW_TRIG_VAL"]
8pub type CpswHwTrigCtrlR = crate::FieldReader;
9#[doc = "Field `CPSW_HW_TRIG_CTRL` writer - 2:0\\]
10Bits \\[1:0\\]
11are used for Genf select line bits 2'b00 : Genf0 2'b01 : Genf1 2'b10 : Genf2 2'b11 : Not used Bit2 is used to select Genf or CPSW_HW_TRIG_VAL"]
12pub type CpswHwTrigCtrlW<'a, REG> = crate::FieldWriter<'a, REG, 3>;
13impl R {
14 #[doc = "Bits 0:2 - 2:0\\]
15Bits \\[1:0\\]
16are used for Genf select line bits 2'b00 : Genf0 2'b01 : Genf1 2'b10 : Genf2 2'b11 : Not used Bit2 is used to select Genf or CPSW_HW_TRIG_VAL"]
17 #[inline(always)]
18 pub fn cpsw_hw_trig_ctrl(&self) -> CpswHwTrigCtrlR {
19 CpswHwTrigCtrlR::new((self.bits & 7) as u8)
20 }
21}
22impl W {
23 #[doc = "Bits 0:2 - 2:0\\]
24Bits \\[1:0\\]
25are used for Genf select line bits 2'b00 : Genf0 2'b01 : Genf1 2'b10 : Genf2 2'b11 : Not used Bit2 is used to select Genf or CPSW_HW_TRIG_VAL"]
26 #[inline(always)]
27 #[must_use]
28 pub fn cpsw_hw_trig_ctrl(&mut self) -> CpswHwTrigCtrlW<CpswHwTrigCtrlSpec> {
29 CpswHwTrigCtrlW::new(self, 0)
30 }
31}
32#[doc = "CPSW_HW_TRIG_CTRL\n\nYou can [`read`](crate::Reg::read) this register and get [`cpsw_hw_trig_ctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpsw_hw_trig_ctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
33pub struct CpswHwTrigCtrlSpec;
34impl crate::RegisterSpec for CpswHwTrigCtrlSpec {
35 type Ux = u32;
36}
37#[doc = "`read()` method returns [`cpsw_hw_trig_ctrl::R`](R) reader structure"]
38impl crate::Readable for CpswHwTrigCtrlSpec {}
39#[doc = "`write(|w| ..)` method takes [`cpsw_hw_trig_ctrl::W`](W) writer structure"]
40impl crate::Writable for CpswHwTrigCtrlSpec {
41 type Safety = crate::Unsafe;
42 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
44}
45#[doc = "`reset()` method sets CPSW_HW_TRIG_CTRL to value 0"]
46impl crate::Resettable for CpswHwTrigCtrlSpec {
47 const RESET_VALUE: u32 = 0;
48}