Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the RxStatusResponse class.
 /// </summary>
 /// <param name="receivedMessage">
 /// RXxIF (CANINTF) bits are mapped to bits 7 and 6.</param>
 /// <param name="messageTypeReceived">
 /// The extended ID bit is mapped to bit 4. The RTR bit is mapped to bit 3.</param>
 /// <param name="filterMatch"></param>
 public RxStatusResponse(
     FilterMatchType filterMatch,
     MessageReceivedType messageTypeReceived,
     ReceivedMessageType receivedMessage)
 {
     FilterMatch         = filterMatch;
     MessageTypeReceived = messageTypeReceived;
     ReceivedMessage     = receivedMessage;
 }
 public void To_Byte(FilterMatchType filterMatch, MessageReceivedType messageTypeReceived, ReceivedMessageType receivedMessage, byte expectedByte)
 {
     Assert.Equal(expectedByte, new RxStatusResponse(filterMatch, messageTypeReceived, receivedMessage).ToByte());
 }