资 源 简 介
void OnMaster( void ){ uint8_t i; switch( Radio->Process( ) ) { case RF_RX_TIMEOUT: // Send the next PING frame Buffer[0] = "P"; Buffer[1] = "I"; Buffer[2] = "N"; Buffer[3] = "G"; for( i = 4; i < BufferSize; i++ ) { Buffer[i] = i - 4; } Radio->SetTxPacket( Buffer, BufferSize ); break; case RF_RX_DONE: Radio->GetRxPacket( Buffer, ( uint16_t* )&BufferSize ); if( BufferSize > 0 )&n