Lines Matching full:channel
57 NRF_PPI_CHANNEL0 = PPI_CHEN_CH0_Pos, /**< Channel 0. */
58 NRF_PPI_CHANNEL1 = PPI_CHEN_CH1_Pos, /**< Channel 1. */
59 NRF_PPI_CHANNEL2 = PPI_CHEN_CH2_Pos, /**< Channel 2. */
60 NRF_PPI_CHANNEL3 = PPI_CHEN_CH3_Pos, /**< Channel 3. */
61 NRF_PPI_CHANNEL4 = PPI_CHEN_CH4_Pos, /**< Channel 4. */
62 NRF_PPI_CHANNEL5 = PPI_CHEN_CH5_Pos, /**< Channel 5. */
63 NRF_PPI_CHANNEL6 = PPI_CHEN_CH6_Pos, /**< Channel 6. */
64 NRF_PPI_CHANNEL7 = PPI_CHEN_CH7_Pos, /**< Channel 7. */
65 NRF_PPI_CHANNEL8 = PPI_CHEN_CH8_Pos, /**< Channel 8. */
66 NRF_PPI_CHANNEL9 = PPI_CHEN_CH9_Pos, /**< Channel 9. */
67 NRF_PPI_CHANNEL10 = PPI_CHEN_CH10_Pos, /**< Channel 10. */
68 NRF_PPI_CHANNEL11 = PPI_CHEN_CH11_Pos, /**< Channel 11. */
69 NRF_PPI_CHANNEL12 = PPI_CHEN_CH12_Pos, /**< Channel 12. */
70 NRF_PPI_CHANNEL13 = PPI_CHEN_CH13_Pos, /**< Channel 13. */
71 NRF_PPI_CHANNEL14 = PPI_CHEN_CH14_Pos, /**< Channel 14. */
72 NRF_PPI_CHANNEL15 = PPI_CHEN_CH15_Pos, /**< Channel 15. */
74 NRF_PPI_CHANNEL16 = PPI_CHEN_CH16_Pos, /**< Channel 16. */
75 NRF_PPI_CHANNEL17 = PPI_CHEN_CH17_Pos, /**< Channel 17. */
76 NRF_PPI_CHANNEL18 = PPI_CHEN_CH18_Pos, /**< Channel 18. */
77 NRF_PPI_CHANNEL19 = PPI_CHEN_CH19_Pos, /**< Channel 19. */
79 NRF_PPI_CHANNEL20 = PPI_CHEN_CH20_Pos, /**< Channel 20. */
80 NRF_PPI_CHANNEL21 = PPI_CHEN_CH21_Pos, /**< Channel 21. */
81 NRF_PPI_CHANNEL22 = PPI_CHEN_CH22_Pos, /**< Channel 22. */
82 NRF_PPI_CHANNEL23 = PPI_CHEN_CH23_Pos, /**< Channel 23. */
83 NRF_PPI_CHANNEL24 = PPI_CHEN_CH24_Pos, /**< Channel 24. */
84 NRF_PPI_CHANNEL25 = PPI_CHEN_CH25_Pos, /**< Channel 25. */
85 NRF_PPI_CHANNEL26 = PPI_CHEN_CH26_Pos, /**< Channel 26. */
86 NRF_PPI_CHANNEL27 = PPI_CHEN_CH27_Pos, /**< Channel 27. */
87 NRF_PPI_CHANNEL28 = PPI_CHEN_CH28_Pos, /**< Channel 28. */
88 NRF_PPI_CHANNEL29 = PPI_CHEN_CH29_Pos, /**< Channel 29. */
89 NRF_PPI_CHANNEL30 = PPI_CHEN_CH30_Pos, /**< Channel 30. */
90 NRF_PPI_CHANNEL31 = PPI_CHEN_CH31_Pos /**< Channel 31. */
95 * @brief PPI channel groups.
99 NRF_PPI_CHANNEL_GROUP0 = 0, /**< Channel group 0. */
100 NRF_PPI_CHANNEL_GROUP1 = 1, /**< Channel group 1. */
101 NRF_PPI_CHANNEL_GROUP2 = 2, /**< Channel group 2. */
102 NRF_PPI_CHANNEL_GROUP3 = 3, /**< Channel group 3. */
104 NRF_PPI_CHANNEL_GROUP4 = 4, /**< Channel group 4. */
105 NRF_PPI_CHANNEL_GROUP5 = 5 /**< Channel group 5. */
115 NRF_PPI_CHANNEL_EXCLUDE = PPI_CHG_CH0_Excluded, /**< Channel excluded from a group. */
116 NRF_PPI_CHANNEL_INCLUDE = PPI_CHG_CH0_Included /**< Channel included in a group. */
121 * @brief Definition if a PPI channel is enabled.
125 NRF_PPI_CHANNEL_DISABLED = PPI_CHEN_CH0_Disabled, /**< Channel disabled. */
126 NRF_PPI_CHANNEL_ENABLED = PPI_CHEN_CH0_Enabled /**< Channel enabled. */
136 …TASK_CHG0_EN = offsetof(NRF_PPI_Type, TASKS_CHG[0].EN), /**< Task for enabling channel group 0 */
137 …ASK_CHG0_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[0].DIS), /**< Task for disabling channel group 0 */
138 …TASK_CHG1_EN = offsetof(NRF_PPI_Type, TASKS_CHG[1].EN), /**< Task for enabling channel group 1 */
139 …ASK_CHG1_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[1].DIS), /**< Task for disabling channel group 1 */
140 …TASK_CHG2_EN = offsetof(NRF_PPI_Type, TASKS_CHG[2].EN), /**< Task for enabling channel group 2 */
141 …ASK_CHG2_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[2].DIS), /**< Task for disabling channel group 2 */
142 …TASK_CHG3_EN = offsetof(NRF_PPI_Type, TASKS_CHG[3].EN), /**< Task for enabling channel group 3 */
143 …ASK_CHG3_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[3].DIS), /**< Task for disabling channel group 3 */
145 …TASK_CHG4_EN = offsetof(NRF_PPI_Type, TASKS_CHG[4].EN), /**< Task for enabling channel group 4 */
146 …ASK_CHG4_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[4].DIS), /**< Task for disabling channel group 4 */
147 …TASK_CHG5_EN = offsetof(NRF_PPI_Type, TASKS_CHG[5].EN), /**< Task for enabling channel group 5 */
148 …ASK_CHG5_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[5].DIS) /**< Task for disabling channel group 5 */
154 * @brief Function for enabling a given PPI channel.
156 * @details This function enables only one channel.
158 * @param[in] channel Channel to enable.
161 __STATIC_INLINE void nrf_ppi_channel_enable(nrf_ppi_channel_t channel);
164 * @brief Function for disabling a given PPI channel.
166 * @details This function disables only one channel.
168 * @param[in] channel Channel to disable.
170 __STATIC_INLINE void nrf_ppi_channel_disable(nrf_ppi_channel_t channel);
173 * @brief Function for checking if a given PPI channel is enabled.
175 * @details This function checks only one channel.
177 * @param[in] channel Channel to check.
179 * @retval NRF_PPI_CHANNEL_ENABLED If the channel is enabled.
180 * @retval NRF_PPI_CHANNEL_DISABLED If the channel is not enabled.
183 __STATIC_INLINE nrf_ppi_channel_enable_t nrf_ppi_channel_enable_get(nrf_ppi_channel_t channel);
193 * @param[in] mask Channel mask.
200 * @param[in] mask Channel mask.
205 * @brief Function for setting up event and task endpoints for a given PPI channel.
211 * @param[in] channel Channel to which the given endpoints are assigned.
213 __STATIC_INLINE void nrf_ppi_channel_endpoint_setup(nrf_ppi_channel_t channel,
218 * @brief Function for setting up the event endpoint for a given PPI channel.
221 * @param[in] channel Channel to which the given endpoint is assigned.
223 __STATIC_INLINE void nrf_ppi_event_endpoint_setup(nrf_ppi_channel_t channel,
227 * @brief Function for setting up the task endpoint for a given PPI channel.
230 * @param[in] channel Channel to which the given endpoint is assigned.
232 __STATIC_INLINE void nrf_ppi_task_endpoint_setup(nrf_ppi_channel_t channel,
242 * @param[in] channel Channel to which the given fork endpoint is assigned.
244 __STATIC_INLINE void nrf_ppi_fork_endpoint_setup(nrf_ppi_channel_t channel,
248 * @brief Function for setting up event and task endpoints for a given PPI channel and fork.
256 * @param[in] channel Channel to which the given endpoints are assigned.
258 __STATIC_INLINE void nrf_ppi_channel_and_fork_endpoint_setup(nrf_ppi_channel_t channel,
265 * @brief Function for including a PPI channel in a channel group.
267 * @details This function adds only one channel to the group.
269 * @param[in] channel Channel to be included in the group.
271 * @param[in] channel_group Channel group.
274 __STATIC_INLINE void nrf_ppi_channel_include_in_group(nrf_ppi_channel_t channel,
278 * @brief Function for including multiple PPI channels in a channel group.
284 * @param[in] channel_group Channel group.
291 * @brief Function for removing a PPI channel from a channel group.
293 * @details This function removes only one channel from the group.
295 * @param[in] channel Channel to be removed from the group.
297 * @param[in] channel_group Channel group.
299 __STATIC_INLINE void nrf_ppi_channel_remove_from_group(nrf_ppi_channel_t channel,
303 * @brief Function for removing multiple PPI channels from a channel group.
309 * @param[in] channel_group Channel group.
315 * @brief Function for removing all PPI channels from a channel group.
317 * @param[in] group Channel group.
323 * @brief Function for enabling a channel group.
325 * @param[in] group Channel group.
331 * @brief Function for disabling a channel group.
333 * @param[in] group Channel group.
369 __STATIC_INLINE void nrf_ppi_channel_enable(nrf_ppi_channel_t channel) in nrf_ppi_channel_enable() argument
371 NRF_PPI->CHENSET = PPI_CHENSET_CH0_Set << ((uint32_t) channel); in nrf_ppi_channel_enable()
374 __STATIC_INLINE void nrf_ppi_channel_disable(nrf_ppi_channel_t channel) in nrf_ppi_channel_disable() argument
376 NRF_PPI->CHENCLR = PPI_CHENCLR_CH0_Clear << ((uint32_t) channel); in nrf_ppi_channel_disable()
379 __STATIC_INLINE nrf_ppi_channel_enable_t nrf_ppi_channel_enable_get(nrf_ppi_channel_t channel) in nrf_ppi_channel_enable_get() argument
381 if (NRF_PPI->CHEN & (PPI_CHEN_CH0_Msk << ((uint32_t) channel))) in nrf_ppi_channel_enable_get()
406 __STATIC_INLINE void nrf_ppi_channel_endpoint_setup(nrf_ppi_channel_t channel, in nrf_ppi_channel_endpoint_setup() argument
410 NRF_PPI->CH[(uint32_t) channel].EEP = eep; in nrf_ppi_channel_endpoint_setup()
411 NRF_PPI->CH[(uint32_t) channel].TEP = tep; in nrf_ppi_channel_endpoint_setup()
414 __STATIC_INLINE void nrf_ppi_event_endpoint_setup(nrf_ppi_channel_t channel, in nrf_ppi_event_endpoint_setup() argument
417 NRF_PPI->CH[(uint32_t) channel].EEP = eep; in nrf_ppi_event_endpoint_setup()
420 __STATIC_INLINE void nrf_ppi_task_endpoint_setup(nrf_ppi_channel_t channel, in nrf_ppi_task_endpoint_setup() argument
423 NRF_PPI->CH[(uint32_t) channel].TEP = tep; in nrf_ppi_task_endpoint_setup()
428 __STATIC_INLINE void nrf_ppi_fork_endpoint_setup(nrf_ppi_channel_t channel, in nrf_ppi_fork_endpoint_setup() argument
431 NRF_PPI->FORK[(uint32_t) channel].TEP = fork_tep; in nrf_ppi_fork_endpoint_setup()
434 __STATIC_INLINE void nrf_ppi_channel_and_fork_endpoint_setup(nrf_ppi_channel_t channel, in nrf_ppi_channel_and_fork_endpoint_setup() argument
439 nrf_ppi_channel_endpoint_setup(channel, eep, tep); in nrf_ppi_channel_and_fork_endpoint_setup()
440 nrf_ppi_fork_endpoint_setup(channel, fork_tep); in nrf_ppi_channel_and_fork_endpoint_setup()
444 __STATIC_INLINE void nrf_ppi_channel_include_in_group(nrf_ppi_channel_t channel, in nrf_ppi_channel_include_in_group() argument
448 NRF_PPI->CHG[(uint32_t) channel_group] | (PPI_CHG_CH0_Included << ((uint32_t) channel)); in nrf_ppi_channel_include_in_group()
458 __STATIC_INLINE void nrf_ppi_channel_remove_from_group(nrf_ppi_channel_t channel, in nrf_ppi_channel_remove_from_group() argument
462 NRF_PPI->CHG[(uint32_t) channel_group] & ~(PPI_CHG_CH0_Included << ((uint32_t) channel)); in nrf_ppi_channel_remove_from_group()