made the datalink generic while adding datalink for MS/TP

This commit is contained in:
skarg
2005-06-30 21:31:00 +00:00
parent 2d5264446e
commit ff1dbe83b0
5 changed files with 54 additions and 32 deletions
+8 -1
View File
@@ -44,7 +44,7 @@
#endif
#ifdef BACDL_MSTP
#include "mstp.h"
#include "dlmstp.h"
#endif
#ifdef BACDL_BIP
@@ -57,6 +57,13 @@ int datalink_send_pdu(
uint8_t *pdu, // any data to be sent - may be null
unsigned pdu_len); // number of bytes of data
// returns the number of octets in the PDU, or zero on failure
uint16_t datalink_receive(
BACNET_ADDRESS *src, // source address
uint8_t *pdu, // PDU data
uint16_t max_pdu, // amount of space available in the PDU
unsigned timeout); // number of milliseconds to wait for a packet
void datalink_get_broadcast_address(
BACNET_ADDRESS *dest); // destination address