void xWriteCH375Cmd( UINT8 mCmd ) { TI = 0; TB8 = 1; SBUF = mCmd; while ( TI == 0 ); }
void xWriteCH375Data( UINT8 mData ) { TI = 0; TB8 = 0; SBUF = mData; while ( TI == 0 ); }
UINT8 xReadCH375Data( void ) { while ( RI == 0 ); RI = 0; return( SBUF ); }
這是串口連接時的讀寫函數(shù),一直有些地方不理解,TB8是什么呢,哪兒定義的呢,SBUF又是哪兒定義的呢,麻煩了解的各位解釋下,謝謝了。。。。。