nrfx 3.3
Enumerations | Functions
RAMC RAM Controller HAL

Hardware access layer for managing the Random Access Memory Controller (RAMC) peripheral. More...

Enumerations

enum  nrf_ramc_event_t {
  NRF_RAMC_EVENT_ERROR_FIXABLE = offsetof(NRF_RAMC_Type, EVENTS_ERRORFIX) ,
  NRF_RAMC_EVENT_ERROR_NON_FIXABLE = offsetof(NRF_RAMC_Type, EVENTS_ERRORNONFIX)
}
 RAMC events. More...
 

Functions

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.
 

Detailed Description

Hardware access layer for managing the Random Access Memory Controller (RAMC) peripheral.

Enumeration Type Documentation

◆ 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.

Function Documentation

◆ 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_regPointer to the structure of registers of the peripheral.
[in]eventThe 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_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be checked.
Return values
trueThe event has been generated.
falseThe 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_regPointer to the structure of registers of the peripheral.
[in]eventEvent 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_regPointer 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_regPointer to the structure of registers of the peripheral.
[in]addrBase 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_regPointer to the structure of registers of the peripheral.
Return values
trueSecure access restrictions are enabled.
falseSecure 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_regPointer to the structure of registers of the peripheral.
[in]enableTrue 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_regPointer 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_regPointer to the structure of registers of the peripheral.
[in]waitstatesNumber of waitstates [0...1].

Documentation feedback | Developer Zone | Subscribe | Updated