Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] C-code question

2006-03-25 by Robert Adsett

At 10:38 PM 3/25/2006 +0000, heedaf wrote:
>In the following sample code does anyone know what tS8 (tS8 retCode
>= 0;) do/mean?  It is contained in a .h file.
>
>
>tS8
>i2cWrite(tU8  addr,
>          tU8  extraCmd,
>          tU16 extra,
>          tU8* pData,
>          tU16 len)
>{
>   tS8 retCode = 0;

retCode id declared as type tS8 and initialized to 0.  tS8 will defined 
elsewhere At a guess (and only a guess), it's meant to be a mnemonic for 
"type signed 8 bits".  It would probably have been a lot better just to use 
int.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.