APB bus support
- group nrfx_interconnect_apb
Support for APB bus services.
Functions
-
nrf_domain_t nrfx_interconnect_apb_domain_get(nrfx_interconnect_apb_t const *p_apb_prop)
Function for getting the domain to which the specified APB bus belongs.
- Parameters:
p_apb_prop – [in] Pointer to APB properties structure.
- Returns:
Domain that includes the specified APB.
-
nrfx_interconnect_apb_t const *nrfx_interconnect_apb_main_get(void)
Function for getting the main APB interconnection.
Note
In some domains the connection between different APBs is realized via additional bus which is called here
main_apb_connection
- Returns:
Pointer to the properties structure that represents the main APB interconnection.
-
nrfx_interconnect_apb_t const *nrfx_interconnect_apb_get(uint32_t addr)
Function for getting APB bus properties structure by address of any peripheral that is included in.
- Parameters:
addr – [in] Address of the peripheral.
- Returns:
Pointer to the properties structure that represents the main APB interconnection or NULL if provided address is invalid.
-
size_t nrfx_interconnect_apb_global_num_of_get(void)
Function for getting number entries for global domain in APB bus properties array.
Note
The number of entries is equal to number of APB buses in global domain which contain DPPIC peripheral.
- Returns:
Number of entries in APB properties array.
-
nrfx_interconnect_apb_t const *nrf_apb_interconnect_by_idx_global_get(uint8_t idx)
Function for getting APB bus properties structure by index of APB bus properties array.
- Parameters:
idx – [in] Index of entry in APB bus properties array.
- Returns:
Pointer to the properties structure that represents APB assigned to given index.
-
struct nrfx_interconnect_apb_t
- #include <nrfx_interconnect_apb.h>
APB bus properties structure.
Public Members
-
NRF_DPPIC_Type *p_dppi
DPPIC peripheral that belongs to given APB.
-
nrfx_atomic_t *p_dppi_channels
Pointer to the mask of available DPPI channels.
-
uint32_t dppi_pub_channels_mask
Mask of configurable DPPI publish channels.
-
uint32_t dppi_sub_channels_mask
Mask of configurable DPPI subscribe channels.
-
NRF_PPIB_Type *p_ppib
PPIB peripheral that belongs to given APB.
-
size_t size
Size of APB.
-
NRF_DPPIC_Type *p_dppi
-
nrf_domain_t nrfx_interconnect_apb_domain_get(nrfx_interconnect_apb_t const *p_apb_prop)