Hardware access layer for managing the Random Access Memory Controller (RAMC) peripheral.
More...
|
NRF_STATIC_INLINE void | nrf_ramc_event_clear (NRF_RAMC_Type *p_reg, nrf_ramc_event_t event) |
| Function for clearing the specified RAMC event.
|
|
NRF_STATIC_INLINE bool | nrf_ramc_event_check (NRF_RAMC_Type const *p_reg, nrf_ramc_event_t event) |
| Function for retrieving the state of the RAMC event.
|
|
NRF_STATIC_INLINE uint32_t | nrf_ramc_event_address_get (NRF_RAMC_Type const *p_reg, nrf_ramc_event_t event) |
| Function for returning the address of the specified RAMC event register.
|
|
NRF_STATIC_INLINE void | nrf_ramc_waitstates_set (NRF_RAMC_Type *p_reg, uint8_t waitstates) |
| Function for setting number of waitstates for a read from the RAM.
|
|
NRF_STATIC_INLINE uint8_t | nrf_ramc_waitstates_get (NRF_RAMC_Type const *p_reg) |
| Function for getting number of waitstates for a read from the RAM.
|
|
NRF_STATIC_INLINE void | nrf_ramc_secbase_set (NRF_RAMC_Type *p_reg, uint32_t addr) |
| Function for setting base address for secure access area.
|
|
NRF_STATIC_INLINE uint32_t | nrf_ramc_secbase_get (NRF_RAMC_Type const *p_reg) |
| Function for getting base address for secure access area.
|
|
NRF_STATIC_INLINE void | nrf_ramc_secenable_set (NRF_RAMC_Type *p_reg, bool enable) |
| Function for setting secure access restrictions.
|
|
NRF_STATIC_INLINE bool | nrf_ramc_secenable_check (NRF_RAMC_Type const *p_reg) |
| Function for checking secure access restrictions.
|
|
Hardware access layer for managing the Random Access Memory Controller (RAMC) peripheral.
◆ nrf_ramc_event_t
RAMC events.
Enumerator |
---|
NRF_RAMC_EVENT_ERROR_FIXABLE | ECC detected fixable (one bit) error in read data from RAM.
|
NRF_RAMC_EVENT_ERROR_NON_FIXABLE | ECC detected non-fixable (multiple bits) error in read data from RAM.
|
◆ nrf_ramc_event_address_get()
NRF_STATIC_INLINE uint32_t nrf_ramc_event_address_get |
( |
NRF_RAMC_Type const * |
p_reg, |
|
|
nrf_ramc_event_t |
event |
|
) |
| |
Function for returning the address of the specified RAMC event register.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | The specified event. |
- Returns
- Address of specified event register.
◆ nrf_ramc_event_check()
NRF_STATIC_INLINE bool nrf_ramc_event_check |
( |
NRF_RAMC_Type const * |
p_reg, |
|
|
nrf_ramc_event_t |
event |
|
) |
| |
Function for retrieving the state of the RAMC event.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
- Return values
-
true | The event has been generated. |
false | The event has not been generated. |
◆ nrf_ramc_event_clear()
NRF_STATIC_INLINE void nrf_ramc_event_clear |
( |
NRF_RAMC_Type * |
p_reg, |
|
|
nrf_ramc_event_t |
event |
|
) |
| |
Function for clearing the specified RAMC event.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
◆ nrf_ramc_secbase_get()
NRF_STATIC_INLINE uint32_t nrf_ramc_secbase_get |
( |
NRF_RAMC_Type const * |
p_reg | ) |
|
Function for getting base address for secure access area.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Returns
- Base address.
◆ nrf_ramc_secbase_set()
NRF_STATIC_INLINE void nrf_ramc_secbase_set |
( |
NRF_RAMC_Type * |
p_reg, |
|
|
uint32_t |
addr |
|
) |
| |
Function for setting base address for secure access area.
- Note
- When the SECENABLE is enabled, any non-secure accesses to the address within the RAM which are above or equal to the base address generates an error.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | addr | Base address. Writes to the bits [11:0] are ignored and are read as zero. Similarly, the MSB size depends on the size of the RAM, writes to those MSB above the size are ignored and are read as zero. |
◆ nrf_ramc_secenable_check()
NRF_STATIC_INLINE bool nrf_ramc_secenable_check |
( |
NRF_RAMC_Type const * |
p_reg | ) |
|
Function for checking secure access restrictions.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Return values
-
true | Secure access restrictions are enabled. |
false | Secure access restrictions are disabled. |
◆ nrf_ramc_secenable_set()
NRF_STATIC_INLINE void nrf_ramc_secenable_set |
( |
NRF_RAMC_Type * |
p_reg, |
|
|
bool |
enable |
|
) |
| |
Function for setting secure access restrictions.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | enable | True if secure access restrictions are to be enabled, false otherwise |
◆ nrf_ramc_waitstates_get()
NRF_STATIC_INLINE uint8_t nrf_ramc_waitstates_get |
( |
NRF_RAMC_Type const * |
p_reg | ) |
|
Function for getting number of waitstates for a read from the RAM.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Returns
- Number of waitstates.
◆ nrf_ramc_waitstates_set()
NRF_STATIC_INLINE void nrf_ramc_waitstates_set |
( |
NRF_RAMC_Type * |
p_reg, |
|
|
uint8_t |
waitstates |
|
) |
| |
Function for setting number of waitstates for a read from the RAM.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | waitstates | Number of waitstates [0...1]. |