回复 4楼 wp231957
void sd_ocr_response()
{
Uint16 i;
//OCR register is five bytes. Transmit 0xFF 5 times to receive the contents
//of OCR register and store them.
//将读取到的ocr值放入ocr数组,共5个元素//
for(i=0;i<4;i++)
ocr_contents[i] = spixmitbyte(DUMMY_DATA);
//After receiving response clock must be active for 8 clock cycles
EIGHT_CLOCK_CYCLE_DELAY;
}
然后我想将 ocr_contents[i]转成一个由一个char 和一个long int组成的结构体