vPutChar()

解説

tsFILE 構造体の示す出力先(UART)に1バイト出力する。

引数

名前 詳細
tsFILE* psStream 出力先
uint8 u8Char 出力バイト

戻り値

なし

サンプル

#define IS_ASC(c) ((c) >= 0x20 && (c) <= 0x7e)

void cbToCoNet_vRxEvent(tsRxDataApp *pRx) {
    uint8 u8i;
    vfPrintf(&sSerStream, LB"RX(len=%d):[", pRx->u8Len);
    for (i = 0; i < pRx->u8Len; i++) {
        uint8 c = pRx->auData[i];
        vPutChar(&sSerStream, IS_ASC(c) ? c : '.');
    }
}