Skip to content

Commit a3aacc7

Browse files
nika-nordiccarlescufi
authored andcommitted
nrfx: add function for getting raw region config in RRAMC HAL
Function can be used to obtain raw configuration value for the specified RRAMC region. Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
1 parent 8eae3cc commit a3aacc7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

nrfx/hal/nrf_rramc.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,17 @@ NRF_STATIC_INLINE void nrf_rramc_region_config_get(NRF_RRAMC_Type const * p
417417
uint8_t region,
418418
nrf_rramc_region_config_t * p_config);
419419

420+
/**
421+
* @brief Function for getting the raw configuration of the specified RRAMC region.
422+
*
423+
* @param[in] p_reg Pointer to the structure of registers of the peripheral.
424+
* @param[in] region Region number.
425+
*
426+
* @return Raw configuration.
427+
*/
428+
NRF_STATIC_INLINE uint32_t nrf_rramc_region_config_raw_get(NRF_RRAMC_Type const * p_reg,
429+
uint8_t region);
430+
420431
#ifndef NRF_DECLARE_ONLY
421432

422433
NRF_STATIC_INLINE void nrf_rramc_task_trigger(NRF_RRAMC_Type * p_reg, nrf_rramc_task_t task)
@@ -625,6 +636,12 @@ NRF_STATIC_INLINE void nrf_rramc_region_config_get(NRF_RRAMC_Type const * p
625636
p_config->address = p_reg->REGION[region].ADDRESS;
626637
}
627638

639+
NRF_STATIC_INLINE uint32_t nrf_rramc_region_config_raw_get(NRF_RRAMC_Type const * p_reg,
640+
uint8_t region)
641+
{
642+
return p_reg->REGION[region].CONFIG;
643+
}
644+
628645
#endif // NRF_DECLARE_ONLY
629646

630647
/** @} */

0 commit comments

Comments
 (0)