Lines Matching refs:radio_state

236 static nrfra_state_t radio_state;  variable
291 radio_state = RAD_DISABLED; in radio_reset()
330 if ( ( radio_state != RAD_DISABLED ) in nhw_RADIO_TASK_TXEN()
331 && ( radio_state != RAD_TXIDLE ) in nhw_RADIO_TASK_TXEN()
332 && ( radio_state != RAD_RXIDLE ) ){ in nhw_RADIO_TASK_TXEN()
335 radio_state); in nhw_RADIO_TASK_TXEN()
338 radio_state = RAD_TXRU; in nhw_RADIO_TASK_TXEN()
345 if ( ( radio_state != RAD_DISABLED ) in nhw_RADIO_TASK_RXEN()
346 && ( radio_state != RAD_TXIDLE ) in nhw_RADIO_TASK_RXEN()
347 && ( radio_state != RAD_RXIDLE ) ){ in nhw_RADIO_TASK_RXEN()
350 radio_state); in nhw_RADIO_TASK_RXEN()
354 radio_state = RAD_RXRU; in nhw_RADIO_TASK_RXEN()
379 if ( radio_state == RAD_TXIDLE ) { in nhw_RADIO_TASK_START()
381 radio_state = RAD_TXSTARTING; in nhw_RADIO_TASK_START()
384 } else if ( radio_state == RAD_RXIDLE ) { in nhw_RADIO_TASK_START()
389 radio_state); in nhw_RADIO_TASK_START()
394 if (radio_state != RAD_DISABLED) { in nhw_RADIO_TASK_SOFTRESET()
397 "Current state %i\n", radio_state); in nhw_RADIO_TASK_SOFTRESET()
410 if ((radio_state != RAD_RXIDLE)){ in nhw_RADIO_TASK_CCASTART()
414 radio_state); in nhw_RADIO_TASK_CCASTART()
421 if (( radio_state == RAD_CCA_ED ) && ( cca_status.CCA_notED )) { in nhw_RADIO_TASK_CCASTOP()
423 radio_state = RAD_RXIDLE; in nhw_RADIO_TASK_CCASTOP()
431 radio_state, cca_status.CCA_notED); in nhw_RADIO_TASK_CCASTOP()
436 if ((radio_state != RAD_RXIDLE)){ in nhw_RADIO_TASK_EDSTART()
440 radio_state); in nhw_RADIO_TASK_EDSTART()
447 if (( radio_state == RAD_CCA_ED ) && ( cca_status.CCA_notED == 0)) { in nhw_RADIO_TASK_EDSTOP()
449 radio_state = RAD_RXIDLE; in nhw_RADIO_TASK_EDSTOP()
457 radio_state, cca_status.CCA_notED); in nhw_RADIO_TASK_EDSTOP()
464 if ((radio_state == RAD_TX) || (radio_state == RAD_TXSTARTING)) { in nhw_RADIO_TASK_STOP()
465 if (radio_state == RAD_TX) { in nhw_RADIO_TASK_STOP()
468 radio_state = RAD_TXIDLE; in nhw_RADIO_TASK_STOP()
471 } else if ( radio_state == RAD_RX ){ in nhw_RADIO_TASK_STOP()
473 radio_state = RAD_RXIDLE; in nhw_RADIO_TASK_STOP()
476 } else if ( radio_state == RAD_CCA_ED ){ in nhw_RADIO_TASK_STOP()
484 radio_state = RAD_RXIDLE; in nhw_RADIO_TASK_STOP()
491 radio_state); in nhw_RADIO_TASK_STOP()
498 if ((radio_state == RAD_TX) || (radio_state == RAD_TXSTARTING)) { in nhw_RADIO_TASK_DISABLE()
499 if (radio_state == RAD_TX) { in nhw_RADIO_TASK_DISABLE()
502 radio_state = RAD_TXIDLE; //Momentary (will be changed in the if below) in nhw_RADIO_TASK_DISABLE()
504 } else if ( radio_state == RAD_RX ){ in nhw_RADIO_TASK_DISABLE()
506 radio_state = RAD_RXIDLE; //Momentary (will be changed in the if below) in nhw_RADIO_TASK_DISABLE()
508 } else if ( radio_state == RAD_CCA_ED ){ in nhw_RADIO_TASK_DISABLE()
512 radio_state = RAD_RXIDLE; //Momentary (will be changed in the if below) in nhw_RADIO_TASK_DISABLE()
522 if ( ( radio_state == RAD_TXRU ) || ( radio_state == RAD_TXIDLE ) ) { in nhw_RADIO_TASK_DISABLE()
523 radio_state = RAD_TXDISABLE; in nhw_RADIO_TASK_DISABLE()
527 } else if ( ( radio_state == RAD_RXRU ) || ( radio_state == RAD_RXIDLE ) ) { in nhw_RADIO_TASK_DISABLE()
528 radio_state = RAD_RXDISABLE; in nhw_RADIO_TASK_DISABLE()
532 } else if ( radio_state == RAD_DISABLED ) { in nhw_RADIO_TASK_DISABLE()
540 if ((radio_state != RAD_RX) && (radio_state != RAD_RXIDLE)) { in nhw_RADIO_TASK_RSSISTART()
660 if ( radio_state == RAD_TXRU ){ in nhw_radio_timer_triggered()
661 radio_state = RAD_TXIDLE; in nhw_radio_timer_triggered()
666 } else if ( radio_state == RAD_RXRU ){ in nhw_radio_timer_triggered()
667 radio_state = RAD_RXIDLE; in nhw_radio_timer_triggered()
672 } else if ( radio_state == RAD_TXSTARTING ){ in nhw_radio_timer_triggered()
675 } else if ( radio_state == RAD_TX ){ in nhw_radio_timer_triggered()
696 radio_state = RAD_TXIDLE; in nhw_radio_timer_triggered()
706 } else if ( radio_state == RAD_RX ){ in nhw_radio_timer_triggered()
735 radio_state = RAD_RXIDLE; in nhw_radio_timer_triggered()
750 } else if ( radio_state == RAD_CCA_ED ){ in nhw_radio_timer_triggered()
751 radio_state = RAD_RXIDLE; in nhw_radio_timer_triggered()
763 } else if ( radio_state == RAD_TXDISABLE ){ in nhw_radio_timer_triggered()
764 radio_state = RAD_DISABLED; in nhw_radio_timer_triggered()
769 } else if ( radio_state == RAD_RXDISABLE ){ in nhw_radio_timer_triggered()
770 radio_state = RAD_DISABLED; in nhw_radio_timer_triggered()
776 if ( ( radio_state == RAD_DISABLED ) && ( TIFS_state == TIFS_TRIGGERING_TRX_EN ) ) { in nhw_radio_timer_triggered()
792 radio_state); in nhw_radio_timer_triggered()
881 radio_state = RAD_TX; in start_Tx()
1147 …} else if ((ret == P2G4_MSG_RXV2_ADDRESSFOUND) && (radio_state == RAD_RX /*if we havent aborted*/… in handle_Rx_response()
1162 } else if ((ret == P2G4_MSG_RXV2_END) && (radio_state == RAD_RX /*if we havent aborted*/)) { in handle_Rx_response()
1243 radio_state = RAD_RX; in start_Rx()
1466 if (radio_state == RAD_CCA_ED) { /*if we haven't aborted*/ in handle_CCA_response()
1498 radio_state = RAD_CCA_ED; in start_CCA_ED()