1#[doc = "Register `DIV_QUOTIENT` reader"]
2pub type R = crate::R<DIV_QUOTIENT_SPEC>;
3#[doc = "Register `DIV_QUOTIENT` writer"]
4pub type W = crate::W<DIV_QUOTIENT_SPEC>;
5impl core::fmt::Debug for R {
6fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
7write!(f, "{}", self.bits())
8 }
9}
10impl core::fmt::Debug for crate::generic::Reg<DIV_QUOTIENT_SPEC> {
11fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
12 core::fmt::Debug::fmt(&self.read(), f)
13 }
14}
15impl W {
16#[doc = r" Writes raw bits to the register."]
17 #[doc = r""]
18 #[doc = r" # Safety"]
19 #[doc = r""]
20 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
21 #[inline(always)]
22pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
23self.bits = bits;
24self
25}
26}
27#[doc = "Divider result quotient
28 The result of `DIVIDEND / DIVISOR` (division). Contents undefined while CSR_READY is low.
29 For signed calculations, QUOTIENT is negative when the signs of DIVIDEND and DIVISOR differ.
30 This register can be written to directly, for context save/restore purposes. This halts any
31 in-progress calculation and sets the CSR_READY and CSR_DIRTY flags.
32 Reading from QUOTIENT clears the CSR_DIRTY flag, so should read results in the order
33 REMAINDER, QUOTIENT if CSR_DIRTY is used.
3435You can [`read`](crate::generic::Reg::read) this register and get [`div_quotient::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`div_quotient::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
36pub struct DIV_QUOTIENT_SPEC;
37impl crate::RegisterSpec for DIV_QUOTIENT_SPEC {
38type Ux = u32;
39}
40#[doc = "`read()` method returns [`div_quotient::R`](R) reader structure"]
41impl crate::Readable for DIV_QUOTIENT_SPEC {}
42#[doc = "`write(|w| ..)` method takes [`div_quotient::W`](W) writer structure"]
43impl crate::Writable for DIV_QUOTIENT_SPEC {
44const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
45const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
46}
47#[doc = "`reset()` method sets DIV_QUOTIENT to value 0"]
48impl crate::Resettable for DIV_QUOTIENT_SPEC {
49const RESET_VALUE: u32 = 0;
50}