at32f4xx_pac/at32f403/tmr6/
div.rs1#[doc = "Register `DIV` reader"]
2pub type R = crate::R<DIV_SPEC>;
3#[doc = "Register `DIV` writer"]
4pub type W = crate::W<DIV_SPEC>;
5impl core::fmt::Debug for R {
6 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
7 write!(f, "{}", self.bits())
8 }
9}
10impl W {}
11#[doc = "Divider value\n\nYou can [`read`](crate::Reg::read) this register and get [`div::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`div::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
12pub struct DIV_SPEC;
13impl crate::RegisterSpec for DIV_SPEC {
14 type Ux = u16;
15}
16#[doc = "`read()` method returns [`div::R`](R) reader structure"]
17impl crate::Readable for DIV_SPEC {}
18#[doc = "`write(|w| ..)` method takes [`div::W`](W) writer structure"]
19impl crate::Writable for DIV_SPEC {
20 type Safety = crate::Safe;
21 const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
22 const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
23}
24#[doc = "`reset()` method sets DIV to value 0"]
25impl crate::Resettable for DIV_SPEC {
26 const RESET_VALUE: u16 = 0;
27}