max78000_pac/
pt0.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    rate_length: RateLength,
5    train: Train,
6    loop_: Loop,
7    restart: Restart,
8}
9impl RegisterBlock {
10    #[doc = "0x00 - Pulse Train Configuration"]
11    #[inline(always)]
12    pub const fn rate_length(&self) -> &RateLength {
13        &self.rate_length
14    }
15    #[doc = "0x04 - Write the repeating bit pattern that is shifted out, LSB first, when configured in Pulse Train mode. See PT_RATE_LENGTH.mode for setting the length."]
16    #[inline(always)]
17    pub const fn train(&self) -> &Train {
18        &self.train
19    }
20    #[doc = "0x08 - Pulse Train Loop Count"]
21    #[inline(always)]
22    pub const fn loop_(&self) -> &Loop {
23        &self.loop_
24    }
25    #[doc = "0x0c - Pulse Train Auto-Restart Configuration."]
26    #[inline(always)]
27    pub const fn restart(&self) -> &Restart {
28        &self.restart
29    }
30}
31#[doc = "RATE_LENGTH (rw) register accessor: Pulse Train Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`rate_length::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rate_length::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rate_length`]
32module"]
33#[doc(alias = "RATE_LENGTH")]
34pub type RateLength = crate::Reg<rate_length::RateLengthSpec>;
35#[doc = "Pulse Train Configuration"]
36pub mod rate_length;
37#[doc = "TRAIN (rw) register accessor: Write the repeating bit pattern that is shifted out, LSB first, when configured in Pulse Train mode. See PT_RATE_LENGTH.mode for setting the length.\n\nYou can [`read`](crate::Reg::read) this register and get [`train::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`train::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@train`]
38module"]
39#[doc(alias = "TRAIN")]
40pub type Train = crate::Reg<train::TrainSpec>;
41#[doc = "Write the repeating bit pattern that is shifted out, LSB first, when configured in Pulse Train mode. See PT_RATE_LENGTH.mode for setting the length."]
42pub mod train;
43#[doc = "LOOP (rw) register accessor: Pulse Train Loop Count\n\nYou can [`read`](crate::Reg::read) this register and get [`loop_::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`loop_::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@loop_`]
44module"]
45#[doc(alias = "LOOP")]
46pub type Loop = crate::Reg<loop_::LoopSpec>;
47#[doc = "Pulse Train Loop Count"]
48pub mod loop_;
49#[doc = "RESTART (rw) register accessor: Pulse Train Auto-Restart Configuration.\n\nYou can [`read`](crate::Reg::read) this register and get [`restart::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`restart::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@restart`]
50module"]
51#[doc(alias = "RESTART")]
52pub type Restart = crate::Reg<restart::RestartSpec>;
53#[doc = "Pulse Train Auto-Restart Configuration."]
54pub mod restart;