本文介绍了如何将LSB转换为MSB以及如何将MSB转换为LSB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助请......

short int wavein [644];

wavein [0] = sizeof(wavein);
wavein [1] = 0;

在这里,我正在通过套接字发送wavein数据....我正在使用鲨鱼监视它的状态为84 02 0000.在这里,我需要将其发送为02 84 00 00.谁能告诉我如何进行移位操作以发送像这种格式的数据02 84(六进制值644为0284)..在这里,我需要将LSB更改为MSB,将MSB更改为LSB .....请回复. .感谢您的宝贵意见.

Help Pls....

short int wavein[644];

wavein[0]=sizeof(wavein);
wavein[1]=0;

here i am sending wavein data through socket....I am monitoring using wire shark it is going as 84 02 00 00. here i need to sent as 02 84 00 00 . can any one pls tell me how to do shift operation to send data like this format 02 84 (hexa value of 644 is 0284)..here i need to change LSB to MSB and MSB to LSB .....Pls reply...Thanks for ur valuable comment

推荐答案



这篇关于如何将LSB转换为MSB以及如何将MSB转换为LSB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 16:39