Hardware access layer for managing the Memory Configuration (MEMCONF) peripheral. More...
Macros | |
#define | NRF_MEMCONF_HAS_RET2 1 |
Symbol indicating whether the second retention configuration register is present. | |
#define | NRF_MEMCONF_HAS_REPAIR 1 |
Symbol indicating whether the repair configuration for RAM blocks is present. | |
#define | NRF_MEMCONF_HAS_TRIM 1 |
Symbol indicating whether the trim configuration is present. | |
#define | NRF_MEMCONF_POWERBLOCK_COUNT MEMCONF_POWER_MaxCount |
Symbol specifying maximum number of available power blocks. | |
#define | NRF_MEMCONF_POWERBLOCK_RAMBLOCK_CONTROL_COUNT MEMCONF_POWER_CONTROL_MEM31_Pos |
Symbol specifying maximum number of control RAM blocks. | |
#define | NRF_MEMCONF_POWERBLOCK_RAMBLOCK_RET_COUNT MEMCONF_POWER_RET_MEM31_Pos |
Symbol specifying maximum number of retention RAM blocks. | |
#define | NRF_MEMCONF_POWERBLOCK_RAMBLOCK_RET2_COUNT MEMCONF_POWER_RET2_MEM31_Pos |
Symbol specifying maximum number of second bank retention RAM blocks. | |
#define | NRF_MEMCONF_BLOCKTYPE_TRIM_MEMTRIM_MASK |
Symbol specifying bitmask collecting all memory read and write margin trims. | |
#define | NRF_MEMCONF_BLOCKTYPE_TRIM_MEMRETTRIM_MASK |
Symbol specifying bitmask collecting all memory retention trims. | |
Functions | |
NRF_STATIC_INLINE void | nrf_memconf_ramblock_control_enable_set (NRF_MEMCONF_Type *p_reg, uint8_t power_id, uint8_t ramblock, bool enable) |
Function for enabling or disabling given RAM block. | |
NRF_STATIC_INLINE void | nrf_memconf_ramblock_control_mask_enable_set (NRF_MEMCONF_Type *p_reg, uint8_t power_id, uint32_t ramblock_mask, bool enable) |
Function for enabling or disabling specified RAM blocks. | |
NRF_STATIC_INLINE bool | nrf_memconf_ramblock_control_enable_check (NRF_MEMCONF_Type const *p_reg, uint8_t power_id, uint8_t ramblock) |
Function for checking whether given RAM block is enabled. | |
NRF_STATIC_INLINE void | nrf_memconf_ramblock_ret_enable_set (NRF_MEMCONF_Type *p_reg, uint8_t power_id, uint8_t ramblock, bool enable) |
Function for enabling or disabling the retention for given RAM block. | |
NRF_STATIC_INLINE void | nrf_memconf_ramblock_ret_mask_enable_set (NRF_MEMCONF_Type *p_reg, uint8_t power_id, uint32_t ramblock_mask, bool enable) |
Function for enabling or disabling retention for the specified RAM blocks. | |
NRF_STATIC_INLINE bool | nrf_memconf_ramblock_ret_enable_check (NRF_MEMCONF_Type const *p_reg, uint8_t power_id, uint8_t ramblock) |
Function for checking whether the retention of specified RAM block is enabled. | |
NRF_STATIC_INLINE void | nrf_memconf_ramblock_ret2_enable_set (NRF_MEMCONF_Type *p_reg, uint8_t power_id, uint8_t ramblock, bool enable) |
Function for enabling or disabling the retention within the second bank for given RAM block. | |
NRF_STATIC_INLINE bool | nrf_memconf_ramblock_ret2_enable_check (NRF_MEMCONF_Type const *p_reg, uint8_t power_id, uint8_t ramblock) |
Function for checking whether the retention of second bank in specified RAM block is enabled. | |
NRF_STATIC_INLINE void | nrf_memconf_bitline_enable_set (NRF_MEMCONF_Type *p_reg, uint8_t bitline, bool enable) |
Function for enabling or disabling given bitline. | |
NRF_STATIC_INLINE bool | nrf_memconf_bitline_enable_check (NRF_MEMCONF_Type const *p_reg, uint8_t bitline) |
Function for getting enable status for given bitline. | |
NRF_STATIC_INLINE void | nrf_memconf_bitline_address_set (NRF_MEMCONF_Type *p_reg, uint8_t bitline, uint8_t address) |
Function for setting bitline address. | |
NRF_STATIC_INLINE uint32_t | nrf_memconf_bitline_address_get (NRF_MEMCONF_Type const *p_reg, uint8_t bitline) |
Function for getting bitline address. | |
NRF_STATIC_INLINE void | nrf_memconf_memtrim_set (NRF_MEMCONF_Type *p_reg, uint8_t trim_id, uint16_t trim_val) |
Function for setting memory trim value. | |
NRF_STATIC_INLINE uint16_t | nrf_memconf_memtrim_get (NRF_MEMCONF_Type const *p_reg, uint8_t trim_id) |
Function for getting memory trim value. | |
NRF_STATIC_INLINE void | nrf_memconf_rettrim_set (NRF_MEMCONF_Type *p_reg, uint8_t trim_id, uint16_t trim_val) |
Function for setting retention trim value. | |
NRF_STATIC_INLINE uint16_t | nrf_memconf_rettrim_get (NRF_MEMCONF_Type const *p_reg, uint8_t trim_id) |
Function for getting retention trim value. | |
Hardware access layer for managing the Memory Configuration (MEMCONF) peripheral.
#define NRF_MEMCONF_BLOCKTYPE_TRIM_MEMRETTRIM_MASK |
Symbol specifying bitmask collecting all memory retention trims.
#define NRF_MEMCONF_BLOCKTYPE_TRIM_MEMTRIM_MASK |
Symbol specifying bitmask collecting all memory read and write margin trims.
NRF_STATIC_INLINE uint32_t nrf_memconf_bitline_address_get | ( | NRF_MEMCONF_Type const * | p_reg, |
uint8_t | bitline | ||
) |
Function for getting bitline address.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | bitline | Bitline index. |
NRF_STATIC_INLINE void nrf_memconf_bitline_address_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | bitline, | ||
uint8_t | address | ||
) |
Function for setting bitline address.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | bitline | Bitline index. |
[in] | address | Addres for given bitline. |
NRF_STATIC_INLINE bool nrf_memconf_bitline_enable_check | ( | NRF_MEMCONF_Type const * | p_reg, |
uint8_t | bitline | ||
) |
Function for getting enable status for given bitline.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | bitline | Bitline index. |
NRF_STATIC_INLINE void nrf_memconf_bitline_enable_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | bitline, | ||
bool | enable | ||
) |
Function for enabling or disabling given bitline.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | bitline | Bitline to be enabled/disabled. |
[in] | enable | True if bitline is to be enabled, false otherwise. |
NRF_STATIC_INLINE uint16_t nrf_memconf_memtrim_get | ( | NRF_MEMCONF_Type const * | p_reg, |
uint8_t | trim_id | ||
) |
Function for getting memory trim value.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | trim_id | Trim index. |
NRF_STATIC_INLINE void nrf_memconf_memtrim_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | trim_id, | ||
uint16_t | trim_val | ||
) |
Function for setting memory trim value.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | trim_id | Trim index. |
[in] | trim_val | Trim value. |
NRF_STATIC_INLINE bool nrf_memconf_ramblock_control_enable_check | ( | NRF_MEMCONF_Type const * | p_reg, |
uint8_t | power_id, | ||
uint8_t | ramblock | ||
) |
Function for checking whether given RAM block is enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | power_id | Power block index. |
[in] | ramblock | RAM block index. |
true | RAM block is enabled. |
false | RAM block is disabled. |
NRF_STATIC_INLINE void nrf_memconf_ramblock_control_enable_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | power_id, | ||
uint8_t | ramblock, | ||
bool | enable | ||
) |
Function for enabling or disabling given RAM block.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | power_id | Power block index. |
[in] | ramblock | RAM block index. |
[in] | enable | True if RAM block is to be enabled, false otherwise. |
NRF_STATIC_INLINE void nrf_memconf_ramblock_control_mask_enable_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | power_id, | ||
uint32_t | ramblock_mask, | ||
bool | enable | ||
) |
Function for enabling or disabling specified RAM blocks.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | power_id | Power block index. |
[in] | ramblock_mask | Mask of RAM blocks. |
[in] | enable | True if RAM blocks are to be enabled, false otherwise. |
NRF_STATIC_INLINE bool nrf_memconf_ramblock_ret2_enable_check | ( | NRF_MEMCONF_Type const * | p_reg, |
uint8_t | power_id, | ||
uint8_t | ramblock | ||
) |
Function for checking whether the retention of second bank in specified RAM block is enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | power_id | Power block index. |
[in] | ramblock | RAM block index. |
true | RAM block is enabled. |
false | RAM block is disabled. |
NRF_STATIC_INLINE void nrf_memconf_ramblock_ret2_enable_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | power_id, | ||
uint8_t | ramblock, | ||
bool | enable | ||
) |
Function for enabling or disabling the retention within the second bank for given RAM block.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | power_id | Power block index. |
[in] | ramblock | RAM block index. |
[in] | enable | True if RAM block retention is to be enabled, false otherwise. |
NRF_STATIC_INLINE bool nrf_memconf_ramblock_ret_enable_check | ( | NRF_MEMCONF_Type const * | p_reg, |
uint8_t | power_id, | ||
uint8_t | ramblock | ||
) |
Function for checking whether the retention of specified RAM block is enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | power_id | Power block index. |
[in] | ramblock | RAM block index. |
true | RAM block is enabled. |
false | RAM block is disabled. |
NRF_STATIC_INLINE void nrf_memconf_ramblock_ret_enable_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | power_id, | ||
uint8_t | ramblock, | ||
bool | enable | ||
) |
Function for enabling or disabling the retention for given RAM block.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | power_id | Power block index. |
[in] | ramblock | RAM block index. |
[in] | enable | True if RAM block retention is to be enabled, false otherwise. |
NRF_STATIC_INLINE void nrf_memconf_ramblock_ret_mask_enable_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | power_id, | ||
uint32_t | ramblock_mask, | ||
bool | enable | ||
) |
Function for enabling or disabling retention for the specified RAM blocks.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | power_id | Power block index. |
[in] | ramblock_mask | Mask of RAM blocks. |
[in] | enable | True if retention for RAM blocks is to be enabled, false otherwise. |
NRF_STATIC_INLINE uint16_t nrf_memconf_rettrim_get | ( | NRF_MEMCONF_Type const * | p_reg, |
uint8_t | trim_id | ||
) |
Function for getting retention trim value.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | trim_id | Trim index. |
NRF_STATIC_INLINE void nrf_memconf_rettrim_set | ( | NRF_MEMCONF_Type * | p_reg, |
uint8_t | trim_id, | ||
uint16_t | trim_val | ||
) |
Function for setting retention trim value.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | trim_id | Trim index. |
[in] | trim_val | Trim value. |