ADF ROllinG Buffer Final withhout comments

Dependencies:   mbed

Fork of SPI_HelloWorld_Mbed by mbed official

main.cpp

Committer:
krishanprajapat
Date:
2015-07-09
Revision:
5:a5f3a97f419c
Parent:
4:f21e8a5740ba

File content as of revision 5:a5f3a97f419c:

//ISR=5 But receoived Data ISR =4
#include "mbed.h"
#include <iostream>
using namespace std;
#include <bitset>

#define ENDL "\r" << endl;
#define START_ADDRESS 0x020;
#define PI 3.14
SPI adf(PTA16, PTA17, PTA15);
//MOSI, MISO, CLOCK

DigitalOut CS(D10);
Serial PC(USBTX, USBRX);
DigitalOut led2(LED_RED);
InterruptIn IRQ(D8);
Ticker ticker;
int src=0;
int irqsrc = 0;
int j = 0;
int k = 0;
int irq1=0;
//ISR= 5;
//unsigned char data[]={0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x78,0xE5,0xFA,0xD6,0x5C,0xC1,0x32,0xB4,0x23,0x7B,0xE0,0x84,0x33,0x7E,0x05,0x06,0xFB,0xA5,0x94,0x60,0xA8,0xA4,0x0B,0x94,0xCF,0xDD,0x81,0x7E,0x61,0x27,0x7C,0x24,0x24,0xAA,0xA6,0x4E,0x0E,0x7E,0xA7,0xB4,0x25,0xBA,0x82,0x00,0x9C,0x29,0xE0,0x14,0x2C,0x6B,0x62,0xEC,0x26,0x85,0x8B,0xDE,0x3F,0x4A,0x8C,0xB2,0x1C,0x74,0x30,0xA2,0x29,0x8C,0x61,0x26,0x4A,0x62,0xAD,0x10,0xBF,0x7D,0x2B,0x20,0x6E,0xE2,0xEB,0xB6,0xF8,0xDC,0xF0,0x14,0xEE,0xBB,0xF4,0x92,0x58,0x82,0x24,0x0E,0x22,0xF9,0x95,0x4E,0x31,0xE8,0xC4,0xAC,0x7C,0x11,0x43,0x7E,0x10,0x96,0x7D,0xBA,0x30,0x7F,0x77,0x1A,0x5A,0x95,0xFA,0x48,0x83,0xC1,0xF6,0x30,0xFD,0x86,0x33,0x72,0x47,0x35,0x9E,0x16,0xCF,0x6C,0xE4,0x44,0x82,0x1E,0x39,0x7E,0x2D,0x77,0x30,0x4E,0xAB,0x48,0xDE,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x08,0x4C,0xDF,0x80,0x50,0x5E,0xE9,0x66,0xC6,0x2A,0x29,0x00,0xB9,0x73,0xF7,0x62,0x97,0xF8,0x49,0xDC,0xC2,0x49,0x2A,0xA8,0x64,0xE3,0x9F,0xAA,0xFB,0x49,0x6E,0xA2,0xA0,0x27,0x0A,0x78,0x01,0x4B,0x1A,0xD8,0x2E,0xC9,0xA1,0x62,0x3D,0xEF,0xD2,0xA0,0xCB,0x27,0x1D,0x0E,0x8A,0x2A,0x63,0x18,0x12,0x72,0x98,0xA8,0xD1,0x2F,0xDF,0x48,0xB2,0x1B,0xB8,0xB8,0xBB,0x5E,0x37,0x3C,0x01,0x7B,0xAE,0xFC,0x49,0x36,0x20,0x88,0x40,0xE8,0xBE,0x64,0x54,0xEC,0x7A,0x32,0xCA,0xDF,0x04,0x50,0x37,0xE4,0x25,0x9C,0xDB,0xAC,0x1F,0xDC,0x71,0xB6,0xA5,0x7C,0xA4,0xA0,0xF0,0x7C,0x63,0x3F,0x61,0x8C,0x37,0x31,0xCD,0x64,0xE1,0x53,0xDB,0x3A,0xC4,0x60,0x87,0x8C,0x97,0xEB,0x5D,0xCC,0x04,0xCA,0xD2,0x34,0xEF,0x82,0x13,0x36,0x78,0x14,0x17,0xB8,0x96,0x51,0x8A,0x88,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F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x99,0x38,0xE4,0xFA,0x9E,0xD2,0x58,0xEA,0x08,0x09,0xC0,0xA7,0x80,0x52,0xC4,0xAD,0x8B,0xB2,0x68,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
//ISR = 5 Data7.txt
//unsigned char data[]={0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x61,0x85,0xAF,0xFA,0x52,0xFA,0x9A,0x08,0x93,0x12,0x65,0x60,0x97,0x7F,0xE6,0x46,0xC0,0x94,0x26,0x4E,0x9B,0x1F,0x1C,0x5E,0x3C,0x8B,0x75,0x2C,0xD1,0x00,0xA5,0xCA,0x6F,0xB0,0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,0x35,0x52,0x59,0x64,0x3F,0x0F,0x42,0x00,0x27,0x75,0x00,0xF8,0x06,0xE6,0x4E,0xF2,0x93,0x6E,0x8D,0x98,0x83,0x4E,0x16,0x18,0x16,0xBF,0xED,0x2E,0x6A,0x68,0x29,0x30,0x49,0x95,0x89,0x74,0xFF,0x99,0x14,0x0A,0xD0,0x99,0x31,0xB2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xFC,0x71,0x7B,0xCA,0xAD,0xD4,0xBD,0x10,0x02,0x97,0x2E,0xFA,0x43,0xB4,0xF6,0x86,0x67,0xF6,0x6B,0xA6,0xBF,0x28,0xEC,0x90,0x27,0x3C,0x16,0x3E,0xA9,0x38,0x98,0xA6,0xF7,0x2D,0x49,0xE2,0x68,0x7B,0x50,0xE0,0x76,0x06,0x7A,0x2E,0x7C,0xF7,0x4E,0x66,0xC8,0x38,0xA8,0x62,0x8D,0xFD,0x29,0x60,0x37,0x7E,0xB0,0x0A,0xDA,0xBF,0xD7,0xDE,0x25,0xFC,0x8E,0x92,0xDA,0xF6,0x9C,0x34,0x76,0xD1,0xE8,0xA2,0xF3,0xB1,0x25,0xFE,0x61,0xB2,0x38,0x6C,0x17,0xE6,0x69,0x2A,0x0F,0x0D,0x54,0x96,0x16,0x4F,0xC3,0xD2,0xA0,0x09,0xDD,0x42,0x8F,0x81,0xB9,0x90,0xEF,0x04,0xDB,0xA0,0xD9,0xA0,0xD3,0x84,0x61,0x85,0xAF,0xFA,0x52,0xFA,0x9A,0x08,0x93,0x12,0x65,0x60,0x97,0x7F,0xE6,0x46,0xC0,0x94,0x26,0x4E,0x9B,0x1F,0x1C,0x5E,0x3C,0x8B,0x75,0x2C,0xD1,0x00,0xA5,0xCA,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x6F,0xB0,0xED,0x3E,0xE8,0x79,0xFD,0x9A,0x3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,0x00,0x27,0x75,0x00,0xF8,0x06,0xE6,0x4E,0xF2,0x93,0x6E,0x8D,0x98,0x83,0x4E,0x16,0x18,0x16,0xBF,0xED,0x2E,0x6A,0x68,0x29,0x30,0x49,0x95,0x89,0x74,0xFF,0x99,0x14,0x0A,0xD0,0x99,0x31,0xB2,0xFC,0x71,0x7B,0xCA,0xAD,0xD4,0xBD,0x10,0x02,0x97,0x2E,0xFA,0x43,0xB4,0xF6,0x86,0x67,0xF6,0x6B,0xA6,0xBF,0x28,0xEC,0x90,0x27,0x3C,0x16,0x3E,0xA9,0x38,0x98,0xA6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
//FF 00 Gen data FF 00
//iser 25 Data7.txt
unsigned char data[]={0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x3C,0x04,0x1E,0x08,0xAD,0x23,0x3F,0x66,0x6A,0xFF,0xD4,0xB2,0xE0,0xAB,0xA9,0x0A,0x20,0x57,0x3A,0x48,0xD7,0x75,0x9B,0x78,0x41,0x62,0x89,0x3C,0xA1,0x23,0x38,0xA2,0xDA,0x05,0xA9,0xA4,0x4F,0x91,0xE2,0x7E,0x31,0x1F,0x93,0x50,0x3D,0x77,0xE2,0x7A,0x2E,0x15,0x9E,0x28,0xA2,0x6D,0x91,0xDC,0x36,0xDF,0x9E,0x18,0x16,0x47,0x99,0xCE,0xA9,0xDB,0x17,0x0C,0xDF,0xCC,0x6E,0xFA,0x41,0x4C,0xB1,0xE6,0x7B,0xEE,0x46,0xD0,0x60,0x01,0xC6,0xF2,0x79,0x13,0x9D,0x34,0xAD,0xC1,0x27,0xD2,0xA6,0x9B,0xCB,0x0A,0x7A,0x55,0xB9,0x5C,0x70,0x53,0x86,0x56,0x74,0xCC,0x11,0x74,0x60,0x86,0x91,0xD2,0x33,0x5B,0x25,0xFA,0xD9,0x42,0x46,0xF6,0x18,0x44,0x1D,0xCC,0x1E,0x5B,0x25,0x6A,0x57,0x29,0x97,0x2C,0xD6,0xEF,0x01,0x04,0xE0,0xAB,0x48,0xCC,0xF6,0x7A,0xBF,0xF6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xCB,0x18,0x2A,0xE8,0x90,0xA8,0x15,0xCC,0xA4,0xB5,0xDD,0x66,0x37,0x90,0x58,0xA0,0x93,0xE8,0x48,0xCC,0x8A,0x16,0x81,0x6A,0x1A,0x53,0xE4,0x7A,0xA7,0xEC,0x47,0xE4,0x35,0x0F,0x5D,0xF8,0x27,0xAB,0x85,0x66,0x62,0xA8,0x9B,0x64,0x1D,0xCD,0xB7,0xE6,0x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x1E,0x08,0xAD,0x23,0x3F,0x66,0x6A,0xFF,0xD4,0xB2,0xE0,0xAB,0xA9,0x0A,0x20,0x57,0x3A,0x48,0xD7,0x75,0x9B,0x78,0x41,0x62,0x89,0x3C,0xA1,0x23,0x38,0xA2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xDA,0x05,0xA9,0xA4,0x4F,0x91,0xE2,0x7E,0x31,0x1F,0x93,0x50,0x3D,0x77,0xE2,0x7A,0x2E,0x15,0x9E,0x28,0xA2,0x6D,0x91,0xDC,0x36,0xDF,0x9E,0x18,0x16,0x47,0x99,0xCE,0xA9,0xDB,0x17,0x0C,0xDF,0xCC,0x6E,0xFA,0x41,0x4C,0xB1,0xE6,0x7B,0xEE,0x46,0xD0,0x60,0x01,0xC6,0xF2,0x79,0x13,0x9D,0x34,0xAD,0xC1,0x27,0xD2,0xA6,0x9B,0xCB,0x0A,0x7A,0x55,0xB9,0x5C,0x70,0x53,0x86,0x56,0x74,0xCC,0x11,0x74,0x60,0x86,0x91,0xD2,0x33,0x5B,0x25,0xFA,0xD9,0x42,0x46,0xF6,0x18,0x44,0x1D,0xCC,0x1E,0x5B,0x25,0x6A,0x57,0x29,0x97,0x2C,0xD6,0xEF,0x01,0x04,0xE0,0xAB,0x48,0xCC,0xF6,0x7A,0xBF,0xF6,0xCB,0x18,0x2A,0xE8,0x90,0xA8,0x15,0xCC,0xA4,0xB5,0xDD,0x66,0x37,0x90,0x58,0xA0,0x93,0xE8,0x48,0xCC,0x8A,0x16,0x81,0x6A,0x1A,0x53,0xE4,0x7A,0xA7,0xEC,0x47,0xE4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x35,0x0F,0x5D,0xF8,0x27,0xAB,0x85,0x66,0x62,0xA8,0x9B,0x64,0x1D,0xCD,0xB7,0xE6,0x61,0x85,0x91,0xE6,0x1C,0xCA,0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0x6A,0xFF,0xD4,0xB2,0xE0,0xAB,0xA9,0x0A,0x20,0x57,0x3A,0x48,0xD7,0x75,0x9B,0x78,0x41,0x62,0x89,0x3C,0xA1,0x23,0x38,0xA2,0xDA,0x05,0xA9,0xA4,0x4F,0x91,0xE2,0x7E,0x31,0x1F,0x93,0x50,0x3D,0x77,0xE2,0x7A,0x2E,0x15,0x9E,0x28,0xA2,0x6D,0x91,0xDC,0x36,0xDF,0x9E,0x18,0x16,0x47,0x99,0xCE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xA9,0xDB,0x17,0x0C,0xDF,0xCC,0x6E,0xFA,0x41,0x4C,0xB1,0xE6,0x7B,0xEE,0x46,0xD0,0x60,0x01,0xC6,0xF2,0x79,0x13,0x9D,0x34,0xAD,0xC1,0x27,0xD2,0xA6,0x9B,0xCB,0x0A,0x7A,0x55,0xB9,0x5C,0x70,0x53,0x86,0x56,0x74,0xCC,0x11,0x74,0x60,0x86,0x91,0xD2,0x33,0x5B,0x25,0xFA,0xD9,0x42,0x46,0xF6,0x18,0x44,0x1D,0xCC,0x1E,0x5B,0x25,0x6A,0x57,0x29,0x97,0x2C,0xD6,0xEF,0x01,0x04,0xE0,0xAB,0x48,0xCC,0xF6,0x7A,0xBF,0xF6,0xCB,0x18,0x2A,0xE8,0x90,0xA8,0x15,0xCC,0xA4,0xB5,0xDD,0x66,0x37,0x90,0x58,0xA0,0x93,0xE8,0x48,0xCC,0x8A,0x16,0x81,0x6A,0x1A,0x53,0xE4,0x7A,0xA7,0xEC,0x47,0xE4,0x35,0x0F,0x5D,0xF8,0x27,0xAB,0x85,0x66,0x62,0xA8,0x9B,0x64,0x1D,0xCD,0xB7,0xE6,0x61,0x85,0x91,0xE6,0x1C,0xCA,0x76,0xC6,0xF0,0xF7,0xF3,0x1A,0x6F,0xB0,0x53,0x2C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x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0x4A,0xFD,0x09,0xA6,0xF2,0x30,0xBE,0x95,0x6C,0x95,0xDC,0x14,0xE0,0x65,0x7D,0x33,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x97,0x58,0x21,0xA6,0x9D,0x2C,0xD6,0xC8,0x5F,0x96,0x50,0x90,0x6F,0x66,0x11,0x06,0x5C,0xC7,0x96,0xC8,0x56,0xB5,0xCA,0x64,0x72,0xF5,0xBB,0xC0,0x10,0x78,0x2A,0xD2,0x0C,0xFD,0x9E,0xAC,0xFF,0x52,0xC6,0x08,0xAE,0xA4,0x2A,0x04,0x5C,0xE9,0x2D,0x76,0x56,0x6D,0xE4,0x16,0x0A,0x24,0xFA,0x12,0x0C,0xE2,0x85,0xA2,0x96,0xA6,0x94,0xF8,0x47,0x89,0xFB,0x12,0xFE,0x4D,0x43,0xD4,0xDF,0x89,0xEA,0xE0,0x56,0x78,0xAA,0x24,0xB6,0x47,0x73,0x6C,0x7E,0x78,0x61,0x64,0x1E,0x67,0x32,0x9C,0x6C,0x5C,0x3D,0xFE,0xB1,0xBB,0xEC,0x16,0xB2,0xC7,0x9F,0xBC,0xB9,0x1B,0x46,0x00,0x07,0x1B,0xCF,0x92,0xCE,0x74,0xDA,0xDE,0x84,0x9F,0x42,0x6A,0xEF,0x2C,0x2F,0xA4,0x56,0xE5,0x77,0x04,0x4E,0x19,0x5F,0x4C,0x30,0x45,0xD6,0x0A,0x9A,0x47,0x4B,0x36,0xEC,0x97,0xE5,0x94,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x09,0x1B,0xD9,0x86,0x90,0x77,0x31,0xE6,0xEC,0x95,0xAD,0x72,0x26,0x5C,0xBD,0x6E,0x3C,0x04,0x1E,0x08,0xAD,0x23,0x3F,0x66,0x6A,0xFF,0xD4,0xB2,0xE0,0xAB,0xA9,0x0A,0x20,0x57,0x3A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30,0xBE,0x95,0x6C,0x95,0xDC,0x14,0xE0,0x65,0x7D,0x33,0x06,0x97,0x58,0x21,0xA6,0x9D,0x2C,0xD6,0xC8,0x5F,0x96,0x50,0x90,0x6F,0x66,0x11,0x06,0x5C,0xC7,0x96,0xC8,0x56,0xB5,0xCA,0x64,0x72,0xF5,0xBB,0xC0,0x10,0x78,0x2A,0xD2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x0C,0xFD,0x9E,0xAC,0xFF,0x52,0xC6,0x08,0xAE,0xA4,0x2A,0x04,0x5C,0xE9,0x2D,0x76,0x56,0x6D,0xE4,0x16,0x0A,0x24,0xFA,0x12,0x0C,0xE2,0x85,0xA2,0x96,0xA6,0x94,0xF8,0x47,0x89,0xFB,0x12,0xFE,0x4D,0x43,0xD4,0xDF,0x89,0xEA,0xE0,0x56,0x78,0xAA,0x24,0xB6,0x47,0x73,0x6C,0x7E,0x78,0x61,0x64,0x1E,0x67,0x32,0x9C,0x6C,0x5C,0x3D,0xFE,0xB1,0xBB,0xEC,0x16,0xB2,0xC7,0x9F,0xBC,0xB9,0x1B,0x46,0x00,0x07,0x1B,0xCF,0x92,0xCE,0x74,0xDA,0xDE,0x84,0x9F,0x42,0x6A,0xEF,0x2C,0x2F,0xA4,0x56,0xE5,0x77,0x04,0x4E,0x19,0x5F,0x4C,0x30,0x45,0xD6,0x0A,0x9A,0x47,0x4B,0x36,0xEC,0x97,0xE5,0x94,0x09,0x1B,0xD9,0x86,0x90,0x77,0x31,0xE6,0xEC,0x95,0xAD,0x72,0x26,0x5C,0xBD,0x6E,0x3C,0x04,0x1E,0x08,0xAD,0x23,0x3F,0x66,0x6A,0xFF,0xD4,0xB2,0xE0,0xAB,0xA9,0x0A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x20,0x57,0x3A,0x48,0xD7,0x75,0x9B,0x78,0x41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3D,0x77,0xE2,0x7A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x2E,0x15,0x9E,0x28,0xA2,0x6D,0x91,0xDC,0x36,0xDF,0x9E,0x18,0x16,0x47,0x99,0xCE,0xA9,0xDB,0x17,0x0C,0xDF,0xCC,0x6E,0xFA,0x41,0x4C,0xB1,0xE6,0x7B,0xEE,0x46,0xD0,0x60,0x01,0xC6,0xF2,0x79,0x13,0x9D,0x34,0xAD,0xC1,0x27,0xD2,0xA6,0x9B,0xCB,0x0A,0x7A,0x55,0xB9,0x5C,0x70,0x53,0x86,0x56,0x74,0xCC,0x11,0x74,0x60,0x86,0x91,0xD2,0x33,0x5B,0x25,0xFA,0xD9,0x42,0x46,0xF6,0x18,0x44,0x1D,0xCC,0x1E,0x5B,0x25,0x6A,0x57,0x29,0x97,0x2C,0xD6,0xEF,0x01,0x04,0xE0,0xAB,0x48,0xCC,0xF6,0x7A,0xBF,0xF6,0xCB,0x18,0x2A,0xE8,0x90,0xA8,0x15,0xCC,0xA4,0xB5,0xDD,0x66,0x37,0x90,0x58,0xA0,0x93,0xE8,0x48,0xCC,0x8A,0x16,0x81,0x6A,0x1A,0x53,0xE4,0x7A,0xA7,0xEC,0x47,0xE4,0x35,0x0F,0x5D,0xF8,0x27,0xAB,0x85,0x66,0x62,0xA8,0x9B,0x64,0x1D,0xCD,0xB7,0xE6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x61,0x85,0x91,0xE6,0x1C,0xCA,0x76,0xC6,0xF0,0xF7,0xF3,0x1A,0x6F,0xB0,0x53,0x2C,0x1E,0x7E,0xFB,0x92,0xED,0x18,0x00,0x72,0xEF,0x3E,0x44,0xE4,0xD3,0x6B,0x70,0x4A,0xFD,0x09,0xA6,0xF2,0x30,0xBE,0x95,0x6C,0x95,0xDC,0x14,0xE0,0x65,0x7D,0x33,0x06,0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0x9E,0x28,0xA2,0x6D,0x91,0xDC,0x36,0xDF,0x9E,0x18,0x16,0x47,0x99,0xCE,0xA9,0xDB,0x17,0x0C,0xDF,0xCC,0x6E,0xFA,0x41,0x4C,0xB1,0xE6,0x7B,0xEE,0x46,0xD0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x60,0x01,0xC6,0xF2,0x79,0x13,0x9D,0x34,0xAD,0xC1,0x27,0xD2,0xA6,0x9B,0xCB,0x0A,0x7A,0x55,0xB9,0x5C,0x70,0x53,0x86,0x56,0x74,0xCC,0x11,0x74,0x60,0x86,0x91,0xD2,0x33,0x5B,0x25,0xFA,0xD9,0x42,0x46,0xF6,0x18,0x44,0x1D,0xCC,0x1E,0x5B,0x25,0x6A,0x57,0x29,0x97,0x2C,0xD6,0xEF,0x01,0x04,0xE0,0xAB,0x48,0xCC,0xF6,0x7A,0xBF,0xF6,0xCB,0x18,0x2A,0xE8,0x90,0xA8,0x15,0xCC,0xA4,0xB5,0xDD,0x66,0x37,0x90,0x58,0xA0,0x93,0xE8,0x48,0xCC,0x8A,0x16,0x81,0x6A,0x1A,0x53,0xE4,0x7A,0xA7,0xEC,0x47,0xE4,0x35,0x0F,0x5D,0xF8,0x27,0xAB,0x85,0x66,0x62,0xA8,0x9B,0x64,0x1D,0xCD,0xB7,0xE6,0x61,0x85,0x91,0xE6,0x1C,0xCA,0x76,0xC6,0xF0,0xF7,0xF3,0x1A,0x6F,0xB0,0x53,0x2C,0x1E,0x7E,0xFB,0x92,0xED,0x18,0x00,0x72,0xEF,0x3E,0x44,0xE4,0xD3,0x6B,0x70,0x4A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xFD,0x09,0xA6,0xF2,0x30,0xBE,0x95,0x6C,0x95,0xDC,0x14,0xE0,0x65,0x7D,0x33,0x06,0x97,0x58,0x21,0xA6,0x9D,0x2C,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C,0x36,0xDF,0x9E,0x18,0x16,0x47,0x99,0xCE,0xA9,0xDB,0x17,0x0C,0xDF,0xCC,0x6E,0xFA,0x41,0x4C,0xB1,0xE6,0x7B,0xEE,0x46,0xD0,0x60,0x01,0xC6,0xF2,0x79,0x13,0x9D,0x34,0xAD,0xC1,0x27,0xD2,0xA6,0x9B,0xCB,0x0A,0x7A,0x55,0xB9,0x5C,0x70,0x53,0x86,0x56,0x74,0xCC,0x11,0x74,0x60,0x86,0x91,0xD2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x33,0x5B,0x25,0xFA,0xD9,0x42,0x46,0xF6,0x18,0x44,0x1D,0xCC,0x1E,0x5B,0x25,0x6A,0x57,0x29,0x97,0x2C,0xD6,0xEF,0x01,0x04,0xE0,0xAB,0x48,0xCC,0xF6,0x7A,0xBF,0xF6,0xCB,0x18,0x2A,0xE8,0x90,0xA8,0x15,0xCC,0xA4,0xB5,0xDD,0x66,0x37,0x90,0x58,0xA0,0x93,0xE8,0x48,0xCC,0x8A,0x16,0x81,0x6A,0x1A,0x53,0xE4,0x7A,0xA7,0xEC,0x47,0xE4,0x35,0x0F,0x5D,0xF8,0x27,0xAB,0x85,0x66,0x62,0xA8,0x9B,0x64,0x1D,0xCD,0xB7,0xE6,0x61,0x85,0x91,0xE6,0x1C,0xCA,0x76,0xC6,0xF0,0xF7,0xF3,0x1A,0x6F,0xB0,0x53,0x2C,0x1E,0x7E,0xFB,0x92,0xED,0x18,0x00,0x72,0xEF,0x3E,0x44,0xE4,0xD3,0x6B,0x70,0x4A,0xFD,0x09,0xA6,0xF2,0x30,0xBE,0x95,0x6C,0x95,0xDC,0x14,0xE0,0x65,0x7D,0x33,0x06,0x97,0x58,0x21,0xA6,0x9D,0x2C,0xD6,0xC8,0x5F,0x96,0x50,0x90,0x6F,0x66,0x11,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x5C,0xC7,0x96,0xC8,0x56,0xB5,0xCA,0x64,0x72,0xF5,0xBB,0xC0,0x10,0x78,0x2A,0xD2,0x0C,0xFD,0x9E,0xAC,0xFF,0x52,0xC6,0x08,0xAE,0xA4,0x2A,0x04,0x5C,0xE9,0x2D,0x76,0x56,0x6D,0xE4,0x16,0x0A,0x24,0xFA,0x12,0x0C,0xE2,0x85,0xA2,0x96,0xA6,0x94,0xF8,0x47,0x89,0xFB,0x12,0xFE,0x4D,0x43,0xD4,0xDF,0x89,0xEA,0xE0,0x56,0x78,0xAA,0x24,0xB6,0x47,0x73,0x6C,0x7E,0x78,0x61,0x64,0x1E,0x67,0x32,0x9C,0x6C,0x5C,0x3D,0xFE,0xB1,0xBB,0xEC,0x16,0xB2,0xC7,0x9F,0xBC,0xB9,0x1B,0x46,0x00,0x07,0x1B,0xCF,0x92,0xCE,0x74,0xDA,0xDE,0x84,0x9F,0x42,0x6A,0xEF,0x2C,0x2F,0xA4,0x56,0xE5,0x77,0x04,0x4E,0x19,0x5F,0x4C,0x30,0x45,0xD6,0x0A,0x9A,0x47,0x4B,0x36,0xEC,0x97,0xE5,0x94,0x09,0x1B,0xD9,0x86,0x90,0x77,0x31,0xE6,0xEC,0x95,0xAD,0x72,0x26,0x5C,0xBD,0x6E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
/***********************************************************************************/
void bbram_write()
{   
    CS=0;
    adf.write(0xB0);//PHY_OFF
    wait_ms(2);
    CS=1;
    
    // Write bbram
    CS=0;
    adf.write(0x19);
    adf.write(0x00);
    adf.write(0x60);
    adf.write(0x00);
    
    adf.write(0x00);    
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    
    adf.write(0x00);
    adf.write(0x33);
    adf.write(0x00);
    adf.write(0xF4);//Frequency Register F9 = 435.802 MHz F4 = 435.800 MHz
    
    adf.write(0xC2);
    adf.write(0x10);
    adf.write(0xC0);    
    adf.write(0x00);
    
    adf.write(0x30);
    adf.write(0x31);
    adf.write(0x07);    
    adf.write(0x00);
        
    adf.write(0x01);
    adf.write(0x00);
    adf.write(0x7F);
    adf.write(0x00);
    
    adf.write(0x0B);
    adf.write(0x37);
    adf.write(0x00);    
    adf.write(0x00);
    
    adf.write(0x40);
    adf.write(0x0C);
    adf.write(0x00);
    adf.write(0x05);
    
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x18);
    adf.write(0x12);
    
    adf.write(0x34);
    adf.write(0x56);
    adf.write(0x10);
    adf.write(0x10);
    
    adf.write(0xC4); // Different
    adf.write(0x14);
    adf.write(0x00);
    adf.write(0x00);
    
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    
    adf.write(0x04);
    adf.write(0x00);
    adf.write(0x00);
    adf.write(0x00);
    
    adf.write(0x00);
    adf.write(0x00);
    CS=1;
    wait(1);
    
}


/******************************************************************************************/

void initiate(void){
    
    CS=0;
    adf.write(0xFF);
    adf.write(0xFF);
    CS=1;
    wait_ms(2);

    CS=0;
    adf.write(0x08);    // TRANSMIT_DATA LENGTH
    adf.write(0x14);
    adf.write(0x2F);
    CS=1;
    wait_ms(2);
    CS=0;
    adf.write(0x08);        // TRANSMIT_DATA LENGTH
    adf.write(0x15);
    adf.write(0x10);
    CS=1;
    wait_ms(2);
    
    CS=0;
    adf.write(0x09);
    adf.write(0x24);   // TX_BASE ADDRESS   0x20(starting Tx Byte)
    adf.write(0x20);
    CS=1;
    wait_ms(2);
    
    CS=0;
    adf.write(0x09);
    adf.write(0x37);// BUFFER SIZE 0xE0=224 Bytes 0x137 is adress of buffer size
    adf.write(0xE0);
    CS=1;
    wait_ms(2);
    
    CS=0;
    adf.write(0x09);
    adf.write(0x36);//BB_Tx_Buffer Signal when Buffer is half filled
    adf.write(0x70);//0x70 = 112 >> When Half buffer interrupt is given
    CS=1;
    wait_ms(2);
    
    
    CS=0;
    adf.write(0x09);
    adf.write(0x39);//BB_Tx_Buffer Signal when Buffer is half filled
    adf.write(0x10);//0x70 = 112 >> When Half buffer interrupt is given
    CS=1;
    wait_ms(2);

    
    
    
    }


void write_data(void){
    cout<<"3"<<ENDL;
    wait_ms(5);
    CS=0;
    adf.write(0x0B);//IRQ_SOURCE_Random write //To read CMD = 2B 36 FF FF
    adf.write(0x36);//Address : 0x336
    adf.write(0xFF);//Put Low
    CS=1;
    wait_us(80);
    CS=0;
    
    
    CS=0;
    k=0;
    
    if(!j){
        adf.write(0x18);
        adf.write(0x20);
        while(k<=223){
          
          adf.write(data[k]);  
          k++;
            }
        
         }       
    
    else if(j<=sizeof(data)/112){
//                if(src == 1){
                if(j%2){  //src==  Buffer Half Full src == 1
                adf.write(0x18);
                adf.write(0x20);
                }
            
//            else if(src==2){
            else{               //src==   Buffer is Full src==2
                adf.write(0x18);
                adf.write(0x90);
                }
            
            
            while(k<=111){
                if(((j+1)*112+k)>=sizeof(data))
                {   
                    ticker.detach();
                    break;
                }
                adf.write(data[(j+1)*112+k]);
                k++;
                        
            }
     }
     j++;
     CS=1;
     wait_us(1);
}     
         
void send_data(void){
        
    CS=0;
    adf.write(0xBB);
    CS=1;
    wait_ms(2); 
    
    CS=0;
    adf.write(0xFF);
    adf.write(0xFF);
    CS=1;
    wait_ms(2); 
    
    write_data();
    
    CS=0;
    adf.write(0xB1);
    CS=1;
    wait_ms(2); 
    
    CS=0;
    adf.write(0xFF);
    adf.write(0xFF);
    CS=1;
    wait_ms(2);  
    
    CS=0;
    adf.write(0xB5);
    CS=1;
    wait_ms(2);  
    
    CS=0;
    adf.write(0xFF);
    adf.write(0xFF);
    CS=1;
    wait_ms(2);
    }
    int x = IRQ;
void check()
    {   
     x = IRQ;
     if(x){
         
         write_data();
         
         }
     } 
        
int main()
{   
    cout<<"in MAin"<<ENDL;
    adf.format(8,0);
    adf.frequency(1000000);
    bbram_write();
    cout<<"bbram written"<<ENDL;
    initiate();
    cout<<"Initiated to Rolling buffer mode"<<ENDL;
    send_data();
    ticker.attach_us(&check,32000);
    while(1)
    {
//        call();
//            led2=!led2;
    }
    
}