embassy-rp

Crates

git

Versions

rp235xb

Flavors

Module otp

Source
Expand description

Interface to the RP2350’s One Time Programmable Memory

Enums§

Error
The ways in which we can fail to access OTP

Constants§

NUM_PAGES
How many pages in OTP (post error-correction)
NUM_ROWS
How many rows in OTP (post error-correction)
NUM_ROWS_PER_PAGE
How many rows in one page in OTP (post error-correction)
OTP_DATA_BASE
OTP read address, using automatic Error Correction.
OTP_DATA_RAW_BASE
OTP read address, without using any automatic Error Correction.
RAW_WRITE_BIT_MASK
24bit mask for raw writes

Functions§

get_chipid
Get the random 64bit chipid from rows 0x0-0x3.
get_private_random_number
Get the 128bit private random number from rows 0x4-0xb.
read_ecc_word
Read one ECC protected word from the OTP
read_raw_word
Read one raw word from the OTP
write_ecc_word
Write one raw word to the OTP with ECC
write_raw_word
Write one raw word to the OTP