Made the number of retransmissions configurable

This commit is contained in:
adamdunkels 2007-03-31 18:33:27 +00:00
parent 91aa54dc77
commit 6dc06d09af
2 changed files with 24 additions and 13 deletions

View file

@ -28,12 +28,12 @@
*
* This file is part of the Contiki operating system.
*
* $Id: ruc.h,v 1.5 2007/03/19 22:10:17 adamdunkels Exp $
* $Id: ruc.h,v 1.6 2007/03/31 18:33:27 adamdunkels Exp $
*/
/**
* \file
* A brief description of what this file is.
* Reliable unicast header file
* \author
* Adam Dunkels <adam@sics.se>
*/
@ -54,12 +54,13 @@ struct ruc_conn {
struct suc_conn c;
const struct ruc_callbacks *u;
u8_t state;
u8_t transmissions_left;
};
void ruc_open(struct ruc_conn *c, u16_t channel,
const struct ruc_callbacks *u);
void ruc_close(struct ruc_conn *c);
int ruc_send(struct ruc_conn *c, rimeaddr_t *receiver);
int ruc_send(struct ruc_conn *c, rimeaddr_t *receiver, u8_t max_retransmissions);
#endif /* __RRUC_H__ */