MCPcopy Create free account
hub / github.com/facebook/time / MsgType

Method MsgType

ptp/protocol/types.go:70–72  ·  view source on GitHub ↗

MsgType extracts MessageType from SdoIDAndMsgType

()

Source from the content-addressed store, hash-verified

68
69// MsgType extracts MessageType from SdoIDAndMsgType
70func (m SdoIDAndMsgType) MsgType() MessageType {
71 return MessageType(m & 0xf) // last 4 bits
72}
73
74// NewSdoIDAndMsgType builds new SdoIDAndMsgType from MessageType and flags
75func NewSdoIDAndMsgType(msgType MessageType, sdoID uint8) SdoIDAndMsgType {

Callers 11

TestSdoIDAndMsgTypeFunction · 0.95
MessageTypeMethod · 0.45
ProbeMsgTypeFunction · 0.45
handleGeneralMessagesMethod · 0.45
TestClientRunFunction · 0.45
handleGrantUnicastMethod · 0.45
handleCancelUnicastMethod · 0.45
handleMsgMethod · 0.45

Calls 1

MessageTypeTypeAlias · 0.85