Exemple #1
0
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);
    }
  }
}
Exemple #2
0
void filter_board_changed() {
    schedule_general();
}
Exemple #3
0
void tuner_changed() {
    schedule_general();
}
Exemple #4
0
void pa_changed() {
    schedule_general();
}