[Tinyos-help] TOSH_READ_##name##_PIN()

Nashwa Abo Elneel engineer_n2003 at yahoo.com
Mon Feb 11 01:32:44 PST 2008


Hi,

I want to know what is the return of the TOSH_READ_##name##_PIN() command if for example i put the result in a variable

uint16_t tmp;

tmp= TOSH_READ_##name##_PIN()

will the command return be placed in the least significant bit of "tmp" or the return value will be in the position of the port pin number?

i.e if the name assigned is to port B6 for example, then what will be returned from the reading will be placed as follows:

tmp= 0000 0000 0X00 0000, where X  is what read from the port pin
or it will be as :

tmp= 0000 0000 0000 000X, where X  is what read from the port pin

and how to get the result to be put in the LSB?

Thanks

       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080211/156db047/attachment.htm


More information about the Tinyos-help mailing list