Table of Contents

Class RxStatusResponse

Namespace
Iot.Device.Mcp25xxx
Assembly
Iot.Device.Mcp25xxx.dll

Response from RX STATUS instruction.

public class RxStatusResponse
Inheritance
RxStatusResponse

Constructors

RxStatusResponse(FilterMatchType, MessageReceivedType, ReceivedMessageType)

Initializes a new instance of the RxStatusResponse class.

public RxStatusResponse(RxStatusResponse.FilterMatchType filterMatch, RxStatusResponse.MessageReceivedType messageTypeReceived, RxStatusResponse.ReceivedMessageType receivedMessage)

Parameters

filterMatch RxStatusResponse.FilterMatchType

Filter match type

messageTypeReceived RxStatusResponse.MessageReceivedType

The extended ID bit is mapped to bit 4. The RTR bit is mapped to bit 3.

receivedMessage RxStatusResponse.ReceivedMessageType

RXxIF (CANINTF) bits are mapped to bits 7 and 6.

RxStatusResponse(byte)

Initializes a new instance of the RxStatusResponse class.

public RxStatusResponse(byte value)

Parameters

value byte

The value that represents the ReceivedMessage, MessageTypeReceived and FilterMatch.

Properties

FilterMatch

Filter match type

public RxStatusResponse.FilterMatchType FilterMatch { get; }

Property Value

RxStatusResponse.FilterMatchType

MessageTypeReceived

The extended ID bit is mapped to bit 4. The RTR bit is mapped to bit 3.

public RxStatusResponse.MessageReceivedType MessageTypeReceived { get; }

Property Value

RxStatusResponse.MessageReceivedType

ReceivedMessage

RXxIF (CANINTF) bits are mapped to bits 7 and 6.

public RxStatusResponse.ReceivedMessageType ReceivedMessage { get; }

Property Value

RxStatusResponse.ReceivedMessageType

Methods

ToByte()

Converts contents to a byte.

public byte ToByte()

Returns

byte

The byte that represent the response contents.