1#[doc = "Register `CAL_GAR[%s]` reader"]
2pub type R = crate::R<CalGarSpec>;
3#[doc = "Register `CAL_GAR[%s]` writer"]
4pub type W = crate::W<CalGarSpec>;
5#[doc = "Field `CAL_GAR_VAL` reader - Calibration General A Side Register Element"]
6pub type CalGarValR = crate::FieldReader<u16>;
7#[doc = "Field `CAL_GAR_VAL` writer - Calibration General A Side Register Element"]
8pub type CalGarValW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9impl R {
10 #[doc = "Bits 0:15 - Calibration General A Side Register Element"]
11 #[inline(always)]
12 pub fn cal_gar_val(&self) -> CalGarValR {
13 CalGarValR::new((self.bits & 0xffff) as u16)
14 }
15}
16#[cfg(feature = "debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("CAL_GAR")
20 .field("cal_gar_val", &self.cal_gar_val())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bits 0:15 - Calibration General A Side Register Element"]
26 #[inline(always)]
27 pub fn cal_gar_val(&mut self) -> CalGarValW<'_, CalGarSpec> {
28 CalGarValW::new(self, 0)
29 }
30}
31#[doc = "Calibration General A-Side Registers\n\nYou can [`read`](crate::Reg::read) this register and get [`cal_gar::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cal_gar::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct CalGarSpec;
33impl crate::RegisterSpec for CalGarSpec {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`cal_gar::R`](R) reader structure"]
37impl crate::Readable for CalGarSpec {}
38#[doc = "`write(|w| ..)` method takes [`cal_gar::W`](W) writer structure"]
39impl crate::Writable for CalGarSpec {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets CAL_GAR[%s] to value 0"]
43impl crate::Resettable for CalGarSpec {}