![]() |
nrfx 4.5.0
|
Hardware access layer with cache and barrier support for managing the MRAMC peripheral. More...
Data Structures | |
| struct | nrfy_mramc_config_t |
| MRAMC configuration structure. More... | |
Macros | |
| #define | NRFY_MRAMC_BITS_IN_BYTE 8 |
| Value representing how many bits in a byte. | |
| #define | NRFY_MRAMC_BYTES_IN_WORD 4 |
| Value representing the number of bytes in a word. | |
| #define | NRFY_MRAMC_WORDS_IN_BUS_SIZE NRF_MRAMC_BUS_SIZE / (NRFY_MRAMC_BITS_IN_BYTE * NRFY_MRAMC_BYTES_IN_WORD) |
| Value representing the number of words in bus width. | |
| #define | NRFY_MRAMC_WORD_AFTER_ERASED UINT32_MAX |
| MRAMC erase value. | |
| #define | NRFY_MRAMC_MRAM_BASE_ADDRESS NRF_MEMORY_FLASH_BASE |
| Value representing resistive random access memory (MRAM) base address. | |
| #define | NRFY_MRAMC_READYNEXTTIMEOUT_DEFAULT NRF_MRAMC_READYNEXTTIMEOUT_DEFAULT |
| Default value for waiting for a next write. | |
| #define | NRFY_MRAMC_HAS_POWER_MASK 1 |
| #define | NRFY_MRAMC_HAS_CONFIGNVR_PAGE_UPPER_PROTECT 1 |
| #define | NRFY_MRAMC_HAS_CONFIGNVR_PAGE_LOWER_PROTECT 1 |
Functions | |
| NRFY_STATIC_INLINE void | nrfy_mramc_configure (NRF_MRAMC_Type *p_reg, nrfy_mramc_config_t const *p_config) |
| Function for configuring the MRAMC. | |
| NRFY_STATIC_INLINE void | nrfy_mramc_int_init (NRF_MRAMC_Type *p_reg, uint32_t mask, uint8_t irq_priority, bool enable) |
| Function for initializing the specified MRAMC interrupts. | |
| NRFY_STATIC_INLINE void | nrfy_mramc_int_uninit (NRF_MRAMC_Type *p_reg) |
| Function for uninitializing the MRAMC interrupts. | |
| NRFY_STATIC_INLINE uint32_t | nrfy_mramc_events_process (NRF_MRAMC_Type *p_reg, uint32_t mask) |
| Function for processing the specified MRAMC events. | |
| NRFY_STATIC_INLINE void | nrfy_mramc_word_write (NRF_MRAMC_Type *p_reg, uint32_t address, uint32_t value) |
| Function for writing a 32-bit word to MRAM. | |
| NRFY_STATIC_INLINE void | nrfy_mramc_words_write (NRF_MRAMC_Type *p_reg, uint32_t address, void const *src, uint32_t num_words) |
| Function for writing consecutive 32-bit words to MRAM. | |
| NRFY_STATIC_INLINE uint32_t | nrfy_mramc_word_read (uint32_t address) |
| Function for reading a 32-bit word from the MRAM. | |
| NRFY_STATIC_INLINE void | nrfy_mramc_buffer_read (void *dst, uint32_t address, uint32_t num_bytes) |
| Function for reading a given number of bytes from the MRAM into the specified buffer. | |
| NRFY_STATIC_INLINE void | nrfy_mramc_erase (uint32_t address, uint32_t num_words) |
| Function for erasing in MRAM. | |
| NRFY_STATIC_INLINE void | nrfy_mramc_confignvr_perm_set (NRF_MRAMC_Type *p_reg, bool enable, uint8_t page) |
| Function for setting CONFIGNVR read and write permission. | |
| NRFY_STATIC_INLINE void | nrfy_mramc_event_clear (NRF_MRAMC_Type *p_reg, nrf_mramc_event_t event) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_event_check (NRF_MRAMC_Type const *p_reg, nrf_mramc_event_t event) |
| NRFY_STATIC_INLINE uint32_t | nrfy_mramc_event_address_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_event_t event) |
| NRFY_STATIC_INLINE void | nrfy_mramc_int_enable (NRF_MRAMC_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE void | nrfy_mramc_int_disable (NRF_MRAMC_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE uint32_t | nrfy_mramc_int_enable_check (NRF_MRAMC_Type const *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE uint32_t | nrfy_mramc_int_pending_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_ready_get (NRF_MRAMC_Type *p_reg) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_readynext_get (NRF_MRAMC_Type *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_ecc_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_ecc_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_ecc_error_clear (NRF_MRAMC_Type *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_ecc_corr_clear (NRF_MRAMC_Type *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_config_set (NRF_MRAMC_Type *p_reg, nrf_mramc_config_t const *p_config) |
| NRFY_STATIC_INLINE void | nrfy_mramc_config_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_config_t *p_config) |
| NRFY_STATIC_INLINE void | nrfy_mramc_autoreadmode_set (NRF_MRAMC_Type *p_reg, uint16_t timeout) |
| NRFY_STATIC_INLINE uint16_t | nrfy_mramc_autoreadmode_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_waitstates_set (NRF_MRAMC_Type *p_reg, nrf_mramc_waitstates_t const *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_waitstates_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_waitstates_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_readynext_timeout_set (NRF_MRAMC_Type *p_reg, nrf_mramc_readynext_timeout_t const *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_readynext_timeout_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_readynext_timeout_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_lowavgcurr_set (NRF_MRAMC_Type *p_reg, nrf_mramc_lowavgcurr_t const *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_lowavgcurr_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_lowavgcurr_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_init_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_init_t mode) |
| NRFY_STATIC_INLINE nrf_mramc_power_init_t | nrfy_mramc_power_init_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_autopowerdown_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_autopowerdown_t const *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_autopowerdown_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_autopowerdown_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_mask_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_conf_t const *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_mask_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
| NRFY_STATIC_INLINE nrf_mramc_power_status_t | nrfy_mramc_power_status_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_powerup_ack_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_powerdown_ack_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_force_on_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_conf_t const *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_force_on_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_force_off_set (NRF_MRAMC_Type *p_reg, nrf_mramc_power_conf_t const *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_power_force_off_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_power_conf_t *p_data) |
| NRFY_STATIC_INLINE void | nrfy_mramc_trim_datain_set (NRF_MRAMC_Type *p_reg, uint32_t data) |
| NRFY_STATIC_INLINE uint32_t | nrfy_mramc_trim_datain_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE uint32_t | nrfy_mramc_trim_dataout_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_trim_count_set (NRF_MRAMC_Type *p_reg, uint32_t bits) |
| NRF_STATIC_INLINE uint32_t | nrfy_mramc_trim_count_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_trim_start (NRF_MRAMC_Type *p_reg) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_trim_start_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_trim_ready_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_trim_done_set (NRF_MRAMC_Type *p_reg) |
| NRFY_STATIC_INLINE nrf_mramc_trim_t | nrfy_mramc_trim_done_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_erase_word_set (NRF_MRAMC_Type *p_reg, uint32_t address) |
| NRFY_STATIC_INLINE void | nrfy_mramc_erase_area_set (NRF_MRAMC_Type *p_reg, uint32_t address, uint32_t size) |
| NRFY_STATIC_INLINE void | nrfy_mramc_erase_area_get (NRF_MRAMC_Type *p_reg, uint32_t *p_address, uint32_t *p_size) |
| NRFY_STATIC_INLINE void | nrfy_mramc_erase_all (NRF_MRAMC_Type *p_reg) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_erase_all_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_erase_word_lock_set (NRF_MRAMC_Type *p_reg, bool lock) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_erase_word_lock_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_erase_area_lock_set (NRF_MRAMC_Type *p_reg, bool lock) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_erase_area_lock_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_erase_all_lock_set (NRF_MRAMC_Type *p_reg, bool lock) |
| NRFY_STATIC_INLINE bool | nrfy_mramc_erase_all_lock_get (NRF_MRAMC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_mramc_config_nvr_set (NRF_MRAMC_Type *p_reg, nrf_mramc_config_nvr_t const *p_data, uint8_t page) |
| NRF_STATIC_INLINE void | nrfy_mramc_config_nvr_get (NRF_MRAMC_Type const *p_reg, nrf_mramc_config_nvr_t *p_data, uint8_t page) |
Hardware access layer with cache and barrier support for managing the MRAMC peripheral.
| #define NRFY_MRAMC_HAS_CONFIGNVR_PAGE_LOWER_PROTECT 1 |
| #define NRFY_MRAMC_HAS_CONFIGNVR_PAGE_UPPER_PROTECT 1 |
| #define NRFY_MRAMC_HAS_POWER_MASK 1 |
| #define NRFY_MRAMC_WORDS_IN_BUS_SIZE NRF_MRAMC_BUS_SIZE / (NRFY_MRAMC_BITS_IN_BYTE * NRFY_MRAMC_BYTES_IN_WORD) |
Value representing the number of words in bus width.
MRAM register bus width is 128-bits, which means that 4 words can be written in one bus width.
| NRFY_STATIC_INLINE uint16_t nrfy_mramc_autoreadmode_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_autoreadmode_set | ( | NRF_MRAMC_Type * | p_reg, |
| uint16_t | timeout ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | timeout | Timeout value. |
| NRFY_STATIC_INLINE void nrfy_mramc_buffer_read | ( | void * | dst, |
| uint32_t | address, | ||
| uint32_t | num_bytes ) |
Function for reading a given number of bytes from the MRAM into the specified buffer.
| [out] | dst | Pointer to the buffer to store the data. |
| [in] | address | Address of the first byte to be read. |
| [in] | num_bytes | Number of bytes to be read. |
| NRFY_STATIC_INLINE void nrfy_mramc_config_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_config_t * | p_config ) |
| [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 nrfy_mramc_config_nvr_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_config_nvr_t * | p_data, | ||
| uint8_t | 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]. |
| NRFY_STATIC_INLINE void nrfy_mramc_config_nvr_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_config_nvr_t const * | p_data, | ||
| uint8_t | 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]. |
| NRFY_STATIC_INLINE void nrfy_mramc_config_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_config_t const * | p_config ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | p_config | Pointer to the structure containing configuration to be set. |
| NRFY_STATIC_INLINE void nrfy_mramc_confignvr_perm_set | ( | NRF_MRAMC_Type * | p_reg, |
| bool | enable, | ||
| uint8_t | page ) |
Function for setting CONFIGNVR read and write permission.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | enable | True to enable write and erase permission of CONFIGNVR.PAGE[n], false to disable. |
| [in] | page | Page number [0...n]. |
| NRFY_STATIC_INLINE void nrfy_mramc_configure | ( | NRF_MRAMC_Type * | p_reg, |
| nrfy_mramc_config_t const * | p_config ) |
Function for configuring the MRAMC.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | p_config | Pointer to the structure of configuration of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_ecc_corr_clear | ( | NRF_MRAMC_Type * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_ecc_error_clear | ( | NRF_MRAMC_Type * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_ecc_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_ecc_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_erase | ( | uint32_t | address, |
| uint32_t | num_words ) |
Function for erasing in MRAM.
| [in] | address | Address to be erased. |
| [in] | num_words | Number of 32-bits words to be erased. |
| NRFY_STATIC_INLINE void nrfy_mramc_erase_all | ( | NRF_MRAMC_Type * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE bool nrfy_mramc_erase_all_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Start erase of chip. |
| false | No operation. |
| NRFY_STATIC_INLINE bool nrfy_mramc_erase_all_lock_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Lock enabled. |
| false | Lock disabled. |
| NRFY_STATIC_INLINE void nrfy_mramc_erase_all_lock_set | ( | NRF_MRAMC_Type * | p_reg, |
| bool | lock ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | lock | Set true to enable or false to disable a lock. |
| NRFY_STATIC_INLINE void nrfy_mramc_erase_area_get | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t * | p_address, | ||
| uint32_t * | p_size ) |
| [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. |
| NRFY_STATIC_INLINE bool nrfy_mramc_erase_area_lock_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Lock enabled. |
| false | Lock disabled. |
| NRFY_STATIC_INLINE void nrfy_mramc_erase_area_lock_set | ( | NRF_MRAMC_Type * | p_reg, |
| bool | lock ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | lock | Set true to enable or false to disable a lock. |
| NRFY_STATIC_INLINE void nrfy_mramc_erase_area_set | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | address, | ||
| uint32_t | size ) |
| [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. |
| NRFY_STATIC_INLINE bool nrfy_mramc_erase_word_lock_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Lock enabled. |
| false | Lock disabled. |
| NRFY_STATIC_INLINE void nrfy_mramc_erase_word_lock_set | ( | NRF_MRAMC_Type * | p_reg, |
| bool | lock ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | lock | Set true to enable or false to disable a lock. |
| NRFY_STATIC_INLINE void nrfy_mramc_erase_word_set | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | address ) |
| [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. |
| NRFY_STATIC_INLINE uint32_t nrfy_mramc_event_address_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_event_t | event ) |
| [in] | p_reg | Pointer to the peripheral register structure. |
| [in] | event | Requested event. |
| NRFY_STATIC_INLINE bool nrfy_mramc_event_check | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_event_t | 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. |
| NRFY_STATIC_INLINE void nrfy_mramc_event_clear | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_event_t | event ) |
| [in] | p_reg | Pointer to the peripheral register structure. |
| [in] | event | Event to clear. |
| NRFY_STATIC_INLINE uint32_t nrfy_mramc_events_process | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | mask ) |
Function for processing the specified MRAMC events.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of events to be processed, created by NRFY_EVENT_TO_INT_BITMASK(). |
| NRFY_STATIC_INLINE void nrfy_mramc_int_disable | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | mask ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_int_enable | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | mask ) |
| [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. |
| NRFY_STATIC_INLINE uint32_t nrfy_mramc_int_enable_check | ( | NRF_MRAMC_Type const * | p_reg, |
| uint32_t | mask ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_int_init | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | mask, | ||
| uint8_t | irq_priority, | ||
| bool | enable ) |
Function for initializing the specified MRAMC interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be initialized. |
| [in] | irq_priority | Interrupt priority. |
| [in] | enable | True if interrupts associated with the event mask are to be enabled, false otherwise. |
| NRFY_STATIC_INLINE uint32_t nrfy_mramc_int_pending_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_int_uninit | ( | NRF_MRAMC_Type * | p_reg | ) |
Function for uninitializing the MRAMC interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_lowavgcurr_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_lowavgcurr_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_lowavgcurr_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_lowavgcurr_t const * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_autopowerdown_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_power_autopowerdown_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_autopowerdown_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_power_autopowerdown_t const * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_force_off_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_power_conf_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_force_off_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_power_conf_t const * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_force_on_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_power_conf_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_force_on_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_power_conf_t const * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE nrf_mramc_power_init_t nrfy_mramc_power_init_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_init_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_power_init_t | mode ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mode | Power init mode. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_mask_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_power_conf_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_power_mask_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_power_conf_t const * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE nrf_mramc_power_status_t nrfy_mramc_power_status_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_powerdown_ack_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_power_conf_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_powerup_ack_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_power_conf_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE bool nrfy_mramc_ready_get | ( | NRF_MRAMC_Type * | p_reg | ) |
| [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. |
| NRFY_STATIC_INLINE bool nrfy_mramc_readynext_get | ( | NRF_MRAMC_Type * | p_reg | ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_readynext_timeout_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_readynext_timeout_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_readynext_timeout_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_readynext_timeout_t const * | p_data ) |
| [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 nrfy_mramc_trim_count_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_trim_count_set | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | bits ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | bits | Number of bits to be written. |
| NRFY_STATIC_INLINE uint32_t nrfy_mramc_trim_datain_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_trim_datain_set | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | data ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | data | Data to be written to the MRAM trim configuration. |
| NRFY_STATIC_INLINE uint32_t nrfy_mramc_trim_dataout_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE nrf_mramc_trim_t nrfy_mramc_trim_done_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_mramc_trim_done_set | ( | NRF_MRAMC_Type * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE bool nrfy_mramc_trim_ready_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_trim_start | ( | NRF_MRAMC_Type * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE bool nrfy_mramc_trim_start_get | ( | NRF_MRAMC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Start trim config. |
| false | No operation. |
| NRFY_STATIC_INLINE void nrfy_mramc_waitstates_get | ( | NRF_MRAMC_Type const * | p_reg, |
| nrf_mramc_waitstates_t * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE void nrfy_mramc_waitstates_set | ( | NRF_MRAMC_Type * | p_reg, |
| nrf_mramc_waitstates_t const * | p_data ) |
| [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. |
| NRFY_STATIC_INLINE uint32_t nrfy_mramc_word_read | ( | uint32_t | address | ) |
Function for reading a 32-bit word from the MRAM.
| [in] | address | Address of the word to be read. |
| NRFY_STATIC_INLINE void nrfy_mramc_word_write | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | address, | ||
| uint32_t | value ) |
Function for writing a 32-bit word to MRAM.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | address | Address to where data is to be written. Must be word-aligned. |
| [in] | value | Value to be written. |
| NRFY_STATIC_INLINE void nrfy_mramc_words_write | ( | NRF_MRAMC_Type * | p_reg, |
| uint32_t | address, | ||
| void const * | src, | ||
| uint32_t | num_words ) |
Function for writing consecutive 32-bit words to MRAM.
Function uses direct write mode to write to MRAM directly.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | address | Address to where data is to be written. Must be word-aligned. |
| [in] | src | Pointer to data to be copied. Must be word-aligned. |
| [in] | num_words | Number of words to be written. |