跳转到内容

SCAN_ERR

SCAN_ERR 结构定义

struct SCAN_ERR
{
unsigned char m_ucTxError; // Tx Error Counter Value
unsigned char m_ucRxError; // Rx Error Counter Value
unsigned char m_ucChannel; // Channel Number
};

成员 描述 m_ucTxError Tx 错误计数器值 m_ucRxError Rx 错误计数器值 m_ucChannel 接收到错误帧的通道

示例:

// Error Active Handler which will print error counter values and channel number
void OnError_Active(SCAN_ERR ErrorMsg)
{
Trace( "Tx Error: %d Rx Error: %d Channel: %d",
ErrorMsg.m_ucTxError,
ErrorMsg.m_ucRxError,
ErrorMsg.m_ucChannel );
}

权威来源: BUSMASTER DITA help source scan_err.dita, compiled into BUSMASTER.CHM with the application.