#[doc = r" Value read from the register"]
pub struct R {
bits: u32,
}
impl super::CCSIDR {
#[doc = r" Reads the contents of the register"]
#[inline]
pub fn read(&self) -> R {
R {
bits: self.register.get(),
}
}
}
#[doc = r" Value of the field"]
pub struct LINESIZER {
bits: u8,
}
impl LINESIZER {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct ASSOCIATIVITYR {
bits: u16,
}
impl ASSOCIATIVITYR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u16 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct NUMSETSR {
bits: u16,
}
impl NUMSETSR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u16 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct WAR {
bits: bool,
}
impl WAR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct RAR {
bits: bool,
}
impl RAR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct WBR {
bits: bool,
}
impl WBR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct WTR {
bits: bool,
}
impl WTR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bits 0:2 - LineSize"]
#[inline]
pub fn line_size(&self) -> LINESIZER {
let bits = {
const MASK: u8 = 7;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) as u8
};
LINESIZER { bits }
}
#[doc = "Bits 3:12 - Associativity"]
#[inline]
pub fn associativity(&self) -> ASSOCIATIVITYR {
let bits = {
const MASK: u16 = 1023;
const OFFSET: u8 = 3;
((self.bits >> OFFSET) & MASK as u32) as u16
};
ASSOCIATIVITYR { bits }
}
#[doc = "Bits 13:27 - NumSets"]
#[inline]
pub fn num_sets(&self) -> NUMSETSR {
let bits = {
const MASK: u16 = 32767;
const OFFSET: u8 = 13;
((self.bits >> OFFSET) & MASK as u32) as u16
};
NUMSETSR { bits }
}
#[doc = "Bit 28 - WA"]
#[inline]
pub fn wa(&self) -> WAR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 28;
((self.bits >> OFFSET) & MASK as u32) != 0
};
WAR { bits }
}
#[doc = "Bit 29 - RA"]
#[inline]
pub fn ra(&self) -> RAR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 29;
((self.bits >> OFFSET) & MASK as u32) != 0
};
RAR { bits }
}
#[doc = "Bit 30 - WB"]
#[inline]
pub fn wb(&self) -> WBR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 30;
((self.bits >> OFFSET) & MASK as u32) != 0
};
WBR { bits }
}
#[doc = "Bit 31 - WT"]
#[inline]
pub fn wt(&self) -> WTR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 31;
((self.bits >> OFFSET) & MASK as u32) != 0
};
WTR { bits }
}
}