cc2538_pac/rfcore_xreg/
cspprog_3.rs

1#[doc = "Register `CSPPROG_3` reader"]
2pub type R = crate::R<Cspprog3Spec>;
3#[doc = "Field `CSP_INSTR` reader - Byte N of the CSP program memory"]
4pub type CspInstrR = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - Byte N of the CSP program memory"]
7    #[inline(always)]
8    pub fn csp_instr(&self) -> CspInstrR {
9        CspInstrR::new((self.bits & 0xff) as u8)
10    }
11}
12#[doc = "CSP program\n\nYou can [`read`](crate::Reg::read) this register and get [`cspprog_3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct Cspprog3Spec;
14impl crate::RegisterSpec for Cspprog3Spec {
15    type Ux = u32;
16}
17#[doc = "`read()` method returns [`cspprog_3::R`](R) reader structure"]
18impl crate::Readable for Cspprog3Spec {}
19#[doc = "`reset()` method sets CSPPROG_3 to value 0"]
20impl crate::Resettable for Cspprog3Spec {
21    const RESET_VALUE: u32 = 0;
22}