stm32f1_staging/stm32f103/sdio/arg.rs
1///Register `ARG` reader
2pub type R = crate::R<ARGrs>;
3///Register `ARG` writer
4pub type W = crate::W<ARGrs>;
5///Field `CMDARG` reader - Command argument
6pub type CMDARG_R = crate::FieldReader<u32>;
7///Field `CMDARG` writer - Command argument
8pub type CMDARG_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10 ///Bits 0:31 - Command argument
11 #[inline(always)]
12 pub fn cmdarg(&self) -> CMDARG_R {
13 CMDARG_R::new(self.bits)
14 }
15}
16impl core::fmt::Debug for R {
17 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18 f.debug_struct("ARG").field("cmdarg", &self.cmdarg()).finish()
19 }
20}
21impl W {
22 ///Bits 0:31 - Command argument
23 #[inline(always)]
24 pub fn cmdarg(&mut self) -> CMDARG_W<ARGrs> {
25 CMDARG_W::new(self, 0)
26 }
27}
28/**Bits 31:0 = : Command argument
29
30You can [`read`](crate::Reg::read) this register and get [`arg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:ARG)*/
33pub struct ARGrs;
34impl crate::RegisterSpec for ARGrs {
35 type Ux = u32;
36}
37///`read()` method returns [`arg::R`](R) reader structure
38impl crate::Readable for ARGrs {}
39///`write(|w| ..)` method takes [`arg::W`](W) writer structure
40impl crate::Writable for ARGrs {
41 type Safety = crate::Unsafe;
42}
43///`reset()` method sets ARG to value 0
44impl crate::Resettable for ARGrs {}