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