Build a component that can be used to reassemble communication frames given protocol information. This will break-off this functionality from the Deframer.
Basic requirements:
Accept incoming Fw::Buffers of any size
Accumulate buffers in-order
Call frame detector helper class
On "NO_FRAME" discard first byte and try again
On "NEED DATA" continue to accumulate data
On "FRAME" allocate buffer, copy-out frame
Helper class requirements:
Must implement Enum detect_frame(const CircularBuffer& buffer, FwSizeType& size_output) method
Cannot alter circular buffer (uses peeks)
Must set size_output when data is needed and when frame detected
Feature Description
Build a component that can be used to reassemble communication frames given protocol information. This will break-off this functionality from the Deframer.
Basic requirements:
Helper class requirements:
Enum detect_frame(const CircularBuffer& buffer, FwSizeType& size_output)
methodsize_output
when data is needed and when frame detected