#[doc = "Register `FH0_STATUS` reader"]
pub type R = crate::R<FH0_STATUS_SPEC>;
#[doc = "Field `FH0_CBC_ON` reader - "]
pub type FH0_CBC_ON_R = crate::BitReader;
#[doc = "Field `FH0_OST_ON` reader - "]
pub type FH0_OST_ON_R = crate::BitReader;
impl R {
#[doc = "Bit 0"]
#[inline(always)]
pub fn fh0_cbc_on(&self) -> FH0_CBC_ON_R {
FH0_CBC_ON_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1"]
#[inline(always)]
pub fn fh0_ost_on(&self) -> FH0_OST_ON_R {
FH0_OST_ON_R::new(((self.bits >> 1) & 1) != 0)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FH0_STATUS")
.field("fh0_cbc_on", &format_args!("{}", self.fh0_cbc_on().bit()))
.field("fh0_ost_on", &format_args!("{}", self.fh0_ost_on().bit()))
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<FH0_STATUS_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.read(), f)
}
}
#[doc = "\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fh0_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FH0_STATUS_SPEC;
impl crate::RegisterSpec for FH0_STATUS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`fh0_status::R`](R) reader structure"]
impl crate::Readable for FH0_STATUS_SPEC {}
#[doc = "`reset()` method sets FH0_STATUS to value 0"]
impl crate::Resettable for FH0_STATUS_SPEC {
const RESET_VALUE: Self::Ux = 0;
}