设定内部计数值


设定内部设定值的命令是count

"set count (counter) (value)"

分别在counter 上输入要设定的内部计数器的名称,在value上输入要设定的值。

内部计数 说明
rx received byte
tx transmitted byte
rf received frame
tf transmitted byte
pe perity error
fe framing error
oe overrun error
be break error
rbo receive buffer overflow
tbo transmit buffer overflow
rfo received frame pointer overflow
tfo transmitted frame pointer overflow
<?php
include "/lib/sd_spc.php";

$sid = 14;
spc_reset();
spc_sync_baud(115200);

spc_request_dev($sid, "set uart 115200N81");

spc_request_dev($sid, "set count rx 0");
spc_request_dev($sid, "set count tx 0");
spc_request_dev($sid, "set count rf 0");
spc_request_dev($sid, "set count tf 0");
spc_request_dev($sid, "set count pe 0");
spc_request_dev($sid, "set count fe 0");
spc_request_dev($sid, "set count oe 0");
spc_request_dev($sid, "set count be 0");
spc_request_dev($sid, "set count rbo 0");
spc_request_dev($sid, "set count tbo 0");
spc_request_dev($sid, "set count rfo 0");
spc_request_dev($sid, "set count tfo 0");
?>