Miche Guest
|
can bus buffers |
Posted: Wed Jul 05, 2006 10:19 am |
|
|
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 |
|