cc13x2 0.2.0

Peripheral Access Crate for CC13x2 MCUs.
Documentation
#[doc = "Reader of register FSM_EC_STEP_HEIGHT"]
pub type R = crate::R<u32, super::FSM_EC_STEP_HEIGHT>;
#[doc = "Writer for register FSM_EC_STEP_HEIGHT"]
pub type W = crate::W<u32, super::FSM_EC_STEP_HEIGHT>;
#[doc = "Register FSM_EC_STEP_HEIGHT `reset()`'s with value 0"]
impl crate::ResetValue for super::FSM_EC_STEP_HEIGHT {
    type Type = u32;
    #[inline(always)]
    fn reset_value() -> Self::Type {
        0
    }
}
#[doc = "Reader of field `RESERVED4`"]
pub type RESERVED4_R = crate::R<u32, u32>;
#[doc = "Write proxy for field `RESERVED4`"]
pub struct RESERVED4_W<'a> {
    w: &'a mut W,
}
impl<'a> RESERVED4_W<'a> {
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u32) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x0fff_ffff << 4)) | (((value as u32) & 0x0fff_ffff) << 4);
        self.w
    }
}
#[doc = "Reader of field `EC_STEP_HEIGHT`"]
pub type EC_STEP_HEIGHT_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `EC_STEP_HEIGHT`"]
pub struct EC_STEP_HEIGHT_W<'a> {
    w: &'a mut W,
}
impl<'a> EC_STEP_HEIGHT_W<'a> {
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u8) -> &'a mut W {
        self.w.bits = (self.w.bits & !0x0f) | ((value as u32) & 0x0f);
        self.w
    }
}
impl R {
    #[doc = "Bits 4:31 - 31:4\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn reserved4(&self) -> RESERVED4_R {
        RESERVED4_R::new(((self.bits >> 4) & 0x0fff_ffff) as u32)
    }
    #[doc = "Bits 0:3 - 3:0\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn ec_step_height(&self) -> EC_STEP_HEIGHT_R {
        EC_STEP_HEIGHT_R::new((self.bits & 0x0f) as u8)
    }
}
impl W {
    #[doc = "Bits 4:31 - 31:4\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn reserved4(&mut self) -> RESERVED4_W {
        RESERVED4_W { w: self }
    }
    #[doc = "Bits 0:3 - 3:0\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn ec_step_height(&mut self) -> EC_STEP_HEIGHT_W {
        EC_STEP_HEIGHT_W { w: self }
    }
}