コード例 #1
0
ファイル: radio.c プロジェクト: pa3gsb/RadioBerry
void setTune(int state) {
fprintf(stderr,"setTune: protocol=%d\n", protocol);
  if(tune!=state) {
    tune=state;
    if(tune) {
      if(OCmemory_tune_time!=0) {
        struct timeval te;
        gettimeofday(&te,NULL);
        tune_timeout=(te.tv_sec*1000LL+te.tv_usec/1000)+(long long)OCmemory_tune_time;
      }
    }
    if(protocol==NEW_PROTOCOL) {
      schedule_high_priority(4);
      schedule_general();
    }
    if(tune) {
      SetChannelState(CHANNEL_RX0,0,1);
      SetChannelState(CHANNEL_TX,1,0);
    } else {
      SetChannelState(CHANNEL_TX,0,1);
      SetChannelState(CHANNEL_RX0,1,0);
    }
  }
}
コード例 #2
0
ファイル: new_protocol.c プロジェクト: g0orx/pihpsdr
void filter_board_changed() {
    schedule_general();
}
コード例 #3
0
ファイル: new_protocol.c プロジェクト: pa3gsb/RadioBerry
void tuner_changed() {
    schedule_general();
}
コード例 #4
0
ファイル: new_protocol.c プロジェクト: pa3gsb/RadioBerry
void pa_changed() {
    schedule_general();
}