Lines Matching refs:group
58 static uint32_t group_to_mask(nrf_ppi_channel_group_t group) in group_to_mask() argument
60 return (1uL << (uint32_t) group); in group_to_mask()
115 static bool is_app_group(nrf_ppi_channel_group_t group) in is_app_group() argument
117 return ((NRFX_PPI_ALL_APP_GROUPS_MASK & group_to_mask(group)) != 0); in is_app_group()
130 nrf_ppi_channel_group_t group = (nrf_ppi_channel_group_t)group_idx; in nrfx_ppi_free_all() local
131 if (mask & group_to_mask(group)) in nrfx_ppi_free_all()
133 nrf_ppi_group_clear(NRF_PPI, group); in nrfx_ppi_free_all()
135 mask &= ~group_to_mask(group); in nrfx_ppi_free_all()
268 nrfx_err_t nrfx_ppi_group_free(nrf_ppi_channel_group_t group) in nrfx_ppi_group_free() argument
270 nrf_ppi_group_disable(NRF_PPI, group); in nrfx_ppi_group_free()
271 return nrfx_flag32_free(&m_groups_allocated, group); in nrfx_ppi_group_free()
275 nrfx_err_t nrfx_ppi_group_enable(nrf_ppi_channel_group_t group) in nrfx_ppi_group_enable() argument
279 if (!is_app_group(group)) in nrfx_ppi_group_enable()
283 else if (!nrfx_flag32_is_allocated(m_groups_allocated, group)) in nrfx_ppi_group_enable()
289 nrf_ppi_group_enable(NRF_PPI, group); in nrfx_ppi_group_enable()
296 nrfx_err_t nrfx_ppi_group_disable(nrf_ppi_channel_group_t group) in nrfx_ppi_group_disable() argument
300 if (!is_app_group(group)) in nrfx_ppi_group_disable()
306 nrf_ppi_group_disable(NRF_PPI, group); in nrfx_ppi_group_disable()
313 nrf_ppi_channel_group_t group) in nrfx_ppi_channels_remove_from_group() argument
317 if (!is_app_group(group)) in nrfx_ppi_channels_remove_from_group()
321 else if (!nrfx_flag32_is_allocated(m_groups_allocated, group)) in nrfx_ppi_channels_remove_from_group()
332 nrf_ppi_channels_remove_from_group(NRF_PPI, channel_mask, group); in nrfx_ppi_channels_remove_from_group()
340 nrf_ppi_channel_group_t group) in nrfx_ppi_channels_include_in_group() argument
344 if (!is_app_group(group)) in nrfx_ppi_channels_include_in_group()
348 else if (!nrfx_flag32_is_allocated(m_groups_allocated, group)) in nrfx_ppi_channels_include_in_group()
359 nrf_ppi_channels_include_in_group(NRF_PPI, channel_mask, group); in nrfx_ppi_channels_include_in_group()