DSP 1-4 Buffer Manager

Buffer Management Information (all buffers)
Variable Description
Nchan No. of Input Channels used by this DSP
Nused_ind No. of buffer indices currently in use
buff_full =1: one of the buffers is full
chan_no Channel (buffer) No. for next write
write_ind Index in Buffer Pointer Struct Array for next write
read_ind Index in Buffer Pointer Struct Array for next read

The Structure

     struct Buffer_Manager{
       int Nchan;
       int Nused_ind;
       int chan_no;
       int write_ind;
       int read_ind;
     };

     struct Buffer_Manager buff_man;