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

Function rt_link_long_handle

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

Source from the content-addressed store, hash-verified

544}
545
546static rt_err_t rt_link_long_handle(struct rt_link_frame *receive_frame)
547{
548 if (rt_link_scb->rx_record.long_count == 0)
549 {
550 /* Receive this long package for the first time:
551 * calculates the total number of frames,
552 * requests space, and turns on the receive timer */
553 _long_handle_first(receive_frame);
554 }
555 if (rt_link_scb->rx_record.total > 0)
556 {
557 /* Intermediate frame processing:
558 * serial number repeated check,
559 * receive completion check, reply to ACK */
560 _long_handle_second(receive_frame);
561 }
562 receive_frame->real_data = RT_NULL;
563 return RT_EOK;
564}
565
566static rt_err_t rt_link_handshake_handle(struct rt_link_frame *receive_frame)
567{

Callers 1

rt_link_parse_frameFunction · 0.85

Calls 2

_long_handle_firstFunction · 0.85
_long_handle_secondFunction · 0.85

Tested by

no test coverage detected