1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#[doc = "Register `HALP` reader"]
pub type R = crate::R<HalpSpec>;
#[doc = "Field `HCP` reader - Hall Current Pattern"]
pub type HcpR = crate::FieldReader;
#[doc = "Field `HEP` reader - Hall Expected Pattern"]
pub type HepR = crate::FieldReader;
impl R {
    #[doc = "Bits 0:2 - Hall Current Pattern"]
    #[inline(always)]
    pub fn hcp(&self) -> HcpR {
        HcpR::new((self.bits & 7) as u8)
    }
    #[doc = "Bits 3:5 - Hall Expected Pattern"]
    #[inline(always)]
    pub fn hep(&self) -> HepR {
        HepR::new(((self.bits >> 3) & 7) as u8)
    }
}
#[doc = "Hall Sensor Patterns\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`halp::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct HalpSpec;
impl crate::RegisterSpec for HalpSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`halp::R`](R) reader structure"]
impl crate::Readable for HalpSpec {}
#[doc = "`reset()` method sets HALP to value 0"]
impl crate::Resettable for HalpSpec {
    const RESET_VALUE: u32 = 0;
}