typedef struct {
INT16U gsmCSQ;
}GSMCSQ;
int16u fun(void)
{
GSMCSQ *gsm_CSQ_frame = NULL;
gsm_CSQ_frame -> gsmCSQ = ((((gsm_CSQ_frame -> gsmCSQ & 0xf000) >>12)*10 + ((gsm_CSQ_frame -> gsmCSQ & 0x0f00) >>8))<<8)&0xff00;
gsm_CSQ_frame -> gsmCSQ = __REV16(gsm_CSQ_frame -> gsmCSQ);
}
现在最主要的问题就是不知道__REV16()这个函数是什么作用,求各位大神帮忙解释哈。 |