请教一下各位大神:
目前用的DVRRDK_04.00.00.03 dsp是C674 在此DSP上进行数据转换时遇到了问题。
比如 unsigned char a[8] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88};
int *p = (int *)(a+2);
int c = *p;
期望的结果应该是: c = 0x66554433;
实际结果是:c = 0x44332211;
请问出现这种情况是什么缘故?如何解决此类数据转换的问题?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请教一下各位大神:
目前用的DVRRDK_04.00.00.03 dsp是C674 在此DSP上进行数据转换时遇到了问题。
比如 unsigned char a[8] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88};
int *p = (int *)(a+2);
int c = *p;
期望的结果应该是: c = 0x66554433;
实际结果是:c = 0x44332211;
请问出现这种情况是什么缘故?如何解决此类数据转换的问题?
请试试用_mem4能否解决,请参考下面的帖子。
e2echina.ti.com/.../11813
TI 诚邀您参加全新设计的产品页面测试,参加测试即可享有 TI 购物 9 折优惠码,点击加入 EP产品页面测试报名,名额有限。感谢您的参与!