Previous              Contents              Next


 

Data Types

 

If you look at top of dsp_1for2.inc, you can identify 3 data types:

 

§        SIGNAL: 16-bit integer (word). Used for time-domain integer signals.

§        FSIGNAL: 32-bit float (real4). Used for time-domain float signals.

§        REALNB: 32-bit float (real4). Used for frequency-domain spectrums.

                       

An integer time-domain signal is an array of type SIGNAL. A float time-domain signal is an array of FSIGNAL.

A spectrum is an array of COMPLEX, where COMPLEX is a structure having 2 members: real part & imaginary part. The COMPLEX structure is defined in dsp_1for2.inc as follows:

 

COMPLEX                STRUCT                     ;complex variable struct    

            real                 REALNB        ?          ;real part

            imaginary      REALNB        ?          ;imaginary part

COMPLEX    ENDS

 


Previous              Contents              Next