Lines Matching full:group

69 __STATIC_INLINE bool group_is_allocated(nrf_dppi_channel_group_t group)  in group_is_allocated()  argument
71 return ((m_allocated_groups & DPPI_BIT_SET(group)) != 0); in group_is_allocated()
77 nrf_dppi_channel_group_t group = NRF_DPPI_CHANNEL_GROUP0; in nrfx_dppi_free() local
85 if (mask & DPPI_BIT_SET(group)) in nrfx_dppi_free()
87 nrf_dppi_group_clear(NRF_DPPIC, group); in nrfx_dppi_free()
88 mask &= ~DPPI_BIT_SET(group); in nrfx_dppi_free()
90 group++; in nrfx_dppi_free()
187 nrf_dppi_channel_group_t group = NRF_DPPI_CHANNEL_GROUP0; in nrfx_dppi_group_alloc() local
196 // Find first free group in nrfx_dppi_group_alloc()
197 while (!(remaining_groups & DPPI_BIT_SET(group))) in nrfx_dppi_group_alloc()
199 group++; in nrfx_dppi_group_alloc()
202 m_allocated_groups |= DPPI_BIT_SET(group); in nrfx_dppi_group_alloc()
203 *p_group = group; in nrfx_dppi_group_alloc()
206 NRFX_LOG_INFO("Allocated channel: %d.", group); in nrfx_dppi_group_alloc()
210 nrfx_err_t nrfx_dppi_group_free(nrf_dppi_channel_group_t group) in nrfx_dppi_group_free() argument
214 if (!group_is_allocated(group)) in nrfx_dppi_group_free()
220 nrf_dppi_group_disable(NRF_DPPIC, group); in nrfx_dppi_group_free()
221 // Set bit value to zero at position corresponding to the group number. in nrfx_dppi_group_free()
222 m_allocated_groups &= ~DPPI_BIT_SET(group); in nrfx_dppi_group_free()
229 nrf_dppi_channel_group_t group) in nrfx_dppi_channel_include_in_group() argument
233 if (!group_is_allocated(group) || !channel_is_allocated(channel)) in nrfx_dppi_channel_include_in_group()
239 nrf_dppi_channels_include_in_group(NRF_DPPIC, DPPI_BIT_SET(channel), group); in nrfx_dppi_channel_include_in_group()
246 nrf_dppi_channel_group_t group) in nrfx_dppi_channel_remove_from_group() argument
250 if (!group_is_allocated(group) || !channel_is_allocated(channel)) in nrfx_dppi_channel_remove_from_group()
256 nrf_dppi_channels_remove_from_group(NRF_DPPIC, DPPI_BIT_SET(channel), group); in nrfx_dppi_channel_remove_from_group()
262 nrfx_err_t nrfx_dppi_group_clear(nrf_dppi_channel_group_t group) in nrfx_dppi_group_clear() argument
266 if (!group_is_allocated(group)) in nrfx_dppi_group_clear()
272 nrf_dppi_channels_remove_from_group(NRF_DPPIC, DPPI_AVAILABLE_CHANNELS_MASK, group); in nrfx_dppi_group_clear()
278 nrfx_err_t nrfx_dppi_group_enable(nrf_dppi_channel_group_t group) in nrfx_dppi_group_enable() argument
282 if (!group_is_allocated(group)) in nrfx_dppi_group_enable()
288 nrf_dppi_group_enable(NRF_DPPIC, group); in nrfx_dppi_group_enable()
294 nrfx_err_t nrfx_dppi_group_disable(nrf_dppi_channel_group_t group) in nrfx_dppi_group_disable() argument
298 if (!group_is_allocated(group)) in nrfx_dppi_group_disable()
304 nrf_dppi_group_disable(NRF_DPPIC, group); in nrfx_dppi_group_disable()