Dheeraj M Pai
/
XXX_INTEGRATE_WITH_KIRUBHA_CODE
ADF7023
Diff: main.cpp
- Revision:
- 2:24459bb3d5cf
- Parent:
- 1:0a1e3fd2d4e3
- Child:
- 3:dd63376a1030
diff -r 0a1e3fd2d4e3 -r 24459bb3d5cf main.cpp --- a/main.cpp Fri Jun 26 14:41:11 2015 +0000 +++ b/main.cpp Sat Jun 27 03:53:25 2015 +0000 @@ -20,6 +20,9 @@ DigitalIn clk(D8); DigitalOut DT(D9); int j=0; +int bitcount=1; +int times=0; +int bites=0; #define SPI_NOP 0xFF @@ -43,6 +46,7 @@ if(current_bit == -1){ current_bit = 7; j++; + bitcount=1; cout<<"SENDING"<<ENDL; if(j>=sizeof(data_TX)) { @@ -313,7 +317,8 @@ int l=0; while(l<=1000){ cout << "in while" << ENDL; - + cout<<bitcount<<ENDL; + bitcount++; if(clk == 0){ if(state == 1){