Distributed Programmable Peripheral Interconnect (DPPI) allocator.
More...
Distributed Programmable Peripheral Interconnect (DPPI) allocator.
nrfx_err_t nrfx_dppi_channel_alloc |
( |
uint8_t * |
p_channel | ) |
|
Function for allocating a DPPI channel.
This function allocates the first unused DPPI channel.
- Parameters
-
[out] | p_channel | Pointer to the DPPI channel number that has been allocated. |
- Return values
-
NRFX_SUCCESS | If the channel was successfully allocated. |
NRFX_ERROR_NO_MEM | If there is no available channel to be used. |
nrfx_err_t nrfx_dppi_channel_disable |
( |
uint8_t |
channel | ) |
|
Function for disabling a DPPI channel.
- Parameters
-
[in] | channel | DPPI channel to be disabled. |
- Return values
-
NRFX_SUCCESS | If the channel was successfully disabled. |
NRFX_ERROR_INVALID_PARAM | If the specified channel is not allocated. |
nrfx_err_t nrfx_dppi_channel_enable |
( |
uint8_t |
channel | ) |
|
Function for enabling a DPPI channel.
- Parameters
-
[in] | channel | DPPI channel to be enabled. |
- Return values
-
NRFX_SUCCESS | If the channel was successfully enabled. |
NRFX_ERROR_INVALID_PARAM | If the specified channel is not allocated. |
nrfx_err_t nrfx_dppi_channel_free |
( |
uint8_t |
channel | ) |
|
Function for freeing a DPPI channel.
This function also disables the chosen channel.
- Parameters
-
[in] | channel | DPPI channel to be freed. |
- Return values
-
NRFX_SUCCESS | If the channel was successfully freed. |
NRFX_ERROR_INVALID_PARAM | If the specified channel is not allocated. |
Function for including a DPPI channel in a channel group.
- Parameters
-
[in] | channel | DPPI channel to be added. |
[in] | group | Channel group in which to include the channel. |
- Return values
-
NRFX_SUCCESS | If the channel was successfully included. |
NRFX_ERROR_INVALID_PARAM | If the specified group or channel is not allocated. |
Function for removing a DPPI channel from a channel group.
- Parameters
-
[in] | channel | DPPI channel to be removed. |
[in] | group | Channel group from which to remove the channel. |
- Return values
-
NRFX_SUCCESS | If the channel was successfully removed. |
NRFX_ERROR_INVALID_PARAM | If the specified group or channel is not allocated. |
Function for allocating a DPPI channel group.
This function allocates the first unused DPPI group.
- Parameters
-
[out] | p_group | Pointer to the DPPI channel group that has been allocated. |
- Return values
-
NRFX_SUCCESS | If the channel group was successfully allocated. |
NRFX_ERROR_NO_MEM | If there is no available channel group to be used. |
Function for clearing a DPPI channel group.
- Parameters
-
[in] | group | Channel group to be cleared. |
- Return values
-
NRFX_SUCCESS | If the group was successfully cleared. |
NRFX_ERROR_INVALID_PARAM | If the specified group is not allocated. |
Function for disabling a DPPI channel group.
- Parameters
-
[in] | group | Channel group to be disabled. |
- Return values
-
NRFX_SUCCESS | If the group was successfully disabled. |
NRFX_ERROR_INVALID_PARAM | If the specified group is not allocated. |
Function for enabling a DPPI channel group.
- Parameters
-
[in] | group | Channel group to be enabled. |
- Return values
-
NRFX_SUCCESS | If the group was successfully enabled. |
NRFX_ERROR_INVALID_PARAM | If the specified group is not allocated. |
Function for freeing a DPPI channel group.
This function also disables the chosen group.
- Parameters
-
[in] | group | DPPI channel group to be freed. |
- Return values
-
NRFX_SUCCESS | If the channel group was successfully freed. |
NRFX_ERROR_INVALID_PARAM | If the specified group is not allocated. |