PicoSDK
trng_hw_t
is only used within PicoSDK.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
Raspberry Pi Pico SDK and Examples
PicoSDK
trng_hw_t
trng_hw_t struct
Syntax
Show:
Summary
Declaration
from
trng.h:26
typedef
struct
{
_REG_
(
TRNG_RNG_IMR_OFFSET
)
io_rw_32
rng_imr
;
_REG_
(
TRNG_RNG_ISR_OFFSET
)
io_ro_32
rng_isr
;
_REG_
(
TRNG_RNG_ICR_OFFSET
)
io_rw_32
rng_icr
;
_REG_
(
TRNG_TRNG_CONFIG_OFFSET
)
io_rw_32
trng_config
;
_REG_
(
TRNG_TRNG_VALID_OFFSET
)
io_ro_32
trng_valid
;
_REG_
(
TRNG_EHR_DATA0_OFFSET
)
io_ro_32
ehr_data
[
6
]
;
_REG_
(
TRNG_RND_SOURCE_ENABLE_OFFSET
)
io_rw_32
rnd_source_enable
;
_REG_
(
TRNG_SAMPLE_CNT1_OFFSET
)
io_rw_32
sample_cnt1
;
_REG_
(
TRNG_AUTOCORR_STATISTIC_OFFSET
)
io_rw_32
autocorr_statistic
;
_REG_
(
TRNG_TRNG_DEBUG_CONTROL_OFFSET
)
io_rw_32
trng_debug_control
;
uint32_t
_pad0
;
_REG_
(
TRNG_TRNG_SW_RESET_OFFSET
)
io_rw_32
trng_sw_reset
;
uint32_t
_pad1
[
28
]
;
_REG_
(
TRNG_RNG_DEBUG_EN_INPUT_OFFSET
)
io_rw_32
rng_debug_en_input
;
_REG_
(
TRNG_TRNG_BUSY_OFFSET
)
io_ro_32
trng_busy
;
_REG_
(
TRNG_RST_BITS_COUNTER_OFFSET
)
io_rw_32
rst_bits_counter
;
_REG_
(
TRNG_RNG_VERSION_OFFSET
)
io_ro_32
rng_version
;
uint32_t
_pad2
[
7
]
;
_REG_
(
TRNG_RNG_BIST_CNTR_0_OFFSET
)
io_ro_32
rng_bist_cntr
[
3
]
;
}
trng_hw_t
;
Fields
Field
Declared as
trng_hw_t::rnd_source_enable
io_rw_32
trng_hw_t::sample_cnt1
io_rw_32
trng_hw_t::autocorr_statistic
io_rw_32
trng_hw_t::trng_debug_control
io_rw_32
trng_hw_t::_pad0
uint32_t
trng_hw_t::trng_sw_reset
io_rw_32
trng_hw_t::_pad1
uint32_t
[
28
]
trng_hw_t::rng_debug_en_input
io_rw_32
trng_hw_t::trng_busy
io_ro_32
trng_hw_t::rst_bits_counter
io_rw_32
trng_hw_t::rng_version
io_ro_32
trng_hw_t::_pad2
uint32_t
[
7
]
trng_hw_t::rng_bist_cntr
io_ro_32
[
3
]
trng_hw_t::rng_imr
io_rw_32
trng_hw_t::rng_isr
io_ro_32
trng_hw_t::rng_icr
io_rw_32
trng_hw_t::trng_config
io_rw_32
trng_hw_t::trng_valid
io_ro_32
trng_hw_t::ehr_data
io_ro_32
[
6
]
Examples
References
from
examples
Code
Location
Referrer
typedef
struct
{
trng.h:26
}
trng_hw_t
;
trng.h:147
uint32_t
trng_sample_words
[
count_of
(
trng_hw
->
ehr_data
)
]
;
rand.c:127
static_assert
(
count_of
(
trng_hw
->
ehr_data
)
>=
2
&&
count_of
(
trng_hw
->
ehr_data
)
<
255
,
""
)
;
rand.c:128
trng_hw
->
sample_cnt1
=
0
;
rand.c:143
capture_additional_trng_samples()
trng_hw
->
trng_debug_control
=
-
1u
;
rand.c:147
capture_additional_trng_samples()
trng_hw
->
rnd_source_enable
=
-
1u
;
rand.c:149
capture_additional_trng_samples()
trng_hw
->
rng_icr
=
-
1u
;
rand.c:152
capture_additional_trng_samples()
while
(
trng_hw
->
trng_busy
)
;
rand.c:155
capture_additional_trng_samples()
trng_sample_words
[
i
]
=
trng_hw
->
ehr_data
[
i
]
;
rand.c:158
capture_additional_trng_samples()
trng_hw
->
trng_config
=
rng_state
.
r
[
0
]
;
rand.c:165
capture_additional_trng_samples()
}
trng_hw_t
;
trng.h:147
trng_hw_t
static_assert
(
sizeof
(
trng_hw_t
)
==
0x00ec
,
""
)
;
trng.h:150
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out