1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

tools/: add timeout_ms argument to atrf_rx

This commit is contained in:
Werner Almesberger
2013-02-12 16:19:09 -03:00
parent 125cc6ad9f
commit 8ac87a3fa1
6 changed files with 18 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
/*
* lib/atrf.c - ATRF access functions library
*
* Written 2010-2011 by Werner Almesberger
* Copyright 2010-2011 Werner Almesberger
* Written 2010-2011, 2013 by Werner Almesberger
* Copyright 2010-2011, 2013 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
@@ -331,11 +331,12 @@ void atrf_rx_mode(struct atrf_dsc *dsc, int on)
}
int atrf_rx(struct atrf_dsc *dsc, void *buf, int size, uint8_t *lqi)
int atrf_rx(struct atrf_dsc *dsc, void *buf, int size, int timeout_ms,
uint8_t *lqi)
{
if (!dsc->driver->rx)
return 0;
return dsc->driver->rx(dsc->handle, buf, size, lqi);
return dsc->driver->rx(dsc->handle, buf, size, timeout_ms, lqi);
}