on message 0x7A9
{
resp = this;
write("this.id = %x",this.id);//获取报文ID
write("this.name = %s",this.name);//获取报文名字
write("this.can = %d",this.can);//获取当前报文在哪路can上
write("this.dir = %d",this.dir);//获取当前报文是TX还是RX
write("this.dlc = %d",this.dlc);//获取当前报文的报文长度
write("this.dlc = %x",this.Byte(6));//获取当前报文的第一个字节
write("this.dlc = %x",this.QWord(0));//获取当前报文的第一个QWord(8个字节)
}
CAPL获取报文信息
最新推荐文章于 2024-03-20 11:02:38 发布