#[doc = "Reader of register FSM_STEP_SIZE"]
pub type R = crate::R<u32, super::FSM_STEP_SIZE>;
#[doc = "Writer for register FSM_STEP_SIZE"]
pub type W = crate::W<u32, super::FSM_STEP_SIZE>;
#[doc = "Register FSM_STEP_SIZE `reset()`'s with value 0"]
impl crate::ResetValue for super::FSM_STEP_SIZE {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Reader of field `RESERVED25`"]
pub type RESERVED25_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `RESERVED25`"]
pub struct RESERVED25_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED25_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 & !(0x7f << 25)) | (((value as u32) & 0x7f) << 25);
self.w
}
}
#[doc = "Reader of field `EC_STEP_SIZE`"]
pub type EC_STEP_SIZE_R = crate::R<u16, u16>;
#[doc = "Write proxy for field `EC_STEP_SIZE`"]
pub struct EC_STEP_SIZE_W<'a> {
w: &'a mut W,
}
impl<'a> EC_STEP_SIZE_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u16) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01ff << 16)) | (((value as u32) & 0x01ff) << 16);
self.w
}
}
#[doc = "Reader of field `RESERVED0`"]
pub type RESERVED0_R = crate::R<u16, u16>;
#[doc = "Write proxy for field `RESERVED0`"]
pub struct RESERVED0_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED0_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u16) -> &'a mut W {
self.w.bits = (self.w.bits & !0xffff) | ((value as u32) & 0xffff);
self.w
}
}
impl R {
#[doc = "Bits 25:31 - 31:25\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved25(&self) -> RESERVED25_R {
RESERVED25_R::new(((self.bits >> 25) & 0x7f) as u8)
}
#[doc = "Bits 16:24 - 24:16\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn ec_step_size(&self) -> EC_STEP_SIZE_R {
EC_STEP_SIZE_R::new(((self.bits >> 16) & 0x01ff) as u16)
}
#[doc = "Bits 0:15 - 15:0\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved0(&self) -> RESERVED0_R {
RESERVED0_R::new((self.bits & 0xffff) as u16)
}
}
impl W {
#[doc = "Bits 25:31 - 31:25\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved25(&mut self) -> RESERVED25_W {
RESERVED25_W { w: self }
}
#[doc = "Bits 16:24 - 24:16\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn ec_step_size(&mut self) -> EC_STEP_SIZE_W {
EC_STEP_SIZE_W { w: self }
}
#[doc = "Bits 0:15 - 15:0\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved0(&mut self) -> RESERVED0_W {
RESERVED0_W { w: self }
}
}