xmc4800/ecat0/
al_status_code.rs1#[doc = "Register `AL_STATUS_CODE` reader"]
2pub type R = crate::R<AL_STATUS_CODE_SPEC>;
3#[doc = "Register `AL_STATUS_CODE` writer"]
4pub type W = crate::W<AL_STATUS_CODE_SPEC>;
5#[doc = "Field `AL_S_CODE` reader - AL Status Code"]
6pub type AL_S_CODE_R = crate::FieldReader<u16>;
7#[doc = "Field `AL_S_CODE` writer - AL Status Code"]
8pub type AL_S_CODE_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9impl R {
10 #[doc = "Bits 0:15 - AL Status Code"]
11 #[inline(always)]
12 pub fn al_s_code(&self) -> AL_S_CODE_R {
13 AL_S_CODE_R::new(self.bits)
14 }
15}
16impl W {
17 #[doc = "Bits 0:15 - AL Status Code"]
18 #[inline(always)]
19 pub fn al_s_code(&mut self) -> AL_S_CODE_W<AL_STATUS_CODE_SPEC> {
20 AL_S_CODE_W::new(self, 0)
21 }
22}
23#[doc = "AL Status Code\n\nYou can [`read`](crate::Reg::read) this register and get [`al_status_code::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`al_status_code::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct AL_STATUS_CODE_SPEC;
25impl crate::RegisterSpec for AL_STATUS_CODE_SPEC {
26 type Ux = u16;
27}
28#[doc = "`read()` method returns [`al_status_code::R`](R) reader structure"]
29impl crate::Readable for AL_STATUS_CODE_SPEC {}
30#[doc = "`write(|w| ..)` method takes [`al_status_code::W`](W) writer structure"]
31impl crate::Writable for AL_STATUS_CODE_SPEC {
32 type Safety = crate::Unsafe;
33 const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
34 const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
35}
36#[doc = "`reset()` method sets AL_STATUS_CODE to value 0"]
37impl crate::Resettable for AL_STATUS_CODE_SPEC {
38 const RESET_VALUE: u16 = 0;
39}