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:
adamdunkels 2010-02-23 18:38:05 +00:00
parent f10eedab3e
commit ca0417a923
11 changed files with 126 additions and 44 deletions

View file

@ -46,7 +46,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: abc.h,v 1.15 2009/03/12 21:58:20 adamdunkels Exp $
* $Id: abc.h,v 1.16 2010/02/23 18:38:05 adamdunkels Exp $
*/
/**
* \file
@ -72,6 +72,7 @@ struct abc_conn;
struct abc_callbacks {
/** Called when a packet has been received by the abc module. */
void (* recv)(struct abc_conn *ptr);
void (* sent)(struct abc_conn *ptr, int status, int num_tx);
};
struct abc_conn {
@ -133,8 +134,10 @@ int abc_send(struct abc_conn *c);
* directly.
*
*/
void abc_input(struct channel *channel);
void abc_sent(struct channel *channel, int status, int num_tx);
#endif /* __ABC_H__ */
/** @} */