mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
libatrf: add option to send a pulse with atrf_slp_tr
- include/atrf.h (atrf_slp_tr), lib/atrf.c (atrf_slp_tr): added pulse argument - atrf-proxy/PROTOCOL, atrf-proxy/atrf-proxy.c (cmd_two, cmd_more): added second argument to SLP_TR command - atrf-xtal/atben.c (atben_sample), lib/cwtest.c (cw_test_end): updated for API change - lib/driver.h (struct atrf_driver): added "pulse" argument to slp_tr - lib/atben.c (atben_slp_tr), lib/atnet.c (atnet_slp_tr): added support for pulse mode
This commit is contained in:
@@ -148,9 +148,9 @@ void cw_test_end(struct atrf_dsc *dsc)
|
||||
break;
|
||||
case artf_at86rf231:
|
||||
usleep(2); /* table 7-1: tTR12(typ) = 1 us */
|
||||
atrf_slp_tr(dsc, 1);
|
||||
atrf_slp_tr(dsc, 1, 0);
|
||||
usleep(10); /* table 7-1: tTR3(typ) doesn't really apply */
|
||||
atrf_slp_tr(dsc, 0);
|
||||
atrf_slp_tr(dsc, 0, 0);
|
||||
usleep(500); /* table 7-1: tTR2(typ) = 380 */
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user