Lines Matching refs:radio_state

230 static nrfra_state_t radio_state;  variable
258 radio_state = RAD_DISABLED; in radio_reset()
320 if ( ( radio_state != RAD_DISABLED ) in nhw_RADIO_TASK_TXEN()
321 && ( radio_state != RAD_TXIDLE ) in nhw_RADIO_TASK_TXEN()
322 && ( radio_state != RAD_RXIDLE ) ){ in nhw_RADIO_TASK_TXEN()
325 radio_state); in nhw_RADIO_TASK_TXEN()
328 radio_state = RAD_TXRU; in nhw_RADIO_TASK_TXEN()
335 if ( ( radio_state != RAD_DISABLED ) in nhw_RADIO_TASK_RXEN()
336 && ( radio_state != RAD_TXIDLE ) in nhw_RADIO_TASK_RXEN()
337 && ( radio_state != RAD_RXIDLE ) ){ in nhw_RADIO_TASK_RXEN()
340 radio_state); in nhw_RADIO_TASK_RXEN()
344 radio_state = RAD_RXRU; in nhw_RADIO_TASK_RXEN()
369 if ( radio_state == RAD_TXIDLE ) { in nhw_RADIO_TASK_START()
371 radio_state = RAD_TXSTARTING; in nhw_RADIO_TASK_START()
374 } else if ( radio_state == RAD_RXIDLE ) { in nhw_RADIO_TASK_START()
379 radio_state); in nhw_RADIO_TASK_START()
384 if (radio_state != RAD_DISABLED) { in nhw_RADIO_TASK_SOFTRESET()
387 "Current state %i\n", radio_state); in nhw_RADIO_TASK_SOFTRESET()
394 if ((radio_state != RAD_RXIDLE)){ in nhw_RADIO_TASK_CCASTART()
398 radio_state); in nhw_RADIO_TASK_CCASTART()
405 if (( radio_state == RAD_CCA_ED ) && ( cca_status.CCA_notED )) { in nhw_RADIO_TASK_CCASTOP()
407 radio_state = RAD_RXIDLE; in nhw_RADIO_TASK_CCASTOP()
415 radio_state, cca_status.CCA_notED); in nhw_RADIO_TASK_CCASTOP()
420 if ((radio_state != RAD_RXIDLE)){ in nhw_RADIO_TASK_EDSTART()
424 radio_state); in nhw_RADIO_TASK_EDSTART()
431 if (( radio_state == RAD_CCA_ED ) && ( cca_status.CCA_notED == 0)) { in nhw_RADIO_TASK_EDSTOP()
433 radio_state = RAD_RXIDLE; in nhw_RADIO_TASK_EDSTOP()
441 radio_state, cca_status.CCA_notED); in nhw_RADIO_TASK_EDSTOP()
448 if ((radio_state == RAD_TX) || (radio_state == RAD_TXSTARTING)) { in nhw_RADIO_TASK_STOP()
449 if (radio_state == RAD_TX) { in nhw_RADIO_TASK_STOP()
452 radio_state = RAD_TXIDLE; in nhw_RADIO_TASK_STOP()
455 } else if ( radio_state == RAD_RX ){ in nhw_RADIO_TASK_STOP()
457 radio_state = RAD_RXIDLE; in nhw_RADIO_TASK_STOP()
460 } else if ( radio_state == RAD_CCA_ED ){ in nhw_RADIO_TASK_STOP()
468 radio_state = RAD_RXIDLE; in nhw_RADIO_TASK_STOP()
475 radio_state); in nhw_RADIO_TASK_STOP()
482 if ((radio_state == RAD_TX) || (radio_state == RAD_TXSTARTING)) { in nhw_RADIO_TASK_DISABLE()
483 if (radio_state == RAD_TX) { in nhw_RADIO_TASK_DISABLE()
486 radio_state = RAD_TXIDLE; //Momentary (will be changed in the if below) in nhw_RADIO_TASK_DISABLE()
488 } else if ( radio_state == RAD_RX ){ in nhw_RADIO_TASK_DISABLE()
490 radio_state = RAD_RXIDLE; //Momentary (will be changed in the if below) in nhw_RADIO_TASK_DISABLE()
492 } else if ( radio_state == RAD_CCA_ED ){ in nhw_RADIO_TASK_DISABLE()
496 radio_state = RAD_RXIDLE; //Momentary (will be changed in the if below) in nhw_RADIO_TASK_DISABLE()
506 if ( ( radio_state == RAD_TXRU ) || ( radio_state == RAD_TXIDLE ) ) { in nhw_RADIO_TASK_DISABLE()
507 radio_state = RAD_TXDISABLE; in nhw_RADIO_TASK_DISABLE()
511 } else if ( ( radio_state == RAD_RXRU ) || ( radio_state == RAD_RXIDLE ) ) { in nhw_RADIO_TASK_DISABLE()
512 radio_state = RAD_RXDISABLE; in nhw_RADIO_TASK_DISABLE()
516 } else if ( radio_state == RAD_DISABLED ) { in nhw_RADIO_TASK_DISABLE()
600 if ( radio_state == RAD_TXRU ){ in nhw_radio_timer_triggered()
601 radio_state = RAD_TXIDLE; in nhw_radio_timer_triggered()
606 } else if ( radio_state == RAD_RXRU ){ in nhw_radio_timer_triggered()
607 radio_state = RAD_RXIDLE; in nhw_radio_timer_triggered()
612 } else if ( radio_state == RAD_TXSTARTING ){ in nhw_radio_timer_triggered()
615 } else if ( radio_state == RAD_TX ){ in nhw_radio_timer_triggered()
636 radio_state = RAD_TXIDLE; in nhw_radio_timer_triggered()
646 } else if ( radio_state == RAD_RX ){ in nhw_radio_timer_triggered()
675 radio_state = RAD_RXIDLE; in nhw_radio_timer_triggered()
690 } else if ( radio_state == RAD_CCA_ED ){ in nhw_radio_timer_triggered()
691 radio_state = RAD_RXIDLE; in nhw_radio_timer_triggered()
703 } else if ( radio_state == RAD_TXDISABLE ){ in nhw_radio_timer_triggered()
704 radio_state = RAD_DISABLED; in nhw_radio_timer_triggered()
709 } else if ( radio_state == RAD_RXDISABLE ){ in nhw_radio_timer_triggered()
710 radio_state = RAD_DISABLED; in nhw_radio_timer_triggered()
716 if ( ( radio_state == RAD_DISABLED ) && ( TIFS_state == TIFS_TRIGGERING_TRX_EN ) ) { in nhw_radio_timer_triggered()
732 radio_state); in nhw_radio_timer_triggered()
821 radio_state = RAD_TX; in start_Tx()
1087 …} else if ((ret == P2G4_MSG_RXV2_ADDRESSFOUND) && (radio_state == RAD_RX /*if we havent aborted*/… in handle_Rx_response()
1102 } else if ((ret == P2G4_MSG_RXV2_END) && (radio_state == RAD_RX /*if we havent aborted*/)) { in handle_Rx_response()
1156 radio_state = RAD_RX; in start_Rx()
1391 if (radio_state == RAD_CCA_ED) { /*if we haven't aborted*/ in handle_CCA_response()
1423 radio_state = RAD_CCA_ED; in start_CCA_ED()