1#[doc = "Register `CMD` writer"]
2pub type W = crate::W<CMD_SPEC>;
3#[doc = "Field `TX_REQ` writer - Set the bit to 1 to allow the driving nodes start transmission."]
4pub type TX_REQ_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `ABORT_TX` writer - Set the bit to 1 to cancel a pending transmission request."]
6pub type ABORT_TX_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `RELEASE_BUF` writer - Set the bit to 1 to release the RX buffer."]
8pub type RELEASE_BUF_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `CLR_OVERRUN` writer - Set the bit to 1 to clear the data overrun status bit."]
10pub type CLR_OVERRUN_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `SELF_RX_REQ` writer - Self reception request command. Set the bit to 1 to allow a message be transmitted and received simultaneously."]
12pub type SELF_RX_REQ_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[cfg(feature = "impl-register-debug")]
14impl core::fmt::Debug for crate::generic::Reg<CMD_SPEC> {
15 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
16 write!(f, "(not readable)")
17 }
18}
19impl W {
20 #[doc = "Bit 0 - Set the bit to 1 to allow the driving nodes start transmission."]
21 #[inline(always)]
22 pub fn tx_req(&mut self) -> TX_REQ_W<CMD_SPEC> {
23 TX_REQ_W::new(self, 0)
24 }
25 #[doc = "Bit 1 - Set the bit to 1 to cancel a pending transmission request."]
26 #[inline(always)]
27 pub fn abort_tx(&mut self) -> ABORT_TX_W<CMD_SPEC> {
28 ABORT_TX_W::new(self, 1)
29 }
30 #[doc = "Bit 2 - Set the bit to 1 to release the RX buffer."]
31 #[inline(always)]
32 pub fn release_buf(&mut self) -> RELEASE_BUF_W<CMD_SPEC> {
33 RELEASE_BUF_W::new(self, 2)
34 }
35 #[doc = "Bit 3 - Set the bit to 1 to clear the data overrun status bit."]
36 #[inline(always)]
37 pub fn clr_overrun(&mut self) -> CLR_OVERRUN_W<CMD_SPEC> {
38 CLR_OVERRUN_W::new(self, 3)
39 }
40 #[doc = "Bit 4 - Self reception request command. Set the bit to 1 to allow a message be transmitted and received simultaneously."]
41 #[inline(always)]
42 pub fn self_rx_req(&mut self) -> SELF_RX_REQ_W<CMD_SPEC> {
43 SELF_RX_REQ_W::new(self, 4)
44 }
45}
46#[doc = "Command Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmd::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
47pub struct CMD_SPEC;
48impl crate::RegisterSpec for CMD_SPEC {
49 type Ux = u32;
50}
51#[doc = "`write(|w| ..)` method takes [`cmd::W`](W) writer structure"]
52impl crate::Writable for CMD_SPEC {
53 type Safety = crate::Unsafe;
54 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
55 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
56}
57#[doc = "`reset()` method sets CMD to value 0"]
58impl crate::Resettable for CMD_SPEC {
59 const RESET_VALUE: u32 = 0;
60}