Also pls some one help me what the below condition checks
#define TRXEM_SPI_WAIT_DONE() st( while(!(UCB0IFG & UCRXIFG)); )
I'm not that much familiar with MSP430 programming/architecture. So someone pls help so that i can implement the same in AT91SAM7Se without any mistakes