d1_pac/dmac/
dmac_pkg_num.rs

1#[doc = "Register `dmac_pkg_num%s` reader"]
2pub type R = crate::R<DMAC_PKG_NUM_SPEC>;
3impl core::fmt::Debug for R {
4    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
5        write!(f, "{}", self.bits())
6    }
7}
8impl core::fmt::Debug for crate::generic::Reg<DMAC_PKG_NUM_SPEC> {
9    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
10        core::fmt::Debug::fmt(&self.read(), f)
11    }
12}
13#[doc = "DMAC Package Number Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmac_pkg_num::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
14pub struct DMAC_PKG_NUM_SPEC;
15impl crate::RegisterSpec for DMAC_PKG_NUM_SPEC {
16    type Ux = u32;
17}
18#[doc = "`read()` method returns [`dmac_pkg_num::R`](R) reader structure"]
19impl crate::Readable for DMAC_PKG_NUM_SPEC {}
20#[doc = "`reset()` method sets dmac_pkg_num%s to value 0"]
21impl crate::Resettable for DMAC_PKG_NUM_SPEC {
22    const RESET_VALUE: Self::Ux = 0;
23}