CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

74165.c Expanded Input Chip
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Apr 16, 2008 8:13 am     Reply with quote

Sorry, I didn't know what you needed as a result.
Since you need int8 then use the struct as shown in my code snip it.
2 chips can return a struct, or int16 and the int16 could be broken down into int8 using make8().
I've even done one where I needed an int16 but the chips were backwards, and I had to do something like make16(make8(varint16,1),make8(varint16,0)) or such. that is making a int16 from the results of the make8().
edhaslam



Joined: 15 Jul 2005
Posts: 89
Location: UK

View user's profile Send private message

PostPosted: Wed Apr 16, 2008 8:35 am     Reply with quote

treitmey wrote:
Sorry, I didn't know what you needed as a result.
Since you need int8 then use the struct as shown in my code snip it.
2 chips can return a struct, or int16 and the int16 could be broken down into int8 using make8().
I've even done one where I needed an int16 but the chips were backwards, and I had to do something like make16(make8(varint16,1),make8(varint16,0)) or such. that is making a int16 from the results of the make8().


Thanks, I'll give that a try.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group