#[doc = "Register `ARG` reader"]
pub type R = crate::R<ArgSpec>;
#[doc = "Register `ARG` writer"]
pub type W = crate::W<ArgSpec>;
#[doc = "Field `CMDARG` reader - Command argument"]
pub type CmdargR = crate::FieldReader<u32>;
#[doc = "Field `CMDARG` writer - Command argument"]
pub type CmdargW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[doc = "Bits 0:31 - Command argument"]
#[inline(always)]
pub fn cmdarg(&self) -> CmdargR {
CmdargR::new(self.bits)
}
}
impl W {
#[doc = "Bits 0:31 - Command argument"]
#[inline(always)]
pub fn cmdarg(&mut self) -> CmdargW<'_, ArgSpec> {
CmdargW::new(self, 0)
}
}
#[doc = "Bits 31:0 = : Command argument\n\nYou 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)."]
pub struct ArgSpec;
impl crate::RegisterSpec for ArgSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`arg::R`](R) reader structure"]
impl crate::Readable for ArgSpec {}
#[doc = "`write(|w| ..)` method takes [`arg::W`](W) writer structure"]
impl crate::Writable for ArgSpec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets ARG to value 0"]
impl crate::Resettable for ArgSpec {}