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 support@ccsinfo.com

rs232 receive_buffer

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



Joined: 18 Nov 2013
Posts: 159

View user's profile Send private message

rs232 receive_buffer
PostPosted: Wed Apr 27, 2022 8:40 am     Reply with quote

I've never used the receive_buffer option in rs232 configuration, and there aren't any examples showing how it's used. So, how does it work, and how would it be useful? I have my own buffer I stuff received byte in, but who puts bytes in the receive_buffer?
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Wed Apr 27, 2022 10:08 am     Reply with quote

Don't use it if you have your own handler. Basically if you select it, the
compiler generates a complete RDA interrupt handler and will add the
code to write data to the buffer in this. Big problem it has is no support for
overflows. If the buffer does overflow all the data in the buffer is lost.
It automatically enables INT_RDA and adds it's own routine for this.
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