xwrl64xx-pac 0.6.0

A Peripheral Access Crate for the ti xwrl64xx radar devkit
Documentation
#[doc = "Register `SECAP_TX_CONTROL` reader"]
pub type R = crate::R<SecapTxControlSpec>;
#[doc = "Register `SECAP_TX_CONTROL` writer"]
pub type W = crate::W<SecapTxControlSpec>;
#[doc = "Field `JTAGTXCONTROL` reader - 30:0\\]
This register is provides the handshake for the JTAGTXDATA Register and can also be used to pass control information to the system security logic."]
pub type JtagtxcontrolR = crate::FieldReader<u32>;
#[doc = "Field `JTAGTXCONTROL` writer - 30:0\\]
This register is provides the handshake for the JTAGTXDATA Register and can also be used to pass control information to the system security logic."]
pub type JtagtxcontrolW<'a, REG> = crate::FieldWriter<'a, REG, 31, u32>;
#[doc = "Field `TXDATA_AVAIL` reader - 31:31\\]
Tx Interrupt to indicate avaliablity of TXDATA . 1 - TXDATA available ; 0 - TXDATA not available"]
pub type TxdataAvailR = crate::BitReader;
#[doc = "Field `TXDATA_AVAIL` writer - 31:31\\]
Tx Interrupt to indicate avaliablity of TXDATA . 1 - TXDATA available ; 0 - TXDATA not available"]
pub type TxdataAvailW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bits 0:30 - 30:0\\]
This register is provides the handshake for the JTAGTXDATA Register and can also be used to pass control information to the system security logic."]
    #[inline(always)]
    pub fn jtagtxcontrol(&self) -> JtagtxcontrolR {
        JtagtxcontrolR::new(self.bits & 0x7fff_ffff)
    }
    #[doc = "Bit 31 - 31:31\\]
Tx Interrupt to indicate avaliablity of TXDATA . 1 - TXDATA available ; 0 - TXDATA not available"]
    #[inline(always)]
    pub fn txdata_avail(&self) -> TxdataAvailR {
        TxdataAvailR::new(((self.bits >> 31) & 1) != 0)
    }
}
impl W {
    #[doc = "Bits 0:30 - 30:0\\]
This register is provides the handshake for the JTAGTXDATA Register and can also be used to pass control information to the system security logic."]
    #[inline(always)]
    #[must_use]
    pub fn jtagtxcontrol(&mut self) -> JtagtxcontrolW<SecapTxControlSpec> {
        JtagtxcontrolW::new(self, 0)
    }
    #[doc = "Bit 31 - 31:31\\]
Tx Interrupt to indicate avaliablity of TXDATA . 1 - TXDATA available ; 0 - TXDATA not available"]
    #[inline(always)]
    #[must_use]
    pub fn txdata_avail(&mut self) -> TxdataAvailW<SecapTxControlSpec> {
        TxdataAvailW::new(self, 31)
    }
}
#[doc = "SECAP_TX_CONTROL\n\nYou can [`read`](crate::Reg::read) this register and get [`secap_tx_control::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`secap_tx_control::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SecapTxControlSpec;
impl crate::RegisterSpec for SecapTxControlSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`secap_tx_control::R`](R) reader structure"]
impl crate::Readable for SecapTxControlSpec {}
#[doc = "`write(|w| ..)` method takes [`secap_tx_control::W`](W) writer structure"]
impl crate::Writable for SecapTxControlSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets SECAP_TX_CONTROL to value 0"]
impl crate::Resettable for SecapTxControlSpec {
    const RESET_VALUE: u32 = 0;
}