mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-05 16:41:53 +02:00
9ef447865b
- include/cwtest.h (cw_test_needs_reset), lib/cwtest.c (cw_test_needs_reset): new function to indicate all cases where the transceiver needs to be reset (instead of using SLP_TR) - lib/cwtest.c (cw_test_end): use cw_test_needs_reset instead of open-coding the decision - lib/cwtest.c (enter_test_mode_230, start_test_mode_231): always wait for the PLL to lock. Contrary to the assumption in the previous commit, we should always see this interrupt. - atrf-path/atrf-path.c (sample): initialize the transceiver if we had to reset it - atrf-path/atrf-path.c (sample), atrf-path/atrf-path.c (do_half_sweep): moved the tTR19 delay to "sweep", so that all branches share it and it is taken only once
28 lines
692 B
C
28 lines
692 B
C
/*
|
|
* include/cwtest.h - AT86RF230/231 constant wave test mode
|
|
*
|
|
* Written 2011 by Werner Almesberger
|
|
* Copyright 2011 Werner Almesberger
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
|
|
#ifndef CWTEST_H
|
|
#define CWTEST_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "atrf.h"
|
|
|
|
|
|
int cw_test_needs_reset(struct atrf_dsc *dsc);
|
|
void cw_test_begin(struct atrf_dsc *dsc, uint8_t cont_tx);
|
|
void cw_test_resume(struct atrf_dsc *dsc);
|
|
void cw_test_end(struct atrf_dsc *dsc);
|
|
|
|
#endif /* !CW_TEST_H */
|