Line No. | Rev | Author | Line |
---|---|---|---|
1 | 32 | kaklik | /********************************************************************* |
2 | * |
||
3 | * Zero Confiruation (Zeroconf) Helper |
||
4 | * Module for Microchip TCP/IP Stack |
||
5 | * |
||
6 | ********************************************************************* |
||
7 | * FileName: ZeroconfHelper.h |
||
8 | * Dependencies: ZeroconfLinkLocal, ZeroconfMulticastDNS |
||
9 | * Processor: PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32 |
||
10 | * Compiler: Microchip C32 v1.05 or higher |
||
11 | * Microchip C30 v3.12 or higher |
||
12 | * Company: Microchip Technology, Inc. |
||
13 | * |
||
14 | * Software License Agreement |
||
15 | * |
||
16 | * Copyright (C) 2009-2010 Microchip Technology Inc. All rights |
||
17 | * reserved. |
||
18 | * |
||
19 | * Microchip licenses to you the right to use, modify, copy, and |
||
20 | * distribute: |
||
21 | * (i) the Software when embedded on a Microchip microcontroller or |
||
22 | * digital signal controller product ("Device") which is |
||
23 | * integrated into Licensee's product; or |
||
24 | * (ii) ONLY the Software driver source files ENC28J60.c, ENC28J60.h, |
||
25 | * ENCX24J600.c and ENCX24J600.h ported to a non-Microchip device |
||
26 | * used in conjunction with a Microchip ethernet controller for |
||
27 | * the sole purpose of interfacing with the ethernet controller. |
||
28 | * |
||
29 | * You should refer to the license agreement accompanying this |
||
30 | * Software for additional information regarding your rights and |
||
31 | * obligations. |
||
32 | * |
||
33 | * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT |
||
34 | * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT |
||
35 | * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
||
36 | * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
||
37 | * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR |
||
38 | * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF |
||
39 | * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS |
||
40 | * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE |
||
41 | * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER |
||
42 | * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT |
||
43 | * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE. |
||
44 | * |
||
45 | * |
||
46 | * Author Date Comment |
||
47 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
48 | * Pradeep Reddy 01 Mar 2009 Initial |
||
49 | * Brad Rex 05 Apr 2010 Updated for MRF24WB0M. |
||
50 | ********************************************************************/ |
||
51 | #ifndef __ZEROCONF_HELPER_H |
||
52 | #define __ZEROCONF_HELPER_H |
||
53 | |||
54 | #include "TCPIP Stack/TCPIP.h" |
||
55 | |||
56 | // Debugging levels |
||
57 | //#define DEBUG_ZCLL y /* Debug Enable for Zeroconf Link-Local Module */ |
||
58 | //#define INFO_ZCLL y |
||
59 | //#define WARN_ZCLL y |
||
60 | |||
61 | // Debugging levels |
||
62 | //#define DEBUG_MDNS y |
||
63 | //#define INFO_MDNS y |
||
64 | //#define WARN_MDNS y |
||
65 | |||
66 | extern BYTE zeroconf_dbg_level; |
||
67 | |||
68 | #if defined(DEBUG_ZCLL) || defined(INFO_ZCLL) || defined(DEBUG_MDNS) || defined(INFO_MDNS) |
||
69 | /* defined(WARN_ZCLL) || defined(WARN_MDNS */ |
||
70 | |||
71 | #define NEED_TO_DEFINE_zeroconf_dbg_msg y |
||
72 | #define ZEROCONF_DBG_MSG_SIZE 256 |
||
73 | |||
74 | extern char zeroconf_dbg_msg[ZEROCONF_DBG_MSG_SIZE]; |
||
75 | |||
76 | #if defined(INFO_ZCLL) |
||
77 | extern void info_zcll_print(char * msg); |
||
78 | #endif |
||
79 | #if defined(DEBUG_ZCLL) |
||
80 | extern void debug_zcll_print(char * msg); |
||
81 | #endif |
||
82 | |||
83 | #if defined(INFO_MDNS) |
||
84 | extern void info_mdns_print(char * msg); |
||
85 | #endif |
||
86 | |||
87 | #if defined(DEBUG_MDNS) |
||
88 | extern void debug_mdns_print(char * msg); |
||
89 | #endif |
||
90 | |||
91 | #endif |
||
92 | |||
93 | #define ZGZC_STARTED_WAITING (1u) |
||
94 | #define ZGZC_KEEP_WAITING (3u) |
||
95 | #define ZGZC_DONE_WAITING (5u) |
||
96 | |||
97 | BYTE zgzc_wait_for(DWORD *pTicksToWait, DWORD *pStartingTickTime, BYTE *pIsStarted); |
||
98 | |||
99 | #endif |
Powered by WebSVN v2.8.3