1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#[doc = "Reader of register CAPTUREn_H"] pub type R = crate::R<u32, super::CAPTUREN_H>; #[doc = "Writer for register CAPTUREn_H"] pub type W = crate::W<u32, super::CAPTUREN_H>; #[doc = "Register CAPTUREn_H `reset()`'s with value 0"] impl crate::ResetValue for super::CAPTUREN_H { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Reader of field `CAPTUREn_VALUE`"] pub type CAPTUREN_VALUE_R = crate::R<u16, u16>; impl R { #[doc = "Bits 0:9 - A read reflects the value of the upper 32 bits of the central EVTIMER at the time the last capture signal was generated by the CPU. A separate pair of CAPTURE registers are implemented for each CPU. Each CPU reads its own capture value at the same pair of addresses."] #[inline(always)] pub fn capturen_value(&self) -> CAPTUREN_VALUE_R { CAPTUREN_VALUE_R::new((self.bits & 0x03ff) as u16) } } impl W {}