added radio and MAC generic return values to allow applications finding out whether the packet was transmitted
This commit is contained in:
parent
eded6497f2
commit
26bb5ecd21
2 changed files with 13 additions and 2 deletions
|
@ -42,7 +42,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: radio.h,v 1.5 2007/05/25 08:05:24 adamdunkels Exp $
|
* $Id: radio.h,v 1.6 2009/11/13 08:59:22 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,6 +75,12 @@ struct radio_driver {
|
||||||
int (* off)(void);
|
int (* off)(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Generic radio return values. */
|
||||||
|
enum {
|
||||||
|
RADIO_TX_OK,
|
||||||
|
RADIO_TX_ERR,
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* __RADIO_H__ */
|
#endif /* __RADIO_H__ */
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: mac.h,v 1.5 2009/06/22 11:14:11 nifi Exp $
|
* $Id: mac.h,v 1.6 2009/11/13 08:59:22 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,5 +68,10 @@ struct mac_driver {
|
||||||
int (* off)(int keep_radio_on);
|
int (* off)(int keep_radio_on);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Generic MAC return values. */
|
||||||
|
enum {
|
||||||
|
MAC_TX_OK,
|
||||||
|
MAC_TX_ERR,
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* __MAC_H__ */
|
#endif /* __MAC_H__ */
|
||||||
|
|
Loading…
Reference in a new issue