如下程序,在函数声明时有个INT8U *buffer指针,但在使用时buffer却没带星号,buffer = SpiTxRxByte(0);为什么不带星号啊?
void halSpiReadBurstReg(INT8U addr, INT8U *buffer, INT8U count) { INT8U i,temp; temp = addr | READ_BURST; //写入要读的配置寄存器地址和读命令 CSN_0; while (GDO0); SpiTxRxByte(temp); for (i = 0; i < count; i++) { buffer = SpiTxRxByte(0); } CSN_1; } |