max78000_pac/
trng.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    ctrl: Ctrl,
5    status: Status,
6    data: Data,
7}
8impl RegisterBlock {
9    #[doc = "0x00 - TRNG Control Register."]
10    #[inline(always)]
11    pub const fn ctrl(&self) -> &Ctrl {
12        &self.ctrl
13    }
14    #[doc = "0x04 - Data. The content of this register is valid only when RNG_IS = 1. When TRNG is disabled, read returns 0x0000 0000."]
15    #[inline(always)]
16    pub const fn status(&self) -> &Status {
17        &self.status
18    }
19    #[doc = "0x08 - Data. The content of this register is valid only when RNG_IS = 1. When TRNG is disabled, read returns 0x0000 0000."]
20    #[inline(always)]
21    pub const fn data(&self) -> &Data {
22        &self.data
23    }
24}
25#[doc = "CTRL (rw) register accessor: TRNG Control Register.\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::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@ctrl`]
26module"]
27#[doc(alias = "CTRL")]
28pub type Ctrl = crate::Reg<ctrl::CtrlSpec>;
29#[doc = "TRNG Control Register."]
30pub mod ctrl;
31#[doc = "STATUS (rw) register accessor: Data. The content of this register is valid only when RNG_IS = 1. When TRNG is disabled, read returns 0x0000 0000.\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`status::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@status`]
32module"]
33#[doc(alias = "STATUS")]
34pub type Status = crate::Reg<status::StatusSpec>;
35#[doc = "Data. The content of this register is valid only when RNG_IS = 1. When TRNG is disabled, read returns 0x0000 0000."]
36pub mod status;
37#[doc = "DATA (r) register accessor: Data. The content of this register is valid only when RNG_IS = 1. When TRNG is disabled, read returns 0x0000 0000.\n\nYou can [`read`](crate::Reg::read) this register and get [`data::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@data`]
38module"]
39#[doc(alias = "DATA")]
40pub type Data = crate::Reg<data::DataSpec>;
41#[doc = "Data. The content of this register is valid only when RNG_IS = 1. When TRNG is disabled, read returns 0x0000 0000."]
42pub mod data;