最近需要使用到280049的CAN mask功能,所以翻看了论坛,然后做了相关测试。
测试1:一个CAN object可以接收多个CAN ID的信息,如CAN object 14可以接收CAN ID 0x120~0x12F的信息
测试结果:成功
// Initialize the receive message object used for receiving CAN messages. // Message Object Parameters: // Message Object ID Number: 14// Message Identifier: 0x123// Message Frame: Standard // Message Type: Receive // Message ID Mask: 0x7F0// Message Object Flags: CAN_MSG_OBJ_USE_ID_FILTER// Message Data Length: 8 Bytes // CAN_setupMessageObject(CANA_BASE, 14, 0x123, CAN_MSG_FRAME_STD, CAN_MSG_OBJ_TYPE_RX, 0x7F0, CAN_MSG_OBJ_USE_ID_FILTER, MSG_DATA_LENGTH);// Initialize the receive message object used for receiving CAN messages.// Message Object Parameters:// Message Object ID Number: 14// Message Identifier: 0x123// Message Frame: Standard// Message Type: Receive// Message ID Mask: 0x0// Message Object Flags: CAN_MSG_OBJ_NO_FLAGS// Message Data Length: 8 Bytes//CAN_setupMessageObject(CANA_BASE, 14, 0x123, CAN_MSG_FRAME_STD, CAN_MSG_OBJ_TYPE_RX, 0, CAN_MSG_OBJ_NO_FLAGS, MSG_DATA_LENGTH);


