Struct rk3399_rs::Cru

source ·
pub struct Cru { /* private fields */ }
Expand description

Clock and Reset Unit

Implementations§

source§

impl Cru

source

pub const PTR: *const RegisterBlock = {0xff760000 as *const cru::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn cru_lpll_con0(&self) -> &CruLpllCon0

0x00 - LPLL configuration register0

source

pub fn cru_lpll_con1(&self) -> &CruLpllCon1

0x04 - LPLL configuration register1

source

pub fn cru_lpll_con2(&self) -> &CruLpllCon2

0x08 - LPLL configuration register2

source

pub fn cru_lpll_con3(&self) -> &CruLpllCon3

0x0c - LPLL configuration register3

source

pub fn cru_lpll_con4(&self) -> &CruLpllCon4

0x10 - LPLL configuration register4

source

pub fn cru_lpll_con5(&self) -> &CruLpllCon5

0x14 - LPLL configuration register5

source

pub fn cru_bpll_con0(&self) -> &CruBpllCon0

0x20 - BPLL configuration register0

source

pub fn cru_bpll_con1(&self) -> &CruBpllCon1

0x24 - BPLL configuration register1

source

pub fn cru_bpll_con2(&self) -> &CruBpllCon2

0x28 - BPLL configuration register2

source

pub fn cru_bpll_con3(&self) -> &CruBpllCon3

0x2c - BPLL configuration register3

source

pub fn cru_bpll_con4(&self) -> &CruBpllCon4

0x30 - BPLL configuration register4

source

pub fn cru_bpll_con5(&self) -> &CruBpllCon5

0x34 - BPLL configuration register5

source

pub fn cru_dpll_con0(&self) -> &CruDpllCon0

0x40 - DPLL configuration register0

source

pub fn cru_dpll_con1(&self) -> &CruDpllCon1

0x44 - DPLL configuration register1

source

pub fn cru_dpll_con2(&self) -> &CruDpllCon2

0x48 - DPLL configuration register2

source

pub fn cru_dpll_con3(&self) -> &CruDpllCon3

0x4c - DPLL configuration register3

source

pub fn cru_dpll_con4(&self) -> &CruDpllCon4

0x50 - DPLL configuration register4

source

pub fn cru_dpll_con5(&self) -> &CruDpllCon5

0x54 - DPLL configuration register5

source

pub fn cru_cpll_con0(&self) -> &CruCpllCon0

0x60 - CPLL configuration register0

source

pub fn cru_cpll_con1(&self) -> &CruCpllCon1

0x64 - CPLL configuration register1

source

pub fn cru_cpll_con2(&self) -> &CruCpllCon2

0x68 - CPLL configuration register2

source

pub fn cru_cpll_con3(&self) -> &CruCpllCon3

0x6c - CPLL configuration register3

source

pub fn cru_cpll_con4(&self) -> &CruCpllCon4

0x70 - CPLL configuration register4

source

pub fn cru_cpll_con5(&self) -> &CruCpllCon5

0x74 - CPLL configuration register5

source

pub fn cru_gpll_con0(&self) -> &CruGpllCon0

0x80 - GPLL configuration register0

source

pub fn cru_gpll_con1(&self) -> &CruGpllCon1

0x84 - GPLL configuration register1

source

pub fn cru_gpll_con2(&self) -> &CruGpllCon2

0x88 - GPLL configuration register2

source

pub fn cru_gpll_con3(&self) -> &CruGpllCon3

0x8c - GPLL configuration register3

source

pub fn cru_gpll_con4(&self) -> &CruGpllCon4

0x90 - GPLL configuration register4

source

pub fn cru_gpll_con5(&self) -> &CruGpllCon5

0x94 - GPLL configuration register5

source

pub fn cru_npll_con0(&self) -> &CruNpllCon0

0xa0 - NPLL configuration register0

source

pub fn cru_npll_con1(&self) -> &CruNpllCon1

0xa4 - NPLL configuration register1

source

pub fn cru_npll_con2(&self) -> &CruNpllCon2

0xa8 - NPLL configuration register2

source

pub fn cru_npll_con3(&self) -> &CruNpllCon3

0xac - NPLL configuration register3

source

pub fn cru_npll_con4(&self) -> &CruNpllCon4

0xb0 - NPLL configuration register4

source

pub fn cru_npll_con5(&self) -> &CruNpllCon5

0xb4 - NPLL configuration register5

source

pub fn cru_vpll_con0(&self) -> &CruVpllCon0

0xc0 - VPLL configuration register0

source

pub fn cru_vpll_con1(&self) -> &CruVpllCon1

0xc4 - VPLL configuration register1

source

pub fn cru_vpll_con2(&self) -> &CruVpllCon2

0xc8 - VPLL configuration register2

source

pub fn cru_vpll_con3(&self) -> &CruVpllCon3

0xcc - VPLL configuration register3

source

pub fn cru_vpll_con4(&self) -> &CruVpllCon4

0xd0 - VPLL configuration register4

source

pub fn cru_vpll_con5(&self) -> &CruVpllCon5

0xd4 - VPLL configuration register5

source

pub fn cru_clksel_con0(&self) -> &CruClkselCon0

0x100 - Internal clock select and divide register0

source

pub fn cru_clksel_con1(&self) -> &CruClkselCon1

0x104 - Internal clock select and divide register1

source

pub fn cru_clksel_con2(&self) -> &CruClkselCon2

0x108 - Internal clock select and divide register2

source

pub fn cru_clksel_con3(&self) -> &CruClkselCon3

0x10c - Internal clock select and divide register3

source

pub fn cru_clksel_con4(&self) -> &CruClkselCon4

0x110 - Internal clock select and divide register4

source

pub fn cru_clksel_con5(&self) -> &CruClkselCon5

0x114 - Internal clock select and divide register5

source

pub fn cru_clksel_con6(&self) -> &CruClkselCon6

0x118 - Internal clock select and divide register6

source

pub fn cru_clksel_con7(&self) -> &CruClkselCon7

0x11c - Internal clock select and divide register7

source

pub fn cru_clksel_con8(&self) -> &CruClkselCon8

0x120 - Internal clock select and divide register8

source

pub fn cru_clksel_con9(&self) -> &CruClkselCon9

0x124 - Internal clock select and divide register9

source

pub fn cru_clksel_con10(&self) -> &CruClkselCon10

0x128 - Internal clock select and divide register10

source

pub fn cru_clksel_con11(&self) -> &CruClkselCon11

0x12c - Internal clock select and divide register11

source

pub fn cru_clksel_con12(&self) -> &CruClkselCon12

0x130 - Internal clock select and divide register12

source

pub fn cru_clksel_con13(&self) -> &CruClkselCon13

0x134 - Internal clock select and divide register13

source

pub fn cru_clksel_con14(&self) -> &CruClkselCon14

0x138 - Internal clock select and divide register14

source

pub fn cru_clksel_con15(&self) -> &CruClkselCon15

0x13c - Internal clock select and divide register15

source

pub fn cru_clksel_con16(&self) -> &CruClkselCon16

0x140 - Internal clock select and divide register16

source

pub fn cru_clksel_con17(&self) -> &CruClkselCon17

0x144 - Internal clock select and divide register17

source

pub fn cru_clksel_con18(&self) -> &CruClkselCon18

0x148 - Internal clock select and divide register18

source

pub fn cru_clksel_con19(&self) -> &CruClkselCon19

0x14c - Internal clock select and divide register19

source

pub fn cru_clksel_con20(&self) -> &CruClkselCon20

0x150 - Internal clock select and divide register20

source

pub fn cru_clksel_con21(&self) -> &CruClkselCon21

0x154 - Internal clock select and divide register21

source

pub fn cru_clksel_con22(&self) -> &CruClkselCon22

0x158 - Internal clock select and divide register22

source

pub fn cru_clksel_con23(&self) -> &CruClkselCon23

0x15c - Internal clock select and divide register23

source

pub fn cru_clksel_con24(&self) -> &CruClkselCon24

0x160 - Internal clock select and divide register24

source

pub fn cru_clksel_con25(&self) -> &CruClkselCon25

0x164 - Internal clock select and divide register25

source

pub fn cru_clksel_con26(&self) -> &CruClkselCon26

0x168 - Internal clock select and divide register26

source

pub fn cru_clksel_con27(&self) -> &CruClkselCon27

0x16c - Internal clock select and divide register27

source

pub fn cru_clksel_con28(&self) -> &CruClkselCon28

0x170 - Internal clock select and divide register28

source

pub fn cru_clksel_con29(&self) -> &CruClkselCon29

0x174 - Internal clock select and divide register29

source

pub fn cru_clksel_con30(&self) -> &CruClkselCon30

0x178 - Internal clock select and divide register30

source

pub fn cru_clksel_con31(&self) -> &CruClkselCon31

0x17c - Internal clock select and divide register31

source

pub fn cru_clksel_con32(&self) -> &CruClkselCon32

0x180 - Internal clock select and divide register32

source

pub fn cru_clksel_con33(&self) -> &CruClkselCon33

0x184 - Internal clock select and divide register33

source

pub fn cru_clksel_con34(&self) -> &CruClkselCon34

0x188 - Internal clock select and divide register34

source

pub fn cru_clksel_con35(&self) -> &CruClkselCon35

0x18c - Internal clock select and divide register35

source

pub fn cru_clksel_con36(&self) -> &CruClkselCon36

0x190 - Internal clock select and divide register36

source

pub fn cru_clksel_con38(&self) -> &CruClkselCon38

0x198 - Internal clock select and divide register38

source

pub fn cru_clksel_con39(&self) -> &CruClkselCon39

0x19c - Internal clock select and divide register39

source

pub fn cru_clksel_con40(&self) -> &CruClkselCon40

0x1a0 - Internal clock select and divide register40

source

pub fn cru_clksel_con41(&self) -> &CruClkselCon41

0x1a4 - Internal clock select and divide register41

source

pub fn cru_clksel_con42(&self) -> &CruClkselCon42

0x1a8 - Internal clock select and divide register42

source

pub fn cru_clksel_con43(&self) -> &CruClkselCon43

0x1ac - Internal clock select and divide register43

source

pub fn cru_clksel_con44(&self) -> &CruClkselCon44

0x1b0 - Internal clock select and divide register44

source

pub fn cru_clksel_con45(&self) -> &CruClkselCon45

0x1b4 - Internal clock select and divide register45

source

pub fn cru_clksel_con46(&self) -> &CruClkselCon46

0x1b8 - Internal clock select and divide register46

source

pub fn cru_clksel_con47(&self) -> &CruClkselCon47

0x1bc - Internal clock select and divide register47

source

pub fn cru_clksel_con48(&self) -> &CruClkselCon48

0x1c0 - Internal clock select and divide register48

source

pub fn cru_clksel_con49(&self) -> &CruClkselCon49

0x1c4 - Internal clock select and divide register49

source

pub fn cru_clksel_con50(&self) -> &CruClkselCon50

0x1c8 - Internal clock select and divide register50

source

pub fn cru_clksel_con51(&self) -> &CruClkselCon51

0x1cc - Internal clock select and divide register51

source

pub fn cru_clksel_con52(&self) -> &CruClkselCon52

0x1d0 - Internal clock select and divide register52

source

pub fn cru_clksel_con53(&self) -> &CruClkselCon53

0x1d4 - Internal clock select and divide register53

source

pub fn cru_clksel_con54(&self) -> &CruClkselCon54

0x1d8 - Internal clock select and divide register54

source

pub fn cru_clksel_con55(&self) -> &CruClkselCon55

0x1dc - Internal clock select and divide register55

source

pub fn cru_clksel_con56(&self) -> &CruClkselCon56

0x1e0 - Internal clock select and divide register56

source

pub fn cru_clksel_con57(&self) -> &CruClkselCon57

0x1e4 - Internal clock select and divide register57

source

pub fn cru_clksel_con58(&self) -> &CruClkselCon58

0x1e8 - Internal clock select and divide register58

source

pub fn cru_clksel_con59(&self) -> &CruClkselCon59

0x1ec - Internal clock select and divide register59

source

pub fn cru_clksel_con60(&self) -> &CruClkselCon60

0x1f0 - Internal clock select and divide register60

source

pub fn cru_clksel_con61(&self) -> &CruClkselCon61

0x1f4 - Internal clock select and divide register61

source

pub fn cru_clksel_con62(&self) -> &CruClkselCon62

0x1f8 - Internal clock select and divide register62

source

pub fn cru_clksel_con63(&self) -> &CruClkselCon63

0x1fc - Internal clock select and divide register63

source

pub fn cru_clksel_con64(&self) -> &CruClkselCon64

0x200 - Internal clock select and divide register64

source

pub fn cru_clksel_con65(&self) -> &CruClkselCon65

0x204 - Internal clock select and divide register65

source

pub fn cru_clksel_con96(&self) -> &CruClkselCon96

0x280 - Internal clock select and divide register80

source

pub fn cru_clksel_con97(&self) -> &CruClkselCon97

0x284 - Internal clock select and divide register81

source

pub fn cru_clksel_con98(&self) -> &CruClkselCon98

0x288 - Internal clock select and divide register82

source

pub fn cru_clksel_con99(&self) -> &CruClkselCon99

0x28c - Internal clock select and divide register83

source

pub fn cru_clksel_con100(&self) -> &CruClkselCon100

0x290 - Internal clock select and divide register84

source

pub fn cru_clksel_con101(&self) -> &CruClkselCon101

0x294 - Internal clock select and divide register85

source

pub fn cru_clksel_con102(&self) -> &CruClkselCon102

0x298 - Internal clock select and divide register86

source

pub fn cru_clksel_con103(&self) -> &CruClkselCon103

0x29c - Internal clock select and divide register87

source

pub fn cru_clksel_con105(&self) -> &CruClkselCon105

0x2a4 - Internal clock select and divide register89

source

pub fn cru_clksel_con106(&self) -> &CruClkselCon106

0x2a8 - Internal clock select and divide register90

source

pub fn cru_clksel_con107(&self) -> &CruClkselCon107

0x2ac - Internal clock select and divide register91

source

pub fn cru_clkgate_con0(&self) -> &CruClkgateCon0

0x300 - Internal clock gating register0

source

pub fn cru_clkgate_con1(&self) -> &CruClkgateCon1

0x304 - Internal clock gating register1

source

pub fn cru_clkgate_con2(&self) -> &CruClkgateCon2

0x308 - Internal clock gating register2

source

pub fn cru_clkgate_con3(&self) -> &CruClkgateCon3

0x30c - Internal clock gating register3

source

pub fn cru_clkgate_con4(&self) -> &CruClkgateCon4

0x310 - Internal clock gating register4

source

pub fn cru_clkgate_con5(&self) -> &CruClkgateCon5

0x314 - Internal clock gating register5

source

pub fn cru_clkgate_con6(&self) -> &CruClkgateCon6

0x318 - Internal clock gating register6

source

pub fn cru_clkgate_con7(&self) -> &CruClkgateCon7

0x31c - Internal clock gating register7

source

pub fn cru_clkgate_con8(&self) -> &CruClkgateCon8

0x320 - Internal clock gating register8

source

pub fn cru_clkgate_con9(&self) -> &CruClkgateCon9

0x324 - Internal clock gating register9

source

pub fn cru_clkgate_con10(&self) -> &CruClkgateCon10

0x328 - Internal clock gating register10

source

pub fn cru_clkgate_con11(&self) -> &CruClkgateCon11

0x32c - Internal clock gating register11

source

pub fn cru_clkgate_con12(&self) -> &CruClkgateCon12

0x330 - Internal clock gating register12

source

pub fn cru_clkgate_con13(&self) -> &CruClkgateCon13

0x334 - Internal clock gating register13

source

pub fn cru_clkgate_con14(&self) -> &CruClkgateCon14

0x338 - Internal clock gating register14

source

pub fn cru_clkgate_con15(&self) -> &CruClkgateCon15

0x33c - Internal clock gating register15

source

pub fn cru_clkgate_con16(&self) -> &CruClkgateCon16

0x340 - Internal clock gating register16

source

pub fn cru_clkgate_con17(&self) -> &CruClkgateCon17

0x344 - Internal clock gating register17

source

pub fn cru_clkgate_con18(&self) -> &CruClkgateCon18

0x348 - Internal clock gating register18

source

pub fn cru_clkgate_con19(&self) -> &CruClkgateCon19

0x34c - Internal clock gating register19

source

pub fn cru_clkgate_con20(&self) -> &CruClkgateCon20

0x350 - Internal clock gating register20

source

pub fn cru_clkgate_con21(&self) -> &CruClkgateCon21

0x354 - Internal clock gating register21

source

pub fn cru_clkgate_con22(&self) -> &CruClkgateCon22

0x358 - Internal clock gating register22

source

pub fn cru_clkgate_con23(&self) -> &CruClkgateCon23

0x35c - Internal clock gating register23

source

pub fn cru_clkgate_con24(&self) -> &CruClkgateCon24

0x360 - Internal clock gating register24

source

pub fn cru_clkgate_con25(&self) -> &CruClkgateCon25

0x364 - Internal clock gating register25

source

pub fn cru_clkgate_con26(&self) -> &CruClkgateCon26

0x368 - Internal clock gating register26

source

pub fn cru_clkgate_con27(&self) -> &CruClkgateCon27

0x36c - Internal clock gating register27

source

pub fn cru_clkgate_con28(&self) -> &CruClkgateCon28

0x370 - Internal clock gating register28

source

pub fn cru_clkgate_con29(&self) -> &CruClkgateCon29

0x374 - Internal clock gating register29

source

pub fn cru_clkgate_con30(&self) -> &CruClkgateCon30

0x378 - Internal clock gating register30

source

pub fn cru_clkgate_con31(&self) -> &CruClkgateCon31

0x37c - Internal clock gating register31

source

pub fn cru_clkgate_con32(&self) -> &CruClkgateCon32

0x380 - Internal clock gating register32

source

pub fn cru_clkgate_con33(&self) -> &CruClkgateCon33

0x384 - Internal clock gating register33

source

pub fn cru_clkgate_con34(&self) -> &CruClkgateCon34

0x388 - Internal clock gating register34

source

pub fn cru_softrst_con0(&self) -> &CruSoftrstCon0

0x400 - Internal software reset control register0

source

pub fn cru_softrst_con1(&self) -> &CruSoftrstCon1

0x404 - Internal software reset control register1

source

pub fn cru_softrst_con2(&self) -> &CruSoftrstCon2

0x408 - Internal software reset control register2

source

pub fn cru_softrst_con3(&self) -> &CruSoftrstCon3

0x40c - Internal software reset control register3

source

pub fn cru_softrst_con4(&self) -> &CruSoftrstCon4

0x410 - Internal software reset control register4

source

pub fn cru_softrst_con5(&self) -> &CruSoftrstCon5

0x414 - Internal software reset control register5

source

pub fn cru_softrst_con6(&self) -> &CruSoftrstCon6

0x418 - Internal software reset control register6

source

pub fn cru_softrst_con7(&self) -> &CruSoftrstCon7

0x41c - Internal software reset control register7

source

pub fn cru_softrst_con8(&self) -> &CruSoftrstCon8

0x420 - Internal software reset control register8

source

pub fn cru_softrst_con9(&self) -> &CruSoftrstCon9

0x424 - Internal software reset control register9

source

pub fn cru_softrst_con10(&self) -> &CruSoftrstCon10

0x428 - Internal software reset control register10

source

pub fn cru_softrst_con11(&self) -> &CruSoftrstCon11

0x42c - Internal software reset control register11

source

pub fn cru_softrst_con12(&self) -> &CruSoftrstCon12

0x430 - Internal software reset control register12

source

pub fn cru_softrst_con13(&self) -> &CruSoftrstCon13

0x434 - Internal software reset control register13

source

pub fn cru_softrst_con14(&self) -> &CruSoftrstCon14

0x438 - Internal software reset control register14

source

pub fn cru_softrst_con15(&self) -> &CruSoftrstCon15

0x43c - Internal software reset control register15

source

pub fn cru_softrst_con16(&self) -> &CruSoftrstCon16

0x440 - Internal software reset control register16

source

pub fn cru_softrst_con17(&self) -> &CruSoftrstCon17

0x444 - Internal software reset control register17

source

pub fn cru_softrst_con18(&self) -> &CruSoftrstCon18

0x448 - Internal software reset control register18

source

pub fn cru_softrst_con19(&self) -> &CruSoftrstCon19

0x44c - Internal software reset control register19

source

pub fn cru_softrst_con20(&self) -> &CruSoftrstCon20

0x450 - Internal software reset control register20

source

pub fn cru_glb_srst_fst_value(&self) -> &CruGlbSrstFstValue

0x500 - The first global software reset config value

source

pub fn cru_glb_srst_snd_value(&self) -> &CruGlbSrstSndValue

0x504 - The second global software reset config value

source

pub fn cru_glb_cnt_th(&self) -> &CruGlbCntTh

0x508 - Global soft reset counter threshold

source

pub fn cru_misc_con(&self) -> &CruMiscCon

0x50c - Output clock selection for test

source

pub fn cru_glb_rst_con(&self) -> &CruGlbRstCon

0x510 - Global reset trigger select

source

pub fn cru_glb_rst_st(&self) -> &CruGlbRstSt

0x514 - Global reset status

source

pub fn cru_sdmmc_con0(&self) -> &CruSdmmcCon0

0x580 - sdmmc control0

source

pub fn cru_sdmmc_con1(&self) -> &CruSdmmcCon1

0x584 - sdmmc control1

source

pub fn cru_sdio0_con0(&self) -> &CruSdio0Con0

0x588 - sdio0 control0

source

pub fn cru_sdio0_con1(&self) -> &CruSdio0Con1

0x58c - sdio0 control1

Trait Implementations§

source§

impl Debug for Cru

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Cru

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Cru

Auto Trait Implementations§

§

impl Freeze for Cru

§

impl RefUnwindSafe for Cru

§

impl !Sync for Cru

§

impl Unpin for Cru

§

impl UnwindSafe for Cru

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.