We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I have a question around the ST CAN library. There is a function called GetFreeIF with this code:
static u32 GetFreeIF(void) { if ((CAN->sMsgObj[0].CRR & CAN_CRR_BUSY) == 0) return 0; else if ((CAN->sMsgObj[1].CRR & CAN_CRR_BUSY) == 0) return 1; else return 2; }
I donÂ't understand. Why canÂ't I have, for example, 5 receive and 10 send objects? The function is reduced to exist only two send/receive objects.
OK. I think that I have understood how CAN peripheral works in this micro.
Thanks.