HPM SDK
HPMicro Software Development Kit
otp_driver_interface_t Struct Reference

OTP driver interface. More...

#include <hpm_romapi.h>

Data Fields

uint32_t version
 
void(* init )(void)
 
void(* deinit )(void)
 
uint32_t(* read_from_shadow )(uint32_t addr)
 
uint32_t(* read_from_ip )(uint32_t addr)
 
hpm_stat_t(* program )(uint32_t addr, const uint32_t *src, uint32_t num_of_words)
 
hpm_stat_t(* reload )(otp_region_t region)
 
hpm_stat_t(* lock )(uint32_t addr, otp_lock_option_t lock_option)
 
hpm_stat_t(* lock_shadow )(uint32_t addr, otp_lock_option_t lock_option)
 
hpm_stat_t(* set_configurable_region )(uint32_t start, uint32_t num_of_words)
 
hpm_stat_t(* write_shadow_register )(uint32_t addr, uint32_t data)
 

Detailed Description

OTP driver interface.

Field Documentation

◆ deinit

void(* otp_driver_interface_t::deinit)(void) ( void  )

OTP driver interface: read from shadow

◆ init

void(* otp_driver_interface_t::init)(void) ( void  )

OTP driver interface: deinit

◆ lock

hpm_stat_t(* otp_driver_interface_t::lock)(uint32_t addr, otp_lock_option_t lock_option)

OTP driver interface: lock_shadow

◆ lock_shadow

hpm_stat_t(* otp_driver_interface_t::lock_shadow)(uint32_t addr, otp_lock_option_t lock_option)

OTP driver interface: set_configurable_region

◆ program

hpm_stat_t(* otp_driver_interface_t::program)(uint32_t addr, const uint32_t *src, uint32_t num_of_words)

OTP driver interface: reload

◆ read_from_ip

uint32_t(* otp_driver_interface_t::read_from_ip)(uint32_t addr)

OTP driver interface: program

◆ read_from_shadow

uint32_t(* otp_driver_interface_t::read_from_shadow)(uint32_t addr)

OTP driver interface: read from ip

◆ reload

hpm_stat_t(* otp_driver_interface_t::reload)(otp_region_t region)

OTP driver interface: lock

◆ set_configurable_region

hpm_stat_t(* otp_driver_interface_t::set_configurable_region)(uint32_t start, uint32_t num_of_words)

OTP driver interface: write_shadow_register

◆ version

uint32_t otp_driver_interface_t::version

< OTP driver interface version OTP driver interface: init

◆ write_shadow_register

hpm_stat_t(* otp_driver_interface_t::write_shadow_register)(uint32_t addr, uint32_t data)

The documentation for this struct was generated from the following file: