Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > LSB aligned dat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 45051 of 47994
Post > Topic >>

LSB aligned data

by "wongjoekmeu@[EMAIL PROTECTED] " <wongjoekmeu@[EMAIL PROTECTED] > Apr 18, 2008 at 11:07 AM

Hello all,
I have a control software that retrieve data from an ethernet card.
The function that is used to retrieve the data takes a reference to an
unsigned char array whcih it fills for me. The data that I retrieve
are actually 16-bits. So I want to convert them to unsigned short
integers. For instance when I am expecting to retrieve ten 16 bits
data, the function wants me to allocate an unsigned char array of 20
elements to give to the retrieve function. I presume that for instance
array element 0 and 1 represents my first 16 bits value. According to
the manual the data is LSB aligned. I was wondering how I should
calculate the ten array elements of my unsigned short integer array.
Can anyone please help me out ?
RR
 




 4 Posts in Topic:
LSB aligned data
"wongjoekmeu@[EMAIL   2008-04-18 11:07:08 
Re: LSB aligned data
red floyd <no.spam@[EM  2008-04-18 18:57:57 
Re: LSB aligned data
SeanW <sean_woolcock@[  2008-04-18 12:24:14 
Re: LSB aligned data
James Kanze <james.kan  2008-04-18 13:24:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:16:24 CDT 2008.