32 #define RETRANSMIT 1000
42 uint16_t retransmit_in;
48 MEMB(cust_mem,
struct cust_t, MAX_CUST);
50 static struct ctimer b_cust_timer;
52 static uint8_t cust_cnt;
57 void custody_basic_init(
void)
71 uint16_t mintime=0xFFFF;
74 if(cust->retransmit_in - time <=0){
76 ROUTING.del_bundle(cust->bundle_num);
77 if(!
ROUTING.new_bundle(cust->bundle_num)){
81 cust->retransmit_in = RETRANSMIT;
84 cust->retransmit_in -= time;
85 if (cust->retransmit_in < mintime){
86 mintime=cust->retransmit_in;
442 uint8_t custody_basic_release(
struct mmem *bundlemem)
446 uint8_t custody_basic_retransmit(
struct mmem *bundlemem)
450 uint8_t custody_basic_report(
struct mmem *bundlemem, uint8_t status)
454 uint8_t custody_basic_decide(
struct mmem *bundlemem, uint32_t *
bundle_number)
458 void custody_basic_delete_from_list(uint32_t bundle_num)
466 custody_basic_release,
467 custody_basic_report,
468 custody_basic_decide,
469 custody_basic_retransmit,
470 custody_basic_delete_from_list,