Hardware access layer for managing the Magnetoresistive Random Access Memory Controller (MRAMC) peripheral. More...
Data Structures | |
struct | nrf_mramc_ecc_t |
Error Correction Code (ECC) information. More... | |
struct | nrf_mramc_config_t |
MRAMC configuration structure. More... | |
struct | nrf_mramc_waitstates_t |
Waitstates for MRAM read access. More... | |
struct | nrf_mramc_readynext_timeout_t |
Preload timeout value for waiting for a next write. More... | |
struct | nrf_mramc_lowavgcurr_t |
Preload timeout value for low average current in case of read, write, and erase. More... | |
struct | nrf_mramc_power_autopowerdown_t |
Structure for configurating the automatic power-down feature using the inactive time period of MRAM. More... | |
struct | nrf_mramc_power_conf_t |
Mask for the various voltages supplies when initiating power-up/down. More... | |
struct | nrf_mramc_config_nvr_t |
Configuration structure for NVR page n. More... | |
Enumerations | |
enum | nrf_mramc_event_t { NRF_MRAMC_EVENT_READY = offsetof(NRF_MRAMC_Type, EVENTS_READY) , NRF_MRAMC_EVENT_READYNEXT = offsetof(NRF_MRAMC_Type, EVENTS_READYNEXT) , NRF_MRAMC_EVENT_ECCERROR = offsetof(NRF_MRAMC_Type, EVENTS_ECCERROR) , NRF_MRAMC_EVENT_ECCERRORCORR = offsetof(NRF_MRAMC_Type, EVENTS_ECCERRORCORR) , NRF_MRAMC_EVENT_TRIMCONFIGREQ = offsetof(NRF_MRAMC_Type, EVENTS_TRIMCONFIGREQ) , NRF_MRAMC_EVENT_ACCESSERR = offsetof(NRF_MRAMC_Type, EVENTS_ACCESSERR) } |
MRAMC events. More... | |
enum | nrf_mramc_int_mask_t { NRF_MRAMC_INT_READY_MASK = MRAMC_INTENSET_READY_Msk , NRF_MRAMC_INT_READYNEXT_MASK = MRAMC_INTENSET_READYNEXT_Msk , NRF_MRAMC_INT_ECCERROR_MASK = MRAMC_INTENSET_ECCERROR_Msk , NRF_MRAMC_INT_ECCERRORCORR_MASK = MRAMC_INTENSET_ECCERRORCORR_Msk , NRF_MRAMC_INT_TRIMCONFIGREQ_MASK = MRAMC_INTENSET_TRIMCONFIGREQ_Msk , NRF_MRAMC_INT_ACCESSERR_MASK = MRAMC_INTENSET_ACCESSERR_Msk } |
MRAMC interrupts. More... | |
enum | nrf_mramc_mode_write_t { NRF_MRAMC_MODE_WRITE_DISABLE = MRAMC_CONFIG_WEN_DisableWrite , NRF_MRAMC_MODE_WRITE_NORMAL = MRAMC_CONFIG_WEN_EnableNormalWrite , NRF_MRAMC_MODE_WRITE_DIRECT = MRAMC_CONFIG_WEN_EnableDirectWrite } |
Write enable (WEN) settings. More... | |
enum | nrf_mramc_mode_erase_t { NRF_MRAMC_MODE_ERASE_DISABLE = MRAMC_CONFIG_EEN_DisableErase , NRF_MRAMC_MODE_ERASE_PAGE = MRAMC_CONFIG_EEN_EnablePageErase , NRF_MRAMC_MODE_ERASE_WORD = MRAMC_CONFIG_EEN_EnableWordErase } |
Erase enable (EEN) settings. More... | |
enum | nrf_mramc_power_init_t { NRF_MRAMC_POWER_INIT_MODE_NO_OPERATION = MRAMC_POWER_INIT_MODE_NoOperation , NRF_MRAMC_POWER_INIT_MODE_UP = MRAMC_POWER_INIT_MODE_PowerUp , NRF_MRAMC_POWER_INIT_MODE_DOWN = MRAMC_POWER_INIT_MODE_PowerDown , NRF_MRAMC_POWER_INIT_MODE_DOWN_TRIM_RET = MRAMC_POWER_INIT_MODE_PowerDownTrimRet } |
Power mode settings. More... | |
enum | nrf_mramc_power_status_t { NRF_MRAMC_POWER_STATUS_OFF = MRAMC_POWER_STATUS_STATE_Off , NRF_MRAMC_POWER_STATUS_POWER_UP_SEQ = MRAMC_POWER_STATUS_STATE_PowerUpSeq , NRF_MRAMC_POWER_STATUS_TRIM_CFG_SEQ = MRAMC_POWER_STATUS_STATE_TrimConfigSeq , NRF_MRAMC_POWER_STATUS_TRIM_CFG_WAIT = MRAMC_POWER_STATUS_STATE_TrimConfigWait , NRF_MRAMC_POWER_STATUS_TRIM_CFG_DONE = MRAMC_POWER_STATUS_STATE_TrimConfigDone , NRF_MRAMC_POWER_STATUS_STANDBY = MRAMC_POWER_STATUS_STATE_Standby , NRF_MRAMC_POWER_STATUS_POWER_DOWN_SEQ = MRAMC_POWER_STATUS_STATE_PowerDownSeq , NRF_MRAMC_POWER_STATUS_OFF_TRIM_RETAIN = MRAMC_POWER_STATUS_STATE_OffTrimRetain } |
Power mode status. More... | |
enum | nrf_mramc_trim_t { NRF_MRAMC_TRIM_READ_UNKNOWN = MRAMC_TRIM_DONE_TRIMCOMPLETED_TrimUnknown , NRF_MRAMC_TRIM_READ_COMPLETED = MRAMC_TRIM_DONE_TRIMCOMPLETED_TrimCompleted } |
Trim configuration is completed - values for read operation. More... | |
Functions | |
NRF_STATIC_INLINE void | nrf_mramc_event_clear (NRF_MRAMC_Type *p_reg, nrf_mramc_event_t event) |
Function for clearing the specified MRAMC event. | |
NRF_STATIC_INLINE bool | nrf_mramc_event_check (NRF_MRAMC_Type const *p_reg, nrf_mramc_event_t event) |
Function for retrieving the state of the MRAMC event. | |
NRF_STATIC_INLINE uint32_t | nrf_mramc_event_address_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_event_t event) |
Function for getting the address of the specified MRAMC event register. | |
NRF_STATIC_INLINE void | nrf_mramc_int_enable (NRF_MRAMC_Type *p_reg, uint32_t mask) |
Function for enabling the specified interrupts. | |
NRF_STATIC_INLINE void | nrf_mramc_int_disable (NRF_MRAMC_Type *p_reg, uint32_t mask) |
Function for disabling the specified interrupts. | |
NRF_STATIC_INLINE uint32_t | nrf_mramc_int_enable_check (NRF_MRAMC_Type const *p_reg, uint32_t mask) |
Function for checking if the specified interrupts are enabled. | |
NRF_STATIC_INLINE uint32_t | nrf_mramc_int_pending_get (NRF_MRAMC_Type const *p_reg) |
Function for retrieving the state of pending interrupts. | |
NRF_STATIC_INLINE bool | nrf_mramc_ready_get (NRF_MRAMC_Type const *p_reg) |
Function for checking current MRAMC operation status. | |
NRF_STATIC_INLINE bool | nrf_mramc_readynext_get (NRF_MRAMC_Type const *p_reg) |
Function for checking READYNEXT register status. | |
NRF_STATIC_INLINE void | nrf_mramc_ecc_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_ecc_t *p_data) |
Function for getting Error Correction Code (ECC) information. | |
NRF_STATIC_INLINE void | nrf_mramc_ecc_error_clear (NRF_MRAMC_Type *p_reg) |
Function for clearing flag indicating detected error which could not be corrected. | |
NRF_STATIC_INLINE void | nrf_mramc_ecc_corr_clear (NRF_MRAMC_Type *p_reg) |
Function for clearing flag indicating detected error which was corrected. | |
NRF_STATIC_INLINE void | nrf_mramc_config_set (NRF_MRAMC_Type *p_reg, nrf_mramc_config_t const *p_config) |
Function for setting the MRAMC peripheral configuration. | |
NRF_STATIC_INLINE void | nrf_mramc_config_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_config_t *p_config) |
Function for getting the MRAMC peripheral configuration. | |
NRF_STATIC_INLINE void | nrf_mramc_autoreadmode_set (NRF_MRAMC_Type *p_reg, uint16_t timeout) |
Function for setting the timeout value for automatic read mode. | |
NRF_STATIC_INLINE uint16_t | nrf_mramc_autoreadmode_get (NRF_MRAMC_Type const *p_reg) |
Function for getting the timeout value for automatic read mode. | |
NRF_STATIC_INLINE void | nrf_mramc_waitstates_set (NRF_MRAMC_Type *p_reg, nrf_mramc_waitstates_t const *p_data) |
Function for setting wait states for MRAM read access. | |
NRF_STATIC_INLINE void | nrf_mramc_waitstates_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_waitstates_t *p_data) |
Function for reading wait states for MRAM read access. | |
NRF_STATIC_INLINE void | nrf_mramc_readynext_timeout_set (NRF_MRAMC_Type *p_reg, nrf_mramc_readynext_timeout_t const *p_data) |
Function for setting preload timeout value for waiting for a next write. | |
NRF_STATIC_INLINE void | nrf_mramc_readynext_timeout_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_readynext_timeout_t *p_data) |
Function for reading preload timeout value for waiting for a next write. | |
NRF_STATIC_INLINE void | nrf_mramc_lowavgcurr_set (NRF_MRAMC_Type *p_reg, nrf_mramc_lowavgcurr_t const *p_data) |
Function for setting preload timeout value for low average current in case of read, write and erase. | |
NRF_STATIC_INLINE void | nrf_mramc_lowavgcurr_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_lowavgcurr_t *p_data) |
Function for getting preload timeout value for low average current in case of read, write and erase. | |
NRF_STATIC_INLINE void | nrf_mramc_power_init_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_init_t mode) |
Function for setting power-up/down sequence. | |
NRF_STATIC_INLINE nrf_mramc_power_init_t | nrf_mramc_power_init_get (NRF_MRAMC_Type const *p_reg) |
Function for getting power-up/down sequence. | |
NRF_STATIC_INLINE void | nrf_mramc_power_autopowerdown_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_autopowerdown_t const *p_data) |
Function for setting automatic power-down feature using the inactive time period of MRAM. | |
NRF_STATIC_INLINE void | nrf_mramc_power_autopowerdown_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_autopowerdown_t *p_data) |
Function for getting automatic power-down feature using the inactive time period of MRAM. | |
NRF_STATIC_INLINE void | nrf_mramc_power_mask_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_conf_t const *p_data) |
Function for setting mask for the various voltages supplies when initiating power-up/down. | |
NRF_STATIC_INLINE void | nrf_mramc_power_mask_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
Function for getting mask for the various voltages supplies when initiating power-up/down. | |
NRF_STATIC_INLINE nrf_mramc_power_status_t | nrf_mramc_power_status_get (NRF_MRAMC_Type const *p_reg) |
Function for getting the power mode status. | |
NRF_STATIC_INLINE void | nrf_mramc_powerup_ack_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
Function for getting status of the power control signals acknowledgement during power-up sequence. | |
NRF_STATIC_INLINE void | nrf_mramc_powerdown_ack_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
Function for getting status of the power control signals acknowledgement during power-down sequence. | |
NRF_STATIC_INLINE void | nrf_mramc_power_force_on_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_conf_t const *p_data) |
Function for setting the configuration of force ON signal of the power supply. | |
NRF_STATIC_INLINE void | nrf_mramc_power_force_on_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
Function for getting force ON the power supply. | |
NRF_STATIC_INLINE void | nrf_mramc_power_force_off_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_conf_t const *p_data) |
Function for setting force OFF the power supply. | |
NRF_STATIC_INLINE void | nrf_mramc_power_force_off_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
Function for getting force OFF the power supply. | |
NRF_STATIC_INLINE void | nrf_mramc_trim_datain_set (NRF_MRAMC_Type *p_reg, uint32_t data) |
Function for setting data to be written to the MRAM trim configuration. | |
NRF_STATIC_INLINE uint32_t | nrf_mramc_trim_datain_get (NRF_MRAMC_Type const *p_reg) |
Function for getting data written to the MRAM trim configuration. | |
NRF_STATIC_INLINE uint32_t | nrf_mramc_trim_dataout_get (NRF_MRAMC_Type const *p_reg) |
Function for getting data read from the MRAM trim configuration. | |
NRF_STATIC_INLINE void | nrf_mramc_trim_count_set (NRF_MRAMC_Type *p_reg, uint32_t bits) |
Function for setting number of bits in the current data to be written to and read from the trim configuration. | |
NRF_STATIC_INLINE uint32_t | nrf_mramc_trim_count_get (NRF_MRAMC_Type const *p_reg) |
Function for getting number of bits in the current data to be written to and read from the trim configuration. | |
NRF_STATIC_INLINE void | nrf_mramc_trim_start (NRF_MRAMC_Type *p_reg) |
Function for setting start shifting data for trim configuration. | |
NRF_STATIC_INLINE bool | nrf_mramc_trim_start_get (NRF_MRAMC_Type const *p_reg) |
Function for getting start shifting data for trim configuration. | |
NRF_STATIC_INLINE bool | nrf_mramc_trim_ready_get (NRF_MRAMC_Type const *p_reg) |
Function for getting status of shifting the MRAM trim configuration data. | |
NRF_STATIC_INLINE void | nrf_mramc_trim_done_set (NRF_MRAMC_Type *p_reg) |
Function for indicating to the MRAMC that the whole MRAM trim configuration data write is completed. | |
NRF_STATIC_INLINE nrf_mramc_trim_t | nrf_mramc_trim_done_get (NRF_MRAMC_Type const *p_reg) |
Function for getting trim configuration data status. | |
NRF_STATIC_INLINE void | nrf_mramc_erase_word_set (NRF_MRAMC_Type *p_reg, uint32_t address) |
Function for erasing a 32-bit word in the MRAM main block. | |
NRF_STATIC_INLINE uint32_t | nrf_mramc_erase_word_get (NRF_MRAMC_Type const *p_reg) |
Function for getting address of word in the MRAM main block to be erased. | |
NRF_STATIC_INLINE void | nrf_mramc_erase_area_set (NRF_MRAMC_Type *p_reg, uint32_t address, uint32_t size) |
Function for erasing an area in the MRAM main block. | |
NRF_STATIC_INLINE void | nrf_mramc_erase_area_get (NRF_MRAMC_Type const *p_reg, uint32_t *p_address, uint32_t *p_size) |
Function for getting address and size of the area to be erased in the MRAM main block. | |
NRF_STATIC_INLINE void | nrf_mramc_erase_all (NRF_MRAMC_Type *p_reg) |
Function for erasing erasing whole MRAM main block and the first NVR page. | |
NRF_STATIC_INLINE bool | nrf_mramc_erase_all_get (NRF_MRAMC_Type const *p_reg) |
Function for getting ERASE.ERASEALL register value. | |
NRF_STATIC_INLINE void | nrf_mramc_erase_word_lock_set (NRF_MRAMC_Type *p_reg, bool lock) |
Function for setting the eraseword lock status. | |
NRF_STATIC_INLINE bool | nrf_mramc_erase_word_lock_get (NRF_MRAMC_Type const *p_reg) |
Function for getting the eraseword lock status. | |
NRF_STATIC_INLINE void | nrf_mramc_erase_area_lock_set (NRF_MRAMC_Type *p_reg, bool lock) |
Function for setting the erasearea lock status. | |
NRF_STATIC_INLINE bool | nrf_mramc_erase_area_lock_get (NRF_MRAMC_Type const *p_reg) |
Function for getting the erasearea lock status. | |
NRF_STATIC_INLINE void | nrf_mramc_erase_all_lock_set (NRF_MRAMC_Type *p_reg, bool lock) |
Function for setting the eraseall lock status. | |
NRF_STATIC_INLINE bool | nrf_mramc_erase_all_lock_get (NRF_MRAMC_Type const *p_reg) |
Function for getting the eraseall lock status. | |
NRF_STATIC_INLINE void | nrf_mramc_config_nvr_set (NRF_MRAMC_Type *p_reg, nrf_mramc_config_nvr_t const *p_data, uint8_t page) |
Function for configuring the specified NVR page. | |
NRF_STATIC_INLINE void | nrf_mramc_config_nvr_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_config_nvr_t *p_data, uint8_t page) |
Function for getting the configuring of the specified NVR page. | |
Hardware access layer for managing the Magnetoresistive Random Access Memory Controller (MRAMC) peripheral.
enum nrf_mramc_event_t |
MRAMC events.
enum nrf_mramc_int_mask_t |
MRAMC interrupts.
Power mode settings.
Power mode status.
enum nrf_mramc_trim_t |
NRF_STATIC_INLINE uint16_t nrf_mramc_autoreadmode_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting the timeout value for automatic read mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_autoreadmode_set | ( | NRF_MRAMC_Type * | p_reg, |
uint16_t | timeout | ||
) |
Function for setting the timeout value for automatic read mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | timeout | Timeout value. |
NRF_STATIC_INLINE void nrf_mramc_config_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_config_t * | p_config | ||
) |
Function for getting the MRAMC peripheral configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_config | Pointer to the structure to be filled with MRAMC configuration data. |
NRF_STATIC_INLINE void nrf_mramc_config_nvr_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_config_nvr_t * | p_data, | ||
uint8_t | page | ||
) |
Function for getting the configuring of the specified NVR page.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the settings data. |
[in] | page | Page number [0...3]. |
NRF_STATIC_INLINE void nrf_mramc_config_nvr_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_config_nvr_t const * | p_data, | ||
uint8_t | page | ||
) |
Function for configuring the specified NVR page.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the settings data. |
[in] | page | Page number [0...3]. |
NRF_STATIC_INLINE void nrf_mramc_config_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_config_t const * | p_config | ||
) |
Function for setting the MRAMC peripheral configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_config | Pointer to the structure containing configuration to be set. |
NRF_STATIC_INLINE void nrf_mramc_ecc_corr_clear | ( | NRF_MRAMC_Type * | p_reg | ) |
Function for clearing flag indicating detected error which was corrected.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_ecc_error_clear | ( | NRF_MRAMC_Type * | p_reg | ) |
Function for clearing flag indicating detected error which could not be corrected.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_ecc_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_ecc_t * | p_data | ||
) |
Function for getting Error Correction Code (ECC) information.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the data structure to be filled with ECC information. |
NRF_STATIC_INLINE void nrf_mramc_erase_all | ( | NRF_MRAMC_Type * | p_reg | ) |
Function for erasing erasing whole MRAM main block and the first NVR page.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE bool nrf_mramc_erase_all_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting ERASE.ERASEALL register value.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | Start erase of chip. |
false | No operation. |
NRF_STATIC_INLINE bool nrf_mramc_erase_all_lock_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting the eraseall lock status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | Lock enabled. |
false | Lock disabled. |
NRF_STATIC_INLINE void nrf_mramc_erase_all_lock_set | ( | NRF_MRAMC_Type * | p_reg, |
bool | lock | ||
) |
Function for setting the eraseall lock status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | lock | Set true to enable or false to disable a lock. |
NRF_STATIC_INLINE void nrf_mramc_erase_area_get | ( | NRF_MRAMC_Type const * | p_reg, |
uint32_t * | p_address, | ||
uint32_t * | p_size | ||
) |
Function for getting address and size of the area to be erased in the MRAM main block.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_address | Pointer to the address of the area. |
[out] | p_size | Pointer to the number of MRAM words to be erased. |
NRF_STATIC_INLINE bool nrf_mramc_erase_area_lock_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting the erasearea lock status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | Lock enabled. |
false | Lock disabled. |
NRF_STATIC_INLINE void nrf_mramc_erase_area_lock_set | ( | NRF_MRAMC_Type * | p_reg, |
bool | lock | ||
) |
Function for setting the erasearea lock status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | lock | Set true to enable or false to disable a lock. |
NRF_STATIC_INLINE void nrf_mramc_erase_area_set | ( | NRF_MRAMC_Type * | p_reg, |
uint32_t | address, | ||
uint32_t | size | ||
) |
Function for erasing an area in the MRAM main block.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | address | Start address of the area that needs to be erased in the MRAM. |
[in] | size | Number of MRAM words to be erased. |
NRF_STATIC_INLINE uint32_t nrf_mramc_erase_word_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting address of word in the MRAM main block to be erased.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE bool nrf_mramc_erase_word_lock_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting the eraseword lock status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | Lock enabled. |
false | Lock disabled. |
NRF_STATIC_INLINE void nrf_mramc_erase_word_lock_set | ( | NRF_MRAMC_Type * | p_reg, |
bool | lock | ||
) |
Function for setting the eraseword lock status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | lock | Set true to enable or false to disable a lock. |
NRF_STATIC_INLINE void nrf_mramc_erase_word_set | ( | NRF_MRAMC_Type * | p_reg, |
uint32_t | address | ||
) |
Function for erasing a 32-bit word in the MRAM main block.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | address | Address of the word that needs to be erased in the MRAM. |
NRF_STATIC_INLINE uint32_t nrf_mramc_event_address_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_event_t | event | ||
) |
Function for getting the address of the specified MRAMC event register.
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | event | Requested event. |
NRF_STATIC_INLINE bool nrf_mramc_event_check | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_event_t | event | ||
) |
Function for retrieving the state of the MRAMC event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
true | The event has been generated. |
false | The event has not been generated. |
NRF_STATIC_INLINE void nrf_mramc_event_clear | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_event_t | event | ||
) |
Function for clearing the specified MRAMC event.
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | event | Event to clear. |
NRF_STATIC_INLINE void nrf_mramc_int_disable | ( | NRF_MRAMC_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for disabling the specified interrupts.
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_mramc_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_mramc_int_enable | ( | NRF_MRAMC_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for enabling the specified interrupts.
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_mramc_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_mramc_int_enable_check | ( | NRF_MRAMC_Type const * | p_reg, |
uint32_t | mask | ||
) |
Function for checking if the specified interrupts are enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. Use nrf_mramc_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_mramc_int_pending_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for retrieving the state of pending interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_lowavgcurr_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_lowavgcurr_t * | p_data | ||
) |
Function for getting preload timeout value for low average current in case of read, write and erase.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about preload timeout value for average current in case of read, write, and errase operation. |
NRF_STATIC_INLINE void nrf_mramc_lowavgcurr_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_lowavgcurr_t const * | p_data | ||
) |
Function for setting preload timeout value for low average current in case of read, write and erase.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about preload timeout value for average current in case of read, write, and errase operation. |
NRF_STATIC_INLINE void nrf_mramc_power_autopowerdown_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_power_autopowerdown_t * | p_data | ||
) |
Function for getting automatic power-down feature using the inactive time period of MRAM.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about power-down feature configuration. |
NRF_STATIC_INLINE void nrf_mramc_power_autopowerdown_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_power_autopowerdown_t const * | p_data | ||
) |
Function for setting automatic power-down feature using the inactive time period of MRAM.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about power-down feature configuration. |
NRF_STATIC_INLINE void nrf_mramc_power_force_off_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_power_conf_t * | p_data | ||
) |
Function for getting force OFF the power supply.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about force OFF power supply. |
NRF_STATIC_INLINE void nrf_mramc_power_force_off_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_power_conf_t const * | p_data | ||
) |
Function for setting force OFF the power supply.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about force OFF power supply. |
NRF_STATIC_INLINE void nrf_mramc_power_force_on_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_power_conf_t * | p_data | ||
) |
Function for getting force ON the power supply.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about force ON power supply. |
NRF_STATIC_INLINE void nrf_mramc_power_force_on_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_power_conf_t const * | p_data | ||
) |
Function for setting the configuration of force ON signal of the power supply.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about force ON power supply. |
NRF_STATIC_INLINE nrf_mramc_power_init_t nrf_mramc_power_init_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting power-up/down sequence.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_power_init_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_power_init_t | mode | ||
) |
Function for setting power-up/down sequence.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Power init mode. |
NRF_STATIC_INLINE void nrf_mramc_power_mask_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_power_conf_t * | p_data | ||
) |
Function for getting mask for the various voltages supplies when initiating power-up/down.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about various voltages supplies when initiating power-up/down. |
NRF_STATIC_INLINE void nrf_mramc_power_mask_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_power_conf_t const * | p_data | ||
) |
Function for setting mask for the various voltages supplies when initiating power-up/down.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about various voltages supplies when initiating power-up/down. |
NRF_STATIC_INLINE nrf_mramc_power_status_t nrf_mramc_power_status_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting the power mode status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_powerdown_ack_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_power_conf_t * | p_data | ||
) |
Function for getting status of the power control signals acknowledgement during power-down sequence.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about status of the power control signals acknowledgement during power-down sequence. |
NRF_STATIC_INLINE void nrf_mramc_powerup_ack_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_power_conf_t * | p_data | ||
) |
Function for getting status of the power control signals acknowledgement during power-up sequence.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about status of the power control signals acknowledgement during power-up sequence. |
NRF_STATIC_INLINE bool nrf_mramc_ready_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for checking current MRAMC operation status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | Current operation is completed and MRAMC is ready. |
false | MRAMC is busy. |
NRF_STATIC_INLINE bool nrf_mramc_readynext_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for checking READYNEXT register status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | MRAMC is ready to accept a new write operation. |
false | MRAMC cannot accept any write operation now. |
NRF_STATIC_INLINE void nrf_mramc_readynext_timeout_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_readynext_timeout_t * | p_data | ||
) |
Function for reading preload timeout value for waiting for a next write.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about preload timeout value. |
NRF_STATIC_INLINE void nrf_mramc_readynext_timeout_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_readynext_timeout_t const * | p_data | ||
) |
Function for setting preload timeout value for waiting for a next write.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about$ preload timeout value. |
NRF_STATIC_INLINE uint32_t nrf_mramc_trim_count_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting number of bits in the current data to be written to and read from the trim configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_trim_count_set | ( | NRF_MRAMC_Type * | p_reg, |
uint32_t | bits | ||
) |
Function for setting number of bits in the current data to be written to and read from the trim configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | bits | Number of bits to be written. |
NRF_STATIC_INLINE uint32_t nrf_mramc_trim_datain_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting data written to the MRAM trim configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_trim_datain_set | ( | NRF_MRAMC_Type * | p_reg, |
uint32_t | data | ||
) |
Function for setting data to be written to the MRAM trim configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | data | Data to be written to the MRAM trim configuration. |
NRF_STATIC_INLINE uint32_t nrf_mramc_trim_dataout_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting data read from the MRAM trim configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE nrf_mramc_trim_t nrf_mramc_trim_done_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting trim configuration data status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mramc_trim_done_set | ( | NRF_MRAMC_Type * | p_reg | ) |
Function for indicating to the MRAMC that the whole MRAM trim configuration data write is completed.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE bool nrf_mramc_trim_ready_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting status of shifting the MRAM trim configuration data.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | Ready for shifting the next MRAM trim configuration data. |
false | Shifting the MRAM trim configuration data is in progress. |
NRF_STATIC_INLINE void nrf_mramc_trim_start | ( | NRF_MRAMC_Type * | p_reg | ) |
Function for setting start shifting data for trim configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE bool nrf_mramc_trim_start_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
Function for getting start shifting data for trim configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | Start trim config. |
false | No operation. |
NRF_STATIC_INLINE void nrf_mramc_waitstates_get | ( | NRF_MRAMC_Type const * | p_reg, |
nrf_mramc_waitstates_t * | p_data | ||
) |
Function for reading wait states for MRAM read access.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the data structure to be filled with waitstates information for MRAM read access. |
NRF_STATIC_INLINE void nrf_mramc_waitstates_set | ( | NRF_MRAMC_Type * | p_reg, |
nrf_mramc_waitstates_t const * | p_data | ||
) |
Function for setting wait states for MRAM read access.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about waitstates for MRAM read access. |