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

can bus buffers

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







can bus buffers
PostPosted: Wed Jul 05, 2006 10:19 am     Reply with quote

I would like to use can bus in this manner: 2 receive buffer RXB0 and RXB1, standard IDs, RXF0 RXF1 and RXF2 RXF3.
Each filter must have different IDs so that the 2 buffers receive different types of messages.
I would like to know how I can set the instructions:

can_set_id(RX0MASK, CAN_MASK_ACCEPT_ALL, CAN_USE_EXTENDED_ID); //set mask 0
can_set_id(RXFILTER0, 0, CAN_USE_EXTENDED_ID); //set filter 0 of mask 0

I would like to know if I need to put in my software the instruction:
can_set_functional_mode(can_fun_op_legacy)
or this instruction is the same of
curfunmode=0 in can_init()

I have read Microchip ECAN datasheet looking for the registres but I can't find what RX0MASK and RXFILTER0 correspond.
Does anybody knows?

Thank You
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