Skip to content
Version 6.1.0
Contact Us

BACnetStack_RegisterCallbackMSTPFrameHeader

void BACnetStack_RegisterCallbackMSTPFrameHeader(
void (*FPCallbackMSTPFrameHeader)(const uint32_t networkPortInstance, const uint8_t *header, const uint8_t length));

Registers the optional diagnostic callback that reports each valid frame header the stack hears, any destination, never a frame it sent.

The eight header octets are given in wire order, with two quirks: octet 7 is the receiver’s running header CRC (0x55 for every good header), and for a COBS-encoded frame octets 5 and 6 are the length of the decoded NPDU.

See also: CASBACnetStack::FPCallbackMSTPFrameHeader

Parameter Direction Description
FPCallbackMSTPFrameHeader in The function pointer for the CallbackMSTPFrameHeader function, or NULL. See CASBACnetStack::FPCallbackMSTPFrameHeader for more info.

FPCallbackMSTPFrameHeader

Topic: Data link and system callbacks. Declared in CASBACnetStackDLL.h.