Made send intervals configurable when sending a new file

This commit is contained in:
adamdunkels 2007-04-02 09:51:45 +00:00
parent 0f17706ef3
commit a26906f478
4 changed files with 24 additions and 21 deletions

View file

@ -47,7 +47,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: rudolph0.h,v 1.2 2007/03/31 18:31:28 adamdunkels Exp $
* $Id: rudolph0.h,v 1.3 2007/04/02 09:51:45 adamdunkels Exp $
*/
/**
@ -98,6 +98,7 @@ struct rudolph0_conn {
struct sabc_conn c;
struct uabc_conn nackc;
const struct rudolph0_callbacks *cb;
clock_time_t send_interval;
u8_t state;
struct rudolph0_datapacket current;
};
@ -105,7 +106,7 @@ struct rudolph0_conn {
void rudolph0_open(struct rudolph0_conn *c, u16_t channel,
const struct rudolph0_callbacks *cb);
void rudolph0_close(struct rudolph0_conn *c);
void rudolph0_send(struct rudolph0_conn *c);
void rudolph0_send(struct rudolph0_conn *c, clock_time_t interval);
void rudolph0_stop(struct rudolph0_conn *c);
void rudolph0_set_version(struct rudolph0_conn *c, int version);