Hi Christian,

I have a problem about mcp251x in socketcan.
I want the chip silent (do not ack can frame, and do not rise irq) at the
beginning, and then shift into normal mode as soon as possible at some time.
How could I achive it ?
What I have tried is configure the chip in listen_only mode and then request
it into normal mode. But when I request mcp251x shift listen_only mode by
 mcp251x_write_reg(spi,CANCTRL, CANCTRL_REQOP_LISTEN_ONLY);
   or
mcp251x_write_bits(spi, CANCTRL_REQOP_LISTEN_ONLY, CANCTRL_REQOP_MASK);
   or
mcp251x_write_bits(spi, CANCTRL_REQOP_LISTEN_ONLY | CANCTRL_ABAT,
CANCTRL_REQOP_MASK | CANCTRL_ABAT);
The chip  got into sleeping mode , if I disable spi irq which the chip used,
it got into sleeping mode too.

Thanks for your work and your help.

Regards
Robert
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to