Added h_npdu to demo lib and example projects.

This commit is contained in:
skarg
2008-09-07 04:23:44 +00:00
parent 4b2839c3c2
commit 3a0f109d66
9 changed files with 32 additions and 27 deletions
+5
View File
@@ -42,6 +42,11 @@ extern "C" {
BACNET_ADDRESS * dest, BACNET_ADDRESS * dest,
BACNET_CONFIRMED_SERVICE_DATA * service_data); BACNET_CONFIRMED_SERVICE_DATA * service_data);
void npdu_handler(
BACNET_ADDRESS * src, /* source address */
uint8_t * pdu, /* PDU data */
uint16_t pdu_len); /* length PDU */
void handler_who_is( void handler_who_is(
uint8_t * service_request, uint8_t * service_request,
uint16_t service_len, uint16_t service_len,
-5
View File
@@ -91,11 +91,6 @@ extern "C" {
BACNET_ADDRESS * src, BACNET_ADDRESS * src,
BACNET_NPDU_DATA * npdu_data); BACNET_NPDU_DATA * npdu_data);
void npdu_handler(
BACNET_ADDRESS * src, /* source address */
uint8_t * pdu, /* PDU data */
uint16_t pdu_len); /* length PDU */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
+3
View File
@@ -88,6 +88,9 @@
<Unit filename="..\demo\handler\h_whois.c"> <Unit filename="..\demo\handler\h_whois.c">
<Option compilerVar="CC" /> <Option compilerVar="CC" />
</Unit> </Unit>
<Unit filename="..\demo\handler\h_npdu.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\demo\handler\h_wp.c"> <Unit filename="..\demo\handler\h_wp.c">
<Option compilerVar="CC" /> <Option compilerVar="CC" />
</Unit> </Unit>
+1
View File
@@ -59,6 +59,7 @@ DEMOSRC = ai.c \
h_wp.c \ h_wp.c \
device.c \ device.c \
$(BACNET_DEMO)/handler/txbuf.c \ $(BACNET_DEMO)/handler/txbuf.c \
$(BACNET_DEMO)/handler/h_npdu.c \
$(BACNET_DEMO)/handler/h_whois.c \ $(BACNET_DEMO)/handler/h_whois.c \
$(BACNET_DEMO)/handler/h_rd.c \ $(BACNET_DEMO)/handler/h_rd.c \
$(BACNET_DEMO)/handler/h_dcc.c $(BACNET_DEMO)/handler/h_dcc.c
+1
View File
@@ -32,6 +32,7 @@ DEMOSRC = h_rp.c \
av.c \ av.c \
bv.c \ bv.c \
$(BACNET_DEMO)/handler/txbuf.c \ $(BACNET_DEMO)/handler/txbuf.c \
$(BACNET_DEMO)/handler/h_npdu.c \
$(BACNET_DEMO)/handler/noserv.c \ $(BACNET_DEMO)/handler/noserv.c \
h_whois.c \ h_whois.c \
h_wp.c h_wp.c
+1
View File
@@ -30,6 +30,7 @@ DEMOSRC = h_rp.c \
bv.c \ bv.c \
$(BACNET_DEMO)/handler/txbuf.c \ $(BACNET_DEMO)/handler/txbuf.c \
$(BACNET_DEMO)/handler/noserv.c \ $(BACNET_DEMO)/handler/noserv.c \
$(BACNET_DEMO)/handler/h_npdu.c \
$(BACNET_DEMO)/handler/h_whois.c \ $(BACNET_DEMO)/handler/h_whois.c \
h_wp.c h_wp.c
+1
View File
@@ -37,6 +37,7 @@ SRCS = main.c \
..\..\mstp.c \ ..\..\mstp.c \
..\..\crc.c \ ..\..\crc.c \
..\..\demo\handler\h_iam.c \ ..\..\demo\handler\h_iam.c \
..\..\demo\handler\h_npdu.c \
..\..\demo\handler\h_whois.c \ ..\..\demo\handler\h_whois.c \
..\..\demo\handler\h_wp.c \ ..\..\demo\handler\h_wp.c \
..\..\demo\handler\h_rp.c \ ..\..\demo\handler\h_rp.c \
@@ -233,6 +233,10 @@ SOURCE=..\..\..\demo\handler\h_whois.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\..\..\demo\handler\h_npdu.c
# End Source File
# Begin Source File
SOURCE=..\..\..\demo\handler\h_wp.c SOURCE=..\..\..\demo\handler\h_wp.c
# End Source File # End Source File
# Begin Source File # Begin Source File
-6
View File
@@ -40,12 +40,6 @@
#include "bits.h" #include "bits.h"
#include "npdu.h" #include "npdu.h"
#include "apdu.h" #include "apdu.h"
#define DEBUG_ENABLED 0
#include "debug.h"
#if PRINT_ENABLED
#include <stdio.h>
#endif
void npdu_copy_data( void npdu_copy_data(
BACNET_NPDU_DATA * dest, BACNET_NPDU_DATA * dest,