Hardware access layer for managing Power and Clock Resource Manager (PCRM). More...
Macros | |
#define | NRF_PCRM_EVENTS_REQUEST_RISING_COUNT PCRM_EVENTS_REQUESTRISING_MaxCount |
Symbol specifying the maximum number of available REQUEST_RISING events. | |
#define | NRF_PCRM_EVENTS_REQUEST_FALLING_COUNT PCRM_EVENTS_REQUESTFALLING_MaxCount |
Symbol specifying the maximum number of available REQUEST_FALLING events. | |
#define | NRF_PCRM_EVENTS_LOAD_CHANGE_RAIL_COUNT PCRM_EVENTS_LOADCHANGERAIL_MaxCount |
Symbol specifying the maximum number of available LOAD_CHANGE_RAIL events. | |
#define | NRF_PCRM_EVENTS_TOTAL_COUNT |
Symbol specifying the number of all events combined together. | |
#define | NRF_PCRM_CONSUMERS_COUNT PCRM_CONFIG_LOAD_MaxCount |
Symbol specifying the number of available consumers. | |
#define | NRF_PCRM_RAILS_COUNT PCRM_RAIL_STATUS_MaxCount |
Symbol specifying the number of available rails. | |
Enumerations | |
enum | nrf_pcrm_event_t { NRF_PCRM_EVENT_REQUEST_RISING_0 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[0]) , NRF_PCRM_EVENT_REQUEST_RISING_1 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[1]) , NRF_PCRM_EVENT_REQUEST_RISING_2 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[2]) , NRF_PCRM_EVENT_REQUEST_RISING_3 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[3]) , NRF_PCRM_EVENT_REQUEST_RISING_4 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[4]) , NRF_PCRM_EVENT_REQUEST_RISING_5 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[5]) , NRF_PCRM_EVENT_REQUEST_RISING_6 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[6]) , NRF_PCRM_EVENT_REQUEST_RISING_7 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[7]) , NRF_PCRM_EVENT_REQUEST_RISING_8 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[8]) , NRF_PCRM_EVENT_REQUEST_RISING_9 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[9]) , NRF_PCRM_EVENT_REQUEST_RISING_10 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[10]) , NRF_PCRM_EVENT_REQUEST_RISING_11 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[11]) , NRF_PCRM_EVENT_REQUEST_RISING_12 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[12]) , NRF_PCRM_EVENT_REQUEST_RISING_13 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[13]) , NRF_PCRM_EVENT_REQUEST_RISING_14 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[14]) , NRF_PCRM_EVENT_REQUEST_RISING_15 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[15]) , NRF_PCRM_EVENT_REQUEST_RISING_16 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[16]) , NRF_PCRM_EVENT_REQUEST_RISING_17 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[17]) , NRF_PCRM_EVENT_REQUEST_RISING_18 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[18]) , NRF_PCRM_EVENT_REQUEST_RISING_19 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[19]) , NRF_PCRM_EVENT_REQUEST_RISING_20 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[20]) , NRF_PCRM_EVENT_REQUEST_RISING_21 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[21]) , NRF_PCRM_EVENT_REQUEST_RISING_22 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[22]) , NRF_PCRM_EVENT_REQUEST_RISING_23 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[23]) , NRF_PCRM_EVENT_REQUEST_RISING_24 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[24]) , NRF_PCRM_EVENT_REQUEST_RISING_25 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[25]) , NRF_PCRM_EVENT_REQUEST_RISING_26 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[26]) , NRF_PCRM_EVENT_REQUEST_RISING_27 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[27]) , NRF_PCRM_EVENT_REQUEST_RISING_28 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[28]) , NRF_PCRM_EVENT_REQUEST_RISING_29 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[29]) , NRF_PCRM_EVENT_REQUEST_RISING_30 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[30]) , NRF_PCRM_EVENT_REQUEST_RISING_31 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTRISING[31]) , NRF_PCRM_EVENT_REQUEST_FALLING_0 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[0]) , NRF_PCRM_EVENT_REQUEST_FALLING_1 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[1]) , NRF_PCRM_EVENT_REQUEST_FALLING_2 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[2]) , NRF_PCRM_EVENT_REQUEST_FALLING_3 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[3]) , NRF_PCRM_EVENT_REQUEST_FALLING_4 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[4]) , NRF_PCRM_EVENT_REQUEST_FALLING_5 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[5]) , NRF_PCRM_EVENT_REQUEST_FALLING_6 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[6]) , NRF_PCRM_EVENT_REQUEST_FALLING_7 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[7]) , NRF_PCRM_EVENT_REQUEST_FALLING_8 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[8]) , NRF_PCRM_EVENT_REQUEST_FALLING_9 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[9]) , NRF_PCRM_EVENT_REQUEST_FALLING_10 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[10]) , NRF_PCRM_EVENT_REQUEST_FALLING_11 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[11]) , NRF_PCRM_EVENT_REQUEST_FALLING_12 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[12]) , NRF_PCRM_EVENT_REQUEST_FALLING_13 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[13]) , NRF_PCRM_EVENT_REQUEST_FALLING_14 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[14]) , NRF_PCRM_EVENT_REQUEST_FALLING_15 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[15]) , NRF_PCRM_EVENT_REQUEST_FALLING_16 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[16]) , NRF_PCRM_EVENT_REQUEST_FALLING_17 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[17]) , NRF_PCRM_EVENT_REQUEST_FALLING_18 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[18]) , NRF_PCRM_EVENT_REQUEST_FALLING_19 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[19]) , NRF_PCRM_EVENT_REQUEST_FALLING_20 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[20]) , NRF_PCRM_EVENT_REQUEST_FALLING_21 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[21]) , NRF_PCRM_EVENT_REQUEST_FALLING_22 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[22]) , NRF_PCRM_EVENT_REQUEST_FALLING_23 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[23]) , NRF_PCRM_EVENT_REQUEST_FALLING_24 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[24]) , NRF_PCRM_EVENT_REQUEST_FALLING_25 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[25]) , NRF_PCRM_EVENT_REQUEST_FALLING_26 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[26]) , NRF_PCRM_EVENT_REQUEST_FALLING_27 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[27]) , NRF_PCRM_EVENT_REQUEST_FALLING_28 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[28]) , NRF_PCRM_EVENT_REQUEST_FALLING_29 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[29]) , NRF_PCRM_EVENT_REQUEST_FALLING_30 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[30]) , NRF_PCRM_EVENT_REQUEST_FALLING_31 = offsetof(NRF_PCRM_Type, EVENTS_REQUESTFALLING[31]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_0 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[0]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_1 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[1]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_2 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[2]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_3 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[3]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_4 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[4]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_5 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[5]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_6 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[6]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_7 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[7]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_8 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[8]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_9 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[9]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_10 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[10]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_11 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[11]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_12 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[12]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_13 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[13]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_14 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[14]) , NRF_PCRM_EVENT_LOAD_CHANGE_RAIL_15 = offsetof(NRF_PCRM_Type, EVENTS_LOADCHANGERAIL[15]) } |
PCRM events. More... | |
enum | nrf_pcrm_int_mask_t { NRF_PCRM_INT_REQUEST_0_MASK = PCRM_INTEN0_REQUESTRISING0_Msk , NRF_PCRM_INT_REQUEST_1_MASK = PCRM_INTEN0_REQUESTRISING1_Msk , NRF_PCRM_INT_REQUEST_2_MASK = PCRM_INTEN0_REQUESTRISING2_Msk , NRF_PCRM_INT_REQUEST_3_MASK = PCRM_INTEN0_REQUESTRISING3_Msk , NRF_PCRM_INT_REQUEST_4_MASK = PCRM_INTEN0_REQUESTRISING4_Msk , NRF_PCRM_INT_REQUEST_5_MASK = PCRM_INTEN0_REQUESTRISING5_Msk , NRF_PCRM_INT_REQUEST_6_MASK = PCRM_INTEN0_REQUESTRISING6_Msk , NRF_PCRM_INT_REQUEST_7_MASK = PCRM_INTEN0_REQUESTRISING7_Msk , NRF_PCRM_INT_REQUEST_8_MASK = PCRM_INTEN0_REQUESTRISING8_Msk , NRF_PCRM_INT_REQUEST_9_MASK = PCRM_INTEN0_REQUESTRISING9_Msk , NRF_PCRM_INT_REQUEST_10_MASK = PCRM_INTEN0_REQUESTRISING10_Msk , NRF_PCRM_INT_REQUEST_11_MASK = PCRM_INTEN0_REQUESTRISING11_Msk , NRF_PCRM_INT_REQUEST_12_MASK = PCRM_INTEN0_REQUESTRISING12_Msk , NRF_PCRM_INT_REQUEST_13_MASK = PCRM_INTEN0_REQUESTRISING13_Msk , NRF_PCRM_INT_REQUEST_14_MASK = PCRM_INTEN0_REQUESTRISING14_Msk , NRF_PCRM_INT_REQUEST_15_MASK = PCRM_INTEN0_REQUESTRISING15_Msk , NRF_PCRM_INT_REQUEST_16_MASK = PCRM_INTEN0_REQUESTRISING16_Msk , NRF_PCRM_INT_REQUEST_17_MASK = PCRM_INTEN0_REQUESTRISING17_Msk , NRF_PCRM_INT_REQUEST_18_MASK = PCRM_INTEN0_REQUESTRISING18_Msk , NRF_PCRM_INT_REQUEST_19_MASK = PCRM_INTEN0_REQUESTRISING19_Msk , NRF_PCRM_INT_REQUEST_20_MASK = PCRM_INTEN0_REQUESTRISING20_Msk , NRF_PCRM_INT_REQUEST_21_MASK = PCRM_INTEN0_REQUESTRISING21_Msk , NRF_PCRM_INT_REQUEST_22_MASK = PCRM_INTEN0_REQUESTRISING22_Msk , NRF_PCRM_INT_REQUEST_23_MASK = PCRM_INTEN0_REQUESTRISING23_Msk , NRF_PCRM_INT_REQUEST_24_MASK = PCRM_INTEN0_REQUESTRISING24_Msk , NRF_PCRM_INT_REQUEST_25_MASK = PCRM_INTEN0_REQUESTRISING25_Msk , NRF_PCRM_INT_REQUEST_26_MASK = PCRM_INTEN0_REQUESTRISING26_Msk , NRF_PCRM_INT_REQUEST_27_MASK = PCRM_INTEN0_REQUESTRISING27_Msk , NRF_PCRM_INT_REQUEST_28_MASK = PCRM_INTEN0_REQUESTRISING28_Msk , NRF_PCRM_INT_REQUEST_29_MASK = PCRM_INTEN0_REQUESTRISING29_Msk , NRF_PCRM_INT_REQUEST_30_MASK = PCRM_INTEN0_REQUESTRISING30_Msk , NRF_PCRM_INT_REQUEST_31_MASK = PCRM_INTEN0_REQUESTRISING31_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_0_MASK = PCRM_INTEN4_LOADCHANGERAIL0_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_1_MASK = PCRM_INTEN4_LOADCHANGERAIL1_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_2_MASK = PCRM_INTEN4_LOADCHANGERAIL2_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_3_MASK = PCRM_INTEN4_LOADCHANGERAIL3_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_4_MASK = PCRM_INTEN4_LOADCHANGERAIL4_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_5_MASK = PCRM_INTEN4_LOADCHANGERAIL5_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_6_MASK = PCRM_INTEN4_LOADCHANGERAIL6_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_7_MASK = PCRM_INTEN4_LOADCHANGERAIL7_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_8_MASK = PCRM_INTEN4_LOADCHANGERAIL8_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_9_MASK = PCRM_INTEN4_LOADCHANGERAIL9_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_10_MASK = PCRM_INTEN4_LOADCHANGERAIL10_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_11_MASK = PCRM_INTEN4_LOADCHANGERAIL11_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_12_MASK = PCRM_INTEN4_LOADCHANGERAIL12_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_13_MASK = PCRM_INTEN4_LOADCHANGERAIL13_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_14_MASK = PCRM_INTEN4_LOADCHANGERAIL14_Msk , NRF_PCRM_INT_LOAD_CHANGE_RAIL_15_MASK = PCRM_INTEN4_LOADCHANGERAIL15_Msk } |
PCRM interrupt masks. More... | |
enum | nrf_pcrm_int_group_t { NRF_PCRM_INT_GROUP_REQUEST_RISING = offsetof(NRF_PCRM_Type, INTEN0) , NRF_PCRM_INT_GROUP_REQUEST_FALLING = offsetof(NRF_PCRM_Type, INTEN2) , NRF_PCRM_INT_GROUP_LOAD_CHANGE_RAIL = offsetof(NRF_PCRM_Type, INTEN4) } |
PCRM interrupt groups. More... | |
Functions | |
NRF_STATIC_INLINE uint32_t | nrf_pcrm_event_address_get (NRF_PCRM_Type const *p_reg, nrf_pcrm_event_t event) |
Function for getting the address of the specified event. | |
NRF_STATIC_INLINE nrf_pcrm_event_t | nrf_pcrm_request_rising_event_get (uint8_t consumer_idx) |
Function for getting the rising request event associated with the specified customer. | |
NRF_STATIC_INLINE nrf_pcrm_event_t | nrf_pcrm_request_falling_event_get (uint8_t consumer_idx) |
Function for getting the falling request event associated with the specified customer. | |
NRF_STATIC_INLINE nrf_pcrm_event_t | nrf_pcrm_load_change_rail_event_get (uint8_t rail_idx) |
Function for getting the load change event associated with the specified rail. | |
NRF_STATIC_INLINE void | nrf_pcrm_event_clear (NRF_PCRM_Type *p_reg, nrf_pcrm_event_t event) |
Function for clearing the specified event. | |
NRF_STATIC_INLINE bool | nrf_pcrm_event_check (NRF_PCRM_Type const *p_reg, nrf_pcrm_event_t event) |
Function for checking the state of the specified event. | |
NRF_STATIC_INLINE void | nrf_pcrm_int_enable (NRF_PCRM_Type *p_reg, nrf_pcrm_int_group_t group, uint32_t mask) |
Function for enabling the specified interrupt. | |
NRF_STATIC_INLINE void | nrf_pcrm_int_disable (NRF_PCRM_Type *p_reg, nrf_pcrm_int_group_t group, uint32_t mask) |
Function for disabling the specified interrupt. | |
NRF_STATIC_INLINE uint32_t | nrf_pcrm_int_enable_check (NRF_PCRM_Type const *p_reg, nrf_pcrm_int_group_t group, uint32_t mask) |
Function for checking if the specified interrupts are enabled. | |
NRF_STATIC_INLINE uint32_t | nrf_pcrm_int_pending_get (NRF_PCRM_Type const *p_reg, nrf_pcrm_int_group_t group) |
Function for getting the state of pending interrupts. | |
NRF_STATIC_INLINE bool | nrf_pcrm_request_status_check (NRF_PCRM_Type const *p_reg, uint8_t consumer_idx) |
Function for checking the request status associated with the specified customer. | |
NRF_STATIC_INLINE bool | nrf_pcrm_request_ack_status_check (NRF_PCRM_Type const *p_reg, uint8_t consumer_idx) |
Function for checking the acknowledgment status of the request associated with the specified customer. | |
NRF_STATIC_INLINE uint32_t | nrf_pcrm_rail_current_get (NRF_PCRM_Type const *p_reg, uint8_t rail_idx) |
Function for getting the estimated current value associated with the specified rail. | |
NRF_STATIC_INLINE uint32_t | nrf_pcrm_config_load_get (NRF_PCRM_Type const *p_reg, uint8_t consumer_idx) |
Function for getting the configured current threshold value for the load associated with the specified customer. | |
NRF_STATIC_INLINE void | nrf_pcrm_config_load_set (NRF_PCRM_Type *p_reg, uint8_t consumer_idx, uint32_t value) |
Function for setting configuration of the current threshold value for the load associated with the specified customer. | |
NRF_STATIC_INLINE void | nrf_pcrm_override_request_set (NRF_PCRM_Type *p_reg, uint8_t consumer_idx, bool enable, bool request) |
Function for overriding the request value associated with the specified customer. | |
NRF_STATIC_INLINE void | nrf_pcrm_override_ack_set (NRF_PCRM_Type *p_reg, uint8_t consumer_idx, bool enable, bool ack_status) |
Function for overriding acknowledgment status value of the request associated with the specified customer. | |
NRF_STATIC_INLINE void | nrf_pcrm_override_cross_current_set (NRF_PCRM_Type *p_reg, uint8_t rail_idx, bool enable, bool cross_curr) |
Function for overriding the cross current value associated with the specified rail. | |
Hardware access layer for managing Power and Clock Resource Manager (PCRM).
#define NRF_PCRM_EVENTS_TOTAL_COUNT |
Symbol specifying the number of all events combined together.
enum nrf_pcrm_event_t |
PCRM events.
enum nrf_pcrm_int_group_t |
enum nrf_pcrm_int_mask_t |
PCRM interrupt masks.
NRF_STATIC_INLINE uint32_t nrf_pcrm_config_load_get | ( | NRF_PCRM_Type const * | p_reg, |
uint8_t | consumer_idx | ||
) |
Function for getting the configured current threshold value for the load associated with the specified customer.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | consumer_idx | Index of a consumer whose load configuration is retrieved. |
NRF_STATIC_INLINE void nrf_pcrm_config_load_set | ( | NRF_PCRM_Type * | p_reg, |
uint8_t | consumer_idx, | ||
uint32_t | value | ||
) |
Function for setting configuration of the current threshold value for the load associated with the specified customer.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | consumer_idx | Index of a consumer whose load configuration is set. |
[in] | value | Threshold current value for the load. The value is 0A + 500uA steps. |
NRF_STATIC_INLINE uint32_t nrf_pcrm_event_address_get | ( | NRF_PCRM_Type const * | p_reg, |
nrf_pcrm_event_t | event | ||
) |
Function for getting the address of the specified event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | PCRM event. |
NRF_STATIC_INLINE bool nrf_pcrm_event_check | ( | NRF_PCRM_Type const * | p_reg, |
nrf_pcrm_event_t | event | ||
) |
Function for checking the state of the specified 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. |
NRF_STATIC_INLINE void nrf_pcrm_event_clear | ( | NRF_PCRM_Type * | p_reg, |
nrf_pcrm_event_t | event | ||
) |
Function for clearing the specified event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
NRF_STATIC_INLINE void nrf_pcrm_int_disable | ( | NRF_PCRM_Type * | p_reg, |
nrf_pcrm_int_group_t | group, | ||
uint32_t | mask | ||
) |
Function for disabling the specified interrupt.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group | Interrupt group to be disabled. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_pcrm_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_pcrm_int_enable | ( | NRF_PCRM_Type * | p_reg, |
nrf_pcrm_int_group_t | group, | ||
uint32_t | mask | ||
) |
Function for enabling the specified interrupt.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group | Interrupt group to be enabled. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_pcrm_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_pcrm_int_enable_check | ( | NRF_PCRM_Type const * | p_reg, |
nrf_pcrm_int_group_t | group, | ||
uint32_t | mask | ||
) |
Function for checking if the specified interrupts are enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group | Interrupt group to be checked. |
[in] | mask | Mask of interrupts to be checked. Use nrf_pcrm_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_pcrm_int_pending_get | ( | NRF_PCRM_Type const * | p_reg, |
nrf_pcrm_int_group_t | group | ||
) |
Function for getting the state of pending interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group | Interrupt group to be checked. |
NRF_STATIC_INLINE nrf_pcrm_event_t nrf_pcrm_load_change_rail_event_get | ( | uint8_t | rail_idx | ) |
Function for getting the load change event associated with the specified rail.
[in] | rail_idx | Index of a rail. |
NRF_STATIC_INLINE void nrf_pcrm_override_ack_set | ( | NRF_PCRM_Type * | p_reg, |
uint8_t | consumer_idx, | ||
bool | enable, | ||
bool | ack_status | ||
) |
Function for overriding acknowledgment status value of the request associated with the specified customer.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | consumer_idx | Index of a consumer whose request acknowledgment status value is overridden. |
[in] | enable | True if the override is to be enabled, false otherwise. |
[in] | ack_status | True if the value of overridden acknowledgment is to be set, false otherwise. |
NRF_STATIC_INLINE void nrf_pcrm_override_cross_current_set | ( | NRF_PCRM_Type * | p_reg, |
uint8_t | rail_idx, | ||
bool | enable, | ||
bool | cross_curr | ||
) |
Function for overriding the cross current value associated with the specified rail.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | rail_idx | Index of a rail which cross current value is overridden. |
[in] | enable | True if the override is to be enabled, false otherwise. |
[in] | cross_curr | True if the value of overridden cross current is to be set, false otherwise. |
NRF_STATIC_INLINE void nrf_pcrm_override_request_set | ( | NRF_PCRM_Type * | p_reg, |
uint8_t | consumer_idx, | ||
bool | enable, | ||
bool | request | ||
) |
Function for overriding the request value associated with the specified customer.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | consumer_idx | Index of a consumer whose request value is overridden. |
[in] | enable | True if the override is to be enabled, false otherwise. |
[in] | request | True if the value of overridden request is to be set, false otherwise. |
NRF_STATIC_INLINE uint32_t nrf_pcrm_rail_current_get | ( | NRF_PCRM_Type const * | p_reg, |
uint8_t | rail_idx | ||
) |
Function for getting the estimated current value associated with the specified rail.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | rail_idx | Index of a rail which estimated current value is retrieved. |
NRF_STATIC_INLINE bool nrf_pcrm_request_ack_status_check | ( | NRF_PCRM_Type const * | p_reg, |
uint8_t | consumer_idx | ||
) |
Function for checking the acknowledgment status of the request associated with the specified customer.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | consumer_idx | Index of a consumer whose acknowledgment status of the request is checked. |
true | Acknowledgment received. |
false | Acknowledgment not received. |
NRF_STATIC_INLINE nrf_pcrm_event_t nrf_pcrm_request_falling_event_get | ( | uint8_t | consumer_idx | ) |
Function for getting the falling request event associated with the specified customer.
[in] | consumer_idx | Index of a consumer. |
NRF_STATIC_INLINE nrf_pcrm_event_t nrf_pcrm_request_rising_event_get | ( | uint8_t | consumer_idx | ) |
Function for getting the rising request event associated with the specified customer.
[in] | consumer_idx | Index of a consumer. |
NRF_STATIC_INLINE bool nrf_pcrm_request_status_check | ( | NRF_PCRM_Type const * | p_reg, |
uint8_t | consumer_idx | ||
) |
Function for checking the request status associated with the specified customer.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | consumer_idx | Index of a consumer whose request status is checked. |
true | Request rising. |
false | Request falling. |