ot::Mac::ChannelMask::GetNextChannel() const method
Gets the next channel in the channel mask. Can be used to iterate over all channels in the channel mask. To get the first channel (channel with lowest number) in the mask the @p aChannel should be set to `kChannelIteratorFirst`.
Arguments
aChannel
A reference to a `uint8_t`. On entry it should contain the previous channel or `kChannelIteratorFirst`. On exit it contains the next channel.
Return value
kErrorNone Got the next channel, @p aChannel updated successfully. kErrorNotFound No next channel in the channel mask (note: @p aChannel may be changed).
ot::Mac::ChannelMask::GetNextChannel() const is called by 4 functions and calls 1 function:
![]()
ot::Mac::ChannelMask::GetNextChannel() const
ot::Mac::ChannelMask::GetNextChannel() const reads 5 variables:
![]()
ot::Mac::ChannelMask::GetNextChannel() const