Data send process

void halRfSendPacket(INT8U *txBuffer, INT8U size){
halSpiWriteReg(CCxxx0_TXFIFO, size);
halSpiWriteBurstReg(CCxxx0_TXFIFO, txBuffer, size);// write the data which needed to be sent
halSpiStrobe(CCxxx0_STX);//enter into send mode to send data// Wait for GDO0 to be set -> sync transmittedwhile(!GDO0);// Wait for GDO0 to be cleared -> end of packetwhile(GDO0);
halSpiStrobe(CCxxx0_SFTX);}