Queue the Sample - icp_enq()

The demodulator maintains a queue of sampled items. This queue is of size ICP_RX_QSIZE defined in icp.h. The treatment of queued items is based on the selection made during compilation.

The following figure shows the flow of the function icp_enq().
Figure 1. Flowchart for icp_enq()