MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_link_check_seq

Function rt_link_check_seq

components/utilities/rt-link/src/rtlink.c:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static rt_uint8_t rt_link_check_seq(rt_uint8_t new, rt_uint8_t used)
74{
75 rt_int16_t compare_seq = 0;
76 compare_seq = new - used;
77 if (compare_seq < 0)
78 {
79 compare_seq = compare_seq + 256;
80 }
81 return (rt_uint8_t)compare_seq;
82}
83
84static int rt_link_frame_init(struct rt_link_frame *frame, rt_uint8_t config)
85{

Callers 3

rt_link_confirm_handleFunction · 0.85
_long_handle_secondFunction · 0.85
rt_link_frame_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected