BACnetStack_RegisterCallbackMSTPMicroseconds
void BACnetStack_RegisterCallbackMSTPMicroseconds(uint32_t (*FPCallbackMSTPMicroseconds)(void));Registers the clock the stack’s MS/TP engine runs on: one monotonic microsecond counter that wraps at 2^32.
The engine subtracts two readings with unsigned arithmetic, so a wrap is harmless, and it keeps its own last reading, so no fraction of a microsecond is lost. The clock must keep running while the send callback blocks. A clock that does not advance freezes every MS/TP timer: the engine never sends anything on the bus (it does not hang either). There is no sleep callback; the engine never waits.
See also: CASBACnetStack::FPCallbackMSTPMicroseconds
Parameters
Section titled “Parameters”| Parameter | Direction | Description |
|---|---|---|
FPCallbackMSTPMicroseconds |
in | The function pointer for the CallbackMSTPMicroseconds function. See CASBACnetStack::FPCallbackMSTPMicroseconds for more info. |
Callback type
Section titled “Callback type”Topic: Data link and system callbacks. Declared in CASBACnetStackDLL.h.