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

Can someone explain to me the purpose of the following code?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
wolfie840ca



Joined: 15 Mar 2018
Posts: 10

View user's profile Send private message Send e-mail

Can someone explain to me the purpose of the following code?
PostPosted: Sun Aug 12, 2018 9:12 pm     Reply with quote

In the 18C242.h file, there is a single define like #define _bif that is used in the following:
Code:

_bif void set_tris_a(int8 value); 
_bif void set_tris_b(int8 value); 
_bif void set_tris_c(int8 value); 
_bif int8 get_tris_a(void); 
_bif int8 get_tris_b(void); 
_bif int8 get_tris_c(void); 
_bif void output_a(int8 value); 
_bif void output_b(int8 value); 
_bif void output_c(int8 value); 
_bif int8 input_a(void); 
_bif int8 input_b(void); 
_bif int8 input_c(void); 
_bif int8 input_change_a(void); 
_bif int8 input_change_b(void); 
_bif int8 input_change_c(void); 
_bif void port_b_pullups(int1 value);   
_bif int1 input(int16 pin);
_bif int1 input_state(int16 pin);
_bif void output_low(int16 pin);
_bif void output_high(int16 pin);
_bif void output_toggle(int16 pin);
_bif void output_bit(int16 pin, int1 level);
_bif void output_float(int16 pin);
_bif void output_drive(int16 pin);

My main question is: What is the purpose of the _bif statement?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 12, 2018 10:24 pm     Reply with quote

See this thread:
https://www.ccsinfo.com/forum/viewtopic.php?t=53350
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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