I have bricked one of my ADIS16223 when I was trying out new settings.
Is there a byte sequence I can send to restore the unit back to factory settings?
I am familiar with sending commands like:
#define d_FLASH_CNT 0x00
#define d_CAPT_SUPPLY 0x0A
#define d_CAPT_TEMP 0x0C
#define d_PROD_ID 0x56
#define d_SERIAL_NUM 0x58
#define d_CAPT_PEAKX 0x0E
#define d_CAPT_PEAKY 0x10
#define d_CAPT_PEAKZ 0x12
#define d_CAPT_PNTR 0x1A
#define d_DIAG_STAT 0x3C
I send these using the following
writeCommand[0] = Command; //Command = d_PROD_ID, or d_CAPT_PEAKX or ...
writeCommand[1] = 0x00;
wiringPiSPIDataRW (ce, writeCommand, 2);