Hello there !
I am new to DSP, can any one please help me to compile the following program
The program and compiling errors are shown below
What I want to do is that, I want to convert a simple integer to a 16-bit number, then I want to read this 16-bit number bit by bit, I have written the following code , also I need some pause time between reading the bits.
#include <stdio.h>
void main(void)
{
//int data[1]={0};
int data=10;
int sample_data=data & 0x0001;
int i;
for (i=0; i<15; i++)
{
//
cout<<sample_data;
// I need some pause time here
}
//cout<<"Hello World";
}
[abc.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/bpsk_new/Debug" -i"C:/CCStudio_v3.3/C6000/dsk6713/include" -d"CHIP_6713" -mv6710 --mem_model:data=far -@"../../../CCStudio_v3.3/MyProjects/bpsk_new/Debug.lkf" "abc.c"
"abc.c", line 26: error: identifier "cout" is undefined
"abc.c", line 39: warning: last line of file ends without a newline
1 error detected in the compilation of "abc.c".
>> Compilation failure
Compile Complete,
1 Errors, 1 Warnings, 0 Remarks.