How to set Can Object Dictionary entry to greater than 15 bytes

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to set Can Object Dictionary entry to greater than 15 bytes

972 次查看
gregwilson-lind
Contributor II

In the CAN_ODENTRY array the length of the object entry is limited to 4 bits, but strings can be longer than that. Also for something like OD1f50 which points to a buffer that I would like to set to 4K bytes long, how do I set the length.

标签 (1)
0 项奖励
回复
1 回复

804 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Greg Wilson-Lindberg,

    Did you use the CAN on chip drivers?

   This on chip drivers seems just defined the CAN_ODENTRY entrytype_len max to 15.

Even definition is :

      typedef struct _CAN_ODENTRY {
  uint16_t index;
  uint8_t  subindex;
  uint8_t  entrytype_len;
  uint8_t  *val;
}CAN_ODENTRY;

But the high 4 bits already defined as access_type, just lower 4 bit can be used as the length.

This should be defined in the on chip drivers, and can't be modified.

If you want to use larger length, maybe you should write your own lpcopen code.

But I also will help you to contact with other AE, check it whether there has another way.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复