| 4510 | |
| 4511 | |
| 4512 | int dump_chan(FILE *fout, RIG *rig, channel_t *chan) |
| 4513 | { |
| 4514 | int idx, firstloop = 1; |
| 4515 | char freqbuf[16]; |
| 4516 | char widthbuf[16]; |
| 4517 | char prntbuf[256]; |
| 4518 | |
| 4519 | ENTERFUNC2; |
| 4520 | |
| 4521 | fprintf(fout, |
| 4522 | "Channel: %d, Name: '%s'\n", |
| 4523 | chan->channel_num, |
| 4524 | chan->channel_desc); |
| 4525 | |
| 4526 | fprintf(fout, |
| 4527 | "VFO: %s, Antenna: %d, Split: %s\n", |
| 4528 | rig_strvfo(chan->vfo), |
| 4529 | chan->ant, |
| 4530 | chan->split == RIG_SPLIT_ON ? "ON" : "OFF"); |
| 4531 | |
| 4532 | sprintf_freq(freqbuf, sizeof(freqbuf), chan->freq); |
| 4533 | sprintf_freq(widthbuf, sizeof(widthbuf), chan->width); |
| 4534 | fprintf(fout, |
| 4535 | "Freq: %s\tMode: %s\tWidth: %s\n", |
| 4536 | freqbuf, |
| 4537 | rig_strrmode(chan->mode), |
| 4538 | widthbuf); |
| 4539 | |
| 4540 | sprintf_freq(freqbuf, sizeof(freqbuf), chan->tx_freq); |
| 4541 | sprintf_freq(widthbuf, sizeof(widthbuf), chan->tx_width); |
| 4542 | fprintf(fout, |
| 4543 | "txFreq: %s\ttxMode: %s\ttxWidth: %s\n", |
| 4544 | freqbuf, |
| 4545 | rig_strrmode(chan->tx_mode), |
| 4546 | widthbuf); |
| 4547 | |
| 4548 | sprintf_freq(freqbuf, sizeof(freqbuf), chan->rptr_offs); |
| 4549 | fprintf(fout, |
| 4550 | "Shift: %s, Offset: %s%s, ", |
| 4551 | rig_strptrshift(chan->rptr_shift), |
| 4552 | chan->rptr_offs > 0 ? "+" : "", |
| 4553 | freqbuf); |
| 4554 | |
| 4555 | sprintf_freq(freqbuf, sizeof(freqbuf), chan->tuning_step); |
| 4556 | fprintf(fout, "Step: %s, ", freqbuf); |
| 4557 | sprintf_freq(freqbuf, sizeof(freqbuf), chan->rit); |
| 4558 | fprintf(fout, "RIT: %s%s, ", chan->rit > 0 ? "+" : "", freqbuf); |
| 4559 | sprintf_freq(freqbuf, sizeof(freqbuf), chan->xit); |
| 4560 | fprintf(fout, "XIT: %s%s\n", chan->xit > 0 ? "+" : "", freqbuf); |
| 4561 | |
| 4562 | fprintf(fout, "CTCSS: %u.%uHz, ", chan->ctcss_tone / 10, chan->ctcss_tone % 10); |
| 4563 | fprintf(fout, |
| 4564 | "CTCSSsql: %u.%uHz, ", |
| 4565 | chan->ctcss_sql / 10, |
| 4566 | chan->ctcss_sql % 10); |
| 4567 | |
| 4568 | fprintf(fout, "DCS: %u.%u, ", chan->dcs_code / 10, chan->dcs_code % 10); |
| 4569 | fprintf(fout, "DCSsql: %u.%u\n", chan->dcs_sql / 10, chan->dcs_sql % 10); |
no test coverage detected