Post Go back to editing

ADF4350/ADF4351读取寄存器的值

官方提供的程序:

void ReadFromADF4350(unsigned char count, unsigned char *buf)
{
unsigned char i = 0;
unsigned char j = 0;
unsigned int iTemp = 0;
unsigned char RotateData = 0;

SET_DATA_IN();

delay(1);
CLR_SCL();
CLR_LE();
delay(1);

for(j=count; j>0; j--)
{
for(i=0; i<8; i++)
{
RotateData <<= 1; //Rotate data
delay(1);
iTemp = GP4DAT; //Read DATA of ADF4350
SET_SCL();
if(0x00000020 == (iTemp & 0x00000020))
{
RotateData |= 1;
}
delay(1);
CLR_SCL();
}
*(buf + j - 1)= RotateData;
}
delay(1);
SET_LE();
delay(1);
CLR_LE();
}

现在有个问题,这个函数读取的是哪个寄存器