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
Parameters
Section titled “Parameters”| Parameter | Direction | Description |
|---|---|---|
FPCallbackMSTPFrameHeader |
in | The function pointer for the CallbackMSTPFrameHeader function, or NULL. See CASBACnetStack::FPCallbackMSTPFrameHeader for more info. |
Callback type
Section titled “Callback type”Topic: Data link and system callbacks. Declared in CASBACnetStackDLL.h.