#[doc = r" Value read from the register"]
pub struct R {
bits: u32,
}
impl super::TEMP {
#[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 RESERVED17R {
bits: u16,
}
impl RESERVED17R {
#[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 INTR {
bits: u16,
}
impl INTR {
#[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 RESERVED0R {
bits: u8,
}
impl RESERVED0R {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bits 17:31 - Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior."]
#[inline]
pub fn reserved17(&self) -> RESERVED17R {
let bits = {
const MASK: u16 = 32767;
const OFFSET: u8 = 17;
((self.bits >> OFFSET) & MASK as u32) as u16
};
RESERVED17R { bits }
}
#[doc = "Bits 8:16 - Integer part (signed) of temperature value. Total value = INTEGER + FRACTIONAL 2's complement encoding 0x100: Min value 0x1D8: -40C 0x1FF: -1C 0x00: 0C 0x1B: 27C 0x55: 85C 0xFF: Max value"]
#[inline]
pub fn int(&self) -> INTR {
let bits = {
const MASK: u16 = 511;
const OFFSET: u8 = 8;
((self.bits >> OFFSET) & MASK as u32) as u16
};
INTR { bits }
}
#[doc = "Bits 0:7 - Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior."]
#[inline]
pub fn reserved0(&self) -> RESERVED0R {
let bits = {
const MASK: u8 = 255;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) as u8
};
RESERVED0R { bits }
}
}