56 #ifndef COLLECT_LINK_ESTIMATE_H
57 #define COLLECT_LINK_ESTIMATE_H
59 #define COLLECT_LINK_ESTIMATE_UNIT 8
64 uint32_t etx_accumulator;
65 uint8_t num_estimates;
void collect_link_estimate_update_tx(struct collect_link_estimate *le, uint8_t tx)
Update a link estimate when a packet has been sent.
void collect_link_estimate_new(struct collect_link_estimate *le)
Initialize a new link estimate.
void collect_link_estimate_update_rx(struct collect_link_estimate *n)
Update a link estimate when a packet has been received.
uint16_t collect_link_estimate(struct collect_link_estimate *le)
Compute the link estimate metric for a link estimate.
void collect_link_estimate_update_tx_fail(struct collect_link_estimate *le, uint8_t tx)
Update a link estimate when a packet has failed to be sent.