#[doc = "Reader of register FSEQPMP"]
pub type R = crate::R<u32, super::FSEQPMP>;
#[doc = "Writer for register FSEQPMP"]
pub type W = crate::W<u32, super::FSEQPMP>;
#[doc = "Register FSEQPMP `reset()`'s with value 0x8508_0000"]
impl crate::ResetValue for super::FSEQPMP {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0x8508_0000
}
}
#[doc = "Reader of field `RESERVED28`"]
pub type RESERVED28_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `RESERVED28`"]
pub struct RESERVED28_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED28_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 << 28)) | (((value as u32) & 0x0f) << 28);
self.w
}
}
#[doc = "Reader of field `TRIM_3P4`"]
pub type TRIM_3P4_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `TRIM_3P4`"]
pub struct TRIM_3P4_W<'a> {
w: &'a mut W,
}
impl<'a> TRIM_3P4_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 << 24)) | (((value as u32) & 0x0f) << 24);
self.w
}
}
#[doc = "Reader of field `RESERVED22`"]
pub type RESERVED22_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `RESERVED22`"]
pub struct RESERVED22_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED22_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 & !(0x03 << 22)) | (((value as u32) & 0x03) << 22);
self.w
}
}
#[doc = "Reader of field `TRIM_1P7`"]
pub type TRIM_1P7_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `TRIM_1P7`"]
pub struct TRIM_1P7_W<'a> {
w: &'a mut W,
}
impl<'a> TRIM_1P7_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 & !(0x03 << 20)) | (((value as u32) & 0x03) << 20);
self.w
}
}
#[doc = "Reader of field `TRIM_0P8`"]
pub type TRIM_0P8_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `TRIM_0P8`"]
pub struct TRIM_0P8_W<'a> {
w: &'a mut W,
}
impl<'a> TRIM_0P8_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 << 16)) | (((value as u32) & 0x0f) << 16);
self.w
}
}
#[doc = "Reader of field `RESERVED15`"]
pub type RESERVED15_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RESERVED15`"]
pub struct RESERVED15_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED15_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15);
self.w
}
}
#[doc = "Reader of field `VIN_AT_X`"]
pub type VIN_AT_X_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `VIN_AT_X`"]
pub struct VIN_AT_X_W<'a> {
w: &'a mut W,
}
impl<'a> VIN_AT_X_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 & !(0x07 << 12)) | (((value as u32) & 0x07) << 12);
self.w
}
}
#[doc = "Reader of field `RESERVED9`"]
pub type RESERVED9_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `RESERVED9`"]
pub struct RESERVED9_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED9_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 & !(0x07 << 9)) | (((value as u32) & 0x07) << 9);
self.w
}
}
#[doc = "Reader of field `VIN_BY_PASS`"]
pub type VIN_BY_PASS_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `VIN_BY_PASS`"]
pub struct VIN_BY_PASS_W<'a> {
w: &'a mut W,
}
impl<'a> VIN_BY_PASS_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = "Reader of field `SEQ_PUMP`"]
pub type SEQ_PUMP_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `SEQ_PUMP`"]
pub struct SEQ_PUMP_W<'a> {
w: &'a mut W,
}
impl<'a> SEQ_PUMP_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 & !0xff) | ((value as u32) & 0xff);
self.w
}
}
impl R {
#[doc = "Bits 28:31 - 31:28\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved28(&self) -> RESERVED28_R {
RESERVED28_R::new(((self.bits >> 28) & 0x0f) as u8)
}
#[doc = "Bits 24:27 - 27:24\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn trim_3p4(&self) -> TRIM_3P4_R {
TRIM_3P4_R::new(((self.bits >> 24) & 0x0f) as u8)
}
#[doc = "Bits 22:23 - 23:22\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved22(&self) -> RESERVED22_R {
RESERVED22_R::new(((self.bits >> 22) & 0x03) as u8)
}
#[doc = "Bits 20:21 - 21:20\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn trim_1p7(&self) -> TRIM_1P7_R {
TRIM_1P7_R::new(((self.bits >> 20) & 0x03) as u8)
}
#[doc = "Bits 16:19 - 19:16\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn trim_0p8(&self) -> TRIM_0P8_R {
TRIM_0P8_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[doc = "Bit 15 - 15:15\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved15(&self) -> RESERVED15_R {
RESERVED15_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bits 12:14 - 14:12\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn vin_at_x(&self) -> VIN_AT_X_R {
VIN_AT_X_R::new(((self.bits >> 12) & 0x07) as u8)
}
#[doc = "Bits 9:11 - 11:9\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved9(&self) -> RESERVED9_R {
RESERVED9_R::new(((self.bits >> 9) & 0x07) as u8)
}
#[doc = "Bit 8 - 8:8\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn vin_by_pass(&self) -> VIN_BY_PASS_R {
VIN_BY_PASS_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bits 0:7 - 7:0\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn seq_pump(&self) -> SEQ_PUMP_R {
SEQ_PUMP_R::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 28:31 - 31:28\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved28(&mut self) -> RESERVED28_W {
RESERVED28_W { w: self }
}
#[doc = "Bits 24:27 - 27:24\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn trim_3p4(&mut self) -> TRIM_3P4_W {
TRIM_3P4_W { w: self }
}
#[doc = "Bits 22:23 - 23:22\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved22(&mut self) -> RESERVED22_W {
RESERVED22_W { w: self }
}
#[doc = "Bits 20:21 - 21:20\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn trim_1p7(&mut self) -> TRIM_1P7_W {
TRIM_1P7_W { w: self }
}
#[doc = "Bits 16:19 - 19:16\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn trim_0p8(&mut self) -> TRIM_0P8_W {
TRIM_0P8_W { w: self }
}
#[doc = "Bit 15 - 15:15\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved15(&mut self) -> RESERVED15_W {
RESERVED15_W { w: self }
}
#[doc = "Bits 12:14 - 14:12\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn vin_at_x(&mut self) -> VIN_AT_X_W {
VIN_AT_X_W { w: self }
}
#[doc = "Bits 9:11 - 11:9\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved9(&mut self) -> RESERVED9_W {
RESERVED9_W { w: self }
}
#[doc = "Bit 8 - 8:8\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn vin_by_pass(&mut self) -> VIN_BY_PASS_W {
VIN_BY_PASS_W { w: self }
}
#[doc = "Bits 0:7 - 7:0\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn seq_pump(&mut self) -> SEQ_PUMP_W {
SEQ_PUMP_W { w: self }
}
}