Struct lpc55_hal::peripherals::pfr::Pfr [−][src]
pub struct Pfr<State = Unknown> { pub flash_config: FlashConfig, pub _state: State, }
Fields
flash_config: FlashConfig
_state: State
Implementations
impl Pfr<Enabled>
[src]
impl Pfr<Enabled>
[src]pub fn read_cmpa(&mut self) -> Result<Cmpa, u32>
[src]
pub fn cmpa_customer_data(&mut self) -> &'static [u8]
[src]
Get a readonly static reference to the customer data in CMPA.
pub fn read_cfpa_with_bootrom(&mut self) -> Result<Cfpa, u32>
[src]
Keeping here for reference, but this sometimes returns unexpected old versions of the CFPA page that are not seen on scratch, ping, or pong pages. Findings:
- Immediately after CFPA is updated, this method returns the latest CFPA data.
- After boot/reset, this method will potentially return expected old versions of CFPA.
- There is a pattern of how to increment VERSION to result in this method returning old CFPA versions or not which is impractical. It’s almost like there is some other cfpa page storage not documented and this bootrom method mismanages the VERSION.
pub fn read_latest_cfpa(&mut self) -> Result<Cfpa, u32>
[src]
Reads CFPA without use of bootrom. Appears that the bootrom method sometimes returns previous versions of the CFPA page (not seen on scratch, ping, or pong pages). This method always returns the most recently updated Cfpa from ping or pong pages.
pub fn read_cfpa_ping(&mut self) -> Result<Cfpa, u32>
[src]
pub fn read_cfpa_pong(&mut self) -> Result<Cfpa, u32>
[src]
pub fn write_cfpa(&mut self, cfpa: &Cfpa) -> Result<(), u32>
[src]
pub fn read_key_code(&mut self, key_type: KeyType) -> Result<[u8; 52], u32>
[src]
pub fn read_activation_code(&mut self) -> Result<[u8; 1192], u32>
[src]
pub fn lock_all(&mut self) -> Result<(), u32>
[src]
Set write protection to PFR pages. Lasts until next power on reset.