I want to manage nodeguard service of an NMT slave with Node-ID = 1.
Suppose there's an NMT Master that sends an RTR frame with COB-ID = 0x701, the NMT slave receives it and then it sends the response.
I configure a mailbox according to sections 21.11.4 and 21.12.8 of the Technical Reference Manual.
Specifically I set
Dir = 1
UMask = 1 (I want receive only RTR frame with COB-ID = 0x701)
RmtEn = 0 (I don't want that the response message is sent automatically on RTR reception)
therefore when the mailbox receives the RTR frame with COB-ID = 0x701 the bit NewDat is set to 1.
But how can I check that the frame received is an RTR frame and not another type of frame? Is there any bit to test to understand whether the received frame is an RTR frame or not?
Suppose the NMT master incorrectly sends a normal frame (an SDO for instance, or a PDO) with COB-ID = 0x701, the frame is transferred to the mailbox by the message handler anyway?
The Technical Reference Manual often refers to "RTR bit" together with other arbitration and control bits (Identifier + IDE + RTR + DLC), but while I've found Identifier and DLC bits in Interface Registers, I haven't found RTR bit. Where can I find it?