Added the MAC layer callback functionality so that the Rime network layer gets information from the MAC about the status of sent packets: were they successfully transmitted, or was there a collisions? How many retries were there?
This commit is contained in:
parent
f10eedab3e
commit
ca0417a923
11 changed files with 126 additions and 44 deletions
|
@ -60,7 +60,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: stunicast.h,v 1.4 2009/11/08 19:40:18 adamdunkels Exp $
|
||||
* $Id: stunicast.h,v 1.5 2010/02/23 18:38:05 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -83,7 +83,7 @@ struct stunicast_conn;
|
|||
|
||||
struct stunicast_callbacks {
|
||||
void (* recv)(struct stunicast_conn *c, const rimeaddr_t *from);
|
||||
void (* sent)(struct stunicast_conn *c);
|
||||
void (* sent)(struct stunicast_conn *c, int status, int num_tx);
|
||||
};
|
||||
|
||||
struct stunicast_conn {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue