#[doc = "Register `LC_CONF` reader"]
pub struct R(crate::R<LC_CONF_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<LC_CONF_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<LC_CONF_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<LC_CONF_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `LC_CONF` writer"]
pub struct W(crate::W<LC_CONF_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<LC_CONF_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<LC_CONF_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<LC_CONF_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `IN_RST` reader - "]
pub type IN_RST_R = crate::BitReader<bool>;
#[doc = "Field `IN_RST` writer - "]
pub type IN_RST_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `OUT_RST` reader - "]
pub type OUT_RST_R = crate::BitReader<bool>;
#[doc = "Field `OUT_RST` writer - "]
pub type OUT_RST_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `AHBM_FIFO_RST` reader - "]
pub type AHBM_FIFO_RST_R = crate::BitReader<bool>;
#[doc = "Field `AHBM_FIFO_RST` writer - "]
pub type AHBM_FIFO_RST_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `AHBM_RST` reader - "]
pub type AHBM_RST_R = crate::BitReader<bool>;
#[doc = "Field `AHBM_RST` writer - "]
pub type AHBM_RST_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `OUT_LOOP_TEST` reader - "]
pub type OUT_LOOP_TEST_R = crate::BitReader<bool>;
#[doc = "Field `OUT_LOOP_TEST` writer - "]
pub type OUT_LOOP_TEST_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `IN_LOOP_TEST` reader - "]
pub type IN_LOOP_TEST_R = crate::BitReader<bool>;
#[doc = "Field `IN_LOOP_TEST` writer - "]
pub type IN_LOOP_TEST_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `OUT_AUTO_WRBACK` reader - "]
pub type OUT_AUTO_WRBACK_R = crate::BitReader<bool>;
#[doc = "Field `OUT_AUTO_WRBACK` writer - "]
pub type OUT_AUTO_WRBACK_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `OUT_NO_RESTART_CLR` reader - "]
pub type OUT_NO_RESTART_CLR_R = crate::BitReader<bool>;
#[doc = "Field `OUT_NO_RESTART_CLR` writer - "]
pub type OUT_NO_RESTART_CLR_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `OUT_EOF_MODE` reader - "]
pub type OUT_EOF_MODE_R = crate::BitReader<bool>;
#[doc = "Field `OUT_EOF_MODE` writer - "]
pub type OUT_EOF_MODE_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `OUTDSCR_BURST_EN` reader - "]
pub type OUTDSCR_BURST_EN_R = crate::BitReader<bool>;
#[doc = "Field `OUTDSCR_BURST_EN` writer - "]
pub type OUTDSCR_BURST_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `INDSCR_BURST_EN` reader - "]
pub type INDSCR_BURST_EN_R = crate::BitReader<bool>;
#[doc = "Field `INDSCR_BURST_EN` writer - "]
pub type INDSCR_BURST_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `OUT_DATA_BURST_EN` reader - "]
pub type OUT_DATA_BURST_EN_R = crate::BitReader<bool>;
#[doc = "Field `OUT_DATA_BURST_EN` writer - "]
pub type OUT_DATA_BURST_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `CHECK_OWNER` reader - "]
pub type CHECK_OWNER_R = crate::BitReader<bool>;
#[doc = "Field `CHECK_OWNER` writer - "]
pub type CHECK_OWNER_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
#[doc = "Field `MEM_TRANS_EN` reader - "]
pub type MEM_TRANS_EN_R = crate::BitReader<bool>;
#[doc = "Field `MEM_TRANS_EN` writer - "]
pub type MEM_TRANS_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, LC_CONF_SPEC, bool, O>;
impl R {
#[doc = "Bit 0"]
#[inline(always)]
pub fn in_rst(&self) -> IN_RST_R {
IN_RST_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1"]
#[inline(always)]
pub fn out_rst(&self) -> OUT_RST_R {
OUT_RST_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2"]
#[inline(always)]
pub fn ahbm_fifo_rst(&self) -> AHBM_FIFO_RST_R {
AHBM_FIFO_RST_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3"]
#[inline(always)]
pub fn ahbm_rst(&self) -> AHBM_RST_R {
AHBM_RST_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn out_loop_test(&self) -> OUT_LOOP_TEST_R {
OUT_LOOP_TEST_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn in_loop_test(&self) -> IN_LOOP_TEST_R {
IN_LOOP_TEST_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6"]
#[inline(always)]
pub fn out_auto_wrback(&self) -> OUT_AUTO_WRBACK_R {
OUT_AUTO_WRBACK_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn out_no_restart_clr(&self) -> OUT_NO_RESTART_CLR_R {
OUT_NO_RESTART_CLR_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn out_eof_mode(&self) -> OUT_EOF_MODE_R {
OUT_EOF_MODE_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn outdscr_burst_en(&self) -> OUTDSCR_BURST_EN_R {
OUTDSCR_BURST_EN_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10"]
#[inline(always)]
pub fn indscr_burst_en(&self) -> INDSCR_BURST_EN_R {
INDSCR_BURST_EN_R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11"]
#[inline(always)]
pub fn out_data_burst_en(&self) -> OUT_DATA_BURST_EN_R {
OUT_DATA_BURST_EN_R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12"]
#[inline(always)]
pub fn check_owner(&self) -> CHECK_OWNER_R {
CHECK_OWNER_R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13"]
#[inline(always)]
pub fn mem_trans_en(&self) -> MEM_TRANS_EN_R {
MEM_TRANS_EN_R::new(((self.bits >> 13) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0"]
#[inline(always)]
#[must_use]
pub fn in_rst(&mut self) -> IN_RST_W<0> {
IN_RST_W::new(self)
}
#[doc = "Bit 1"]
#[inline(always)]
#[must_use]
pub fn out_rst(&mut self) -> OUT_RST_W<1> {
OUT_RST_W::new(self)
}
#[doc = "Bit 2"]
#[inline(always)]
#[must_use]
pub fn ahbm_fifo_rst(&mut self) -> AHBM_FIFO_RST_W<2> {
AHBM_FIFO_RST_W::new(self)
}
#[doc = "Bit 3"]
#[inline(always)]
#[must_use]
pub fn ahbm_rst(&mut self) -> AHBM_RST_W<3> {
AHBM_RST_W::new(self)
}
#[doc = "Bit 4"]
#[inline(always)]
#[must_use]
pub fn out_loop_test(&mut self) -> OUT_LOOP_TEST_W<4> {
OUT_LOOP_TEST_W::new(self)
}
#[doc = "Bit 5"]
#[inline(always)]
#[must_use]
pub fn in_loop_test(&mut self) -> IN_LOOP_TEST_W<5> {
IN_LOOP_TEST_W::new(self)
}
#[doc = "Bit 6"]
#[inline(always)]
#[must_use]
pub fn out_auto_wrback(&mut self) -> OUT_AUTO_WRBACK_W<6> {
OUT_AUTO_WRBACK_W::new(self)
}
#[doc = "Bit 7"]
#[inline(always)]
#[must_use]
pub fn out_no_restart_clr(&mut self) -> OUT_NO_RESTART_CLR_W<7> {
OUT_NO_RESTART_CLR_W::new(self)
}
#[doc = "Bit 8"]
#[inline(always)]
#[must_use]
pub fn out_eof_mode(&mut self) -> OUT_EOF_MODE_W<8> {
OUT_EOF_MODE_W::new(self)
}
#[doc = "Bit 9"]
#[inline(always)]
#[must_use]
pub fn outdscr_burst_en(&mut self) -> OUTDSCR_BURST_EN_W<9> {
OUTDSCR_BURST_EN_W::new(self)
}
#[doc = "Bit 10"]
#[inline(always)]
#[must_use]
pub fn indscr_burst_en(&mut self) -> INDSCR_BURST_EN_W<10> {
INDSCR_BURST_EN_W::new(self)
}
#[doc = "Bit 11"]
#[inline(always)]
#[must_use]
pub fn out_data_burst_en(&mut self) -> OUT_DATA_BURST_EN_W<11> {
OUT_DATA_BURST_EN_W::new(self)
}
#[doc = "Bit 12"]
#[inline(always)]
#[must_use]
pub fn check_owner(&mut self) -> CHECK_OWNER_W<12> {
CHECK_OWNER_W::new(self)
}
#[doc = "Bit 13"]
#[inline(always)]
#[must_use]
pub fn mem_trans_en(&mut self) -> MEM_TRANS_EN_W<13> {
MEM_TRANS_EN_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [lc_conf](index.html) module"]
pub struct LC_CONF_SPEC;
impl crate::RegisterSpec for LC_CONF_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [lc_conf::R](R) reader structure"]
impl crate::Readable for LC_CONF_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [lc_conf::W](W) writer structure"]
impl crate::Writable for LC_CONF_SPEC {
type Writer = W;
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets LC_CONF to value 0x0100"]
impl crate::Resettable for LC_CONF_SPEC {
const RESET_VALUE: Self::Ux = 0x0100;
}