X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/72ba8a8d6836027eaa12bb23bddf8f72900853ab..2dcbb2a0df003ac8a644c9111c3b7b7f2db42aaa:/client/sends.h?ds=sidebyside diff --git a/client/sends.h b/client/sends.h new file mode 100644 index 0000000..02d49db --- /dev/null +++ b/client/sends.h @@ -0,0 +1,17 @@ +#ifndef SENDS_H +#define SENDS_H + +#include "pico/cyw43_arch.h" +#include "pico/util/pheap.h" + +typedef struct { + uint32_t timestamp; + u16_t seq; + u8_t send_count; +} send_t; + +uint32_t next_send(send_t *s); + +bool next_send_less_than(void *user_data, pheap_node_id_t a, pheap_node_id_t b); + +#endif