ADuCM302x 0.1.0

A Peripheral Access Crate for the Analog Devices ADuCM302x series of MCUs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[doc = "Reader of register STAT"]
pub type R = crate::R<u32, super::STAT>;
#[doc = "Reader of field `MEN`"]
pub type MEN_R = crate::R<bool, bool>;
#[doc = "Reader of field `CHANM1`"]
pub type CHANM1_R = crate::R<u8, u8>;
impl R {
    #[doc = "Bit 0 - Enable Status of the Controller"]
    #[inline(always)]
    pub fn men(&self) -> MEN_R {
        MEN_R::new((self.bits & 0x01) != 0)
    }
    #[doc = "Bits 16:20 - Number of Available DMA Channels Minus 1"]
    #[inline(always)]
    pub fn chanm1(&self) -> CHANM1_R {
        CHANM1_R::new(((self.bits >> 16) & 0x1f) as u8)
    }
}