Date:2013-02-12 20:42:20 (6 years 9 months ago)
Author:Werner Almesberger
Commit:8710be5665ec17da807a848e3286d3940c76dc1d
Message:tools/atrf-txrx/atrf-txrx.c: add section headers and update clkm comment

Files: tools/atrf-txrx/atrf-txrx.c (6 diffs)

Change Details

tools/atrf-txrx/atrf-txrx.c
7474static volatile int run = 1;
7575
7676
77/* ----- Helper functions -------------------------------------------------- */
78
79
7780/*
78 * clkm: 0 disable CLKM
79 * >0 output 2^(clkm-1) MHz signal
81 * mhz: 0 disable CLKM
82 * >0 output specified clock
8083 */
8184
8285static struct atrf_dsc *init_txrx(const char *driver, int trim, unsigned mhz)
...... 
138141}
139142
140143
144/* ----- Message transmit/receive ------------------------------------------ */
145
146
141147static void receive_message(struct atrf_dsc *dsc)
142148{
143149    uint8_t buf[MAX_PSDU+1]; /* PSDU+LQI */
...... 
320326}
321327
322328
329/* ----- PER test ---------------------------------------------------------- */
330
331
323332static void transmit_pattern(struct atrf_dsc *dsc, double pause_s, int times)
324333{
325334    uint8_t buf[MAX_PSDU];
...... 
355364}
356365
357366
367/* ----- Ping -------------------------------------------------------------- */
368
369
358370static void ping_tx(struct atrf_dsc *dsc, const struct ping *pck)
359371{
360372    atrf_reg_write(dsc, REG_TRX_STATE, TRX_CMD_PLL_ON);
...... 
440452}
441453
442454
455/* ----- Continuous wave test ---------------------------------------------- */
456
457
443458static int test_mode(struct atrf_dsc *dsc, uint8_t cont_tx, const char *cmd)
444459{
445460    int status = 0;
...... 
459474}
460475
461476
477/* ----- Command-line processing ------------------------------------------- */
478
479
462480static void die(int sig)
463481{
464482    run = 0;

Archive Download the corresponding diff file



interactive