/* Function for handling the Timer 0 interrupt used for TX/RX sweep. The carrier is started with the new channel, and the channel is incremented for the next interrupt.  */
void TIMER0_IRQHandler(void)
/* Function for handling the Timer 0 interrupt used for TX/RX sweep. The carrier is started with the new channel, and the channel is incremented for the next interrupt.  */
void TIMER0_IRQHandler(void)
{
    if (sweep_tx_)
    {
        radio_tx_carrier(txpower_, mode_, channel_);
    }
    else
    {
        radio_rx_carrier(mode_, channel_);
    }
    channel_++;
    if (channel_ > channel_end_)
    {
        channel_ = channel_start_;
    }
    NRF_TIMER0->EVENTS_COMPARE[0] = 0;
}