BACnetStack_RegisterCallbackMSTPTransmitEnable
void BACnetStack_RegisterCallbackMSTPTransmitEnable( void (*FPCallbackMSTPTransmitEnable)(const uint32_t networkPortInstance, const bool enable));Registers the optional callback that switches the RS-485 driver.
It is called with true before a frame is sent and with false after the send callback returns. Without it the host’s send callback handles the driver itself.
See also: CASBACnetStack::FPCallbackMSTPTransmitEnable
Parameters
Section titled “Parameters”| Parameter | Direction | Description |
|---|---|---|
FPCallbackMSTPTransmitEnable |
in | The function pointer for the CallbackMSTPTransmitEnable function, or NULL. See CASBACnetStack::FPCallbackMSTPTransmitEnable for more info. |
Callback type
Section titled “Callback type”Topic: Data link and system callbacks. Declared in CASBACnetStackDLL.h.