thank you again Papabravo,
I set my mask and filter like this:
mcp2510_init();
can_set_mode(CAN_OP_CONFIG); //must be in config mode before params can be set
can_set_baud();
b_rxb0ctrl=0;
b_rxb0ctrl.rxm=CAN_RX_VALID;
b_rxb0ctrl.bukt=CAN_USE_RX_DOUBLE_BUFFER;
mcp2510_write(RXB0CTRL, (int)b_rxb0ctrl);
mcp2510_write(RXB1CTRL, (int)b_rxb0ctrl);
//if you want to configure the TXnRTS pins, do it here. default is off
mcp2510_write(RXM0SIDH, (int)0x07FF);
mcp2510_write(RXM0SIDL, (int)0x07FF);
mcp2510_write(RXM0EIDH, (int)0x07FF);
mcp2510_write(RXM0EIDL, (int)0x07FF);
mcp2510_write(RXF0SIDH, (int)0x07FF);
mcp2510_write(RXF0SIDL, (int)0x07FF);
mcp2510_write(RXF0EIDH, (int)0x07FF);
mcp2510_write(RXF0EIDL, (int)(0x07FF1);
can_set_mode(CAN_OP_NORMAL);//CAN_OP_LOOPBACK
}
but the filters don´t work correct ....