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

Get a readonly static reference to the customer data in CMPA.

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.

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.

Set write protection to PFR pages. Lasts until next power on reset.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.