?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{BLAME START}

library

?curdirlinks? -

Blame information for rev 32

Line No. Rev Author Line
1 32 kaklik /******************************************************************************
2  
3 MRF24WB0M Driver Console Messages
4 Module for Microchip TCP/IP Stack
5 -Provides access to MRF24WB0M WiFi controller
6 -Reference: MRF24WB0M Data sheet, IEEE 802.11 Standard
7  
8 *******************************************************************************
9 FileName: WFConsoleMsgs.h
10 Dependencies: TCP/IP Stack header files
11 Processor: PIC18, PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32
12 Compiler: Microchip C32 v1.10b or higher
13 Microchip C30 v3.22 or higher
14 Microchip C18 v3.34 or higher
15 Company: Microchip Technology, Inc.
16  
17 Software License Agreement
18  
19 Copyright (C) 2002-2010 Microchip Technology Inc. All rights reserved.
20  
21 Microchip licenses to you the right to use, modify, copy, and distribute:
22 (i) the Software when embedded on a Microchip microcontroller or digital
23 signal controller product ("Device") which is integrated into
24 Licensee's product; or
25 (ii) ONLY the Software driver source files ENC28J60.c, ENC28J60.h,
26 ENCX24J600.c and ENCX24J600.h ported to a non-Microchip device used in
27 conjunction with a Microchip ethernet controller for the sole purpose
28 of interfacing with the ethernet controller.
29  
30 You should refer to the license agreement accompanying this Software for
31 additional information regarding your rights and obligations.
32  
33 THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
34 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY
35 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
36 NON-INFRINGEMENT. IN NO EVENT SHALL MICROCHIP BE LIABLE FOR ANY INCIDENTAL,
37 SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST
38 OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS BY
39 THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), ANY CLAIMS
40 FOR INDEMNITY OR CONTRIBUTION, OR OTHER SIMILAR COSTS, WHETHER ASSERTED ON
41 THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR
42 OTHERWISE.
43  
44  
45 Author Date Comment
46 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47 KH 27 Jan 2010 Updated for MRF24WB0M
48 ******************************************************************************/
49  
50 #ifndef __WFCONSOLEMSGS_H
51 #define __WFCONSOLEMSGS_H
52  
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56  
57 //----------------------------------------------------------------------------
58 // Defines
59 //----------------------------------------------------------------------------
60  
61 // !!! These defines MUST match the g_consoleCmd structure !!!
62 enum validConsoleCmds
63 {
64 HELP_MSG = 0, // only used by humans
65 GET_WF_VERSION_MSG,
66 RESET_HOST,
67 CLEAR_SCREEN_MSG,
68 IFCONFIG_MSG,
69 IWCONFIG_MSG,
70 IWPRIV_MSG,
71 INVALID_CMD = 0xFF
72 };
73  
74  
75 #define kWFMaxTokensPerCmd (16) /* max tokens, including cmd and parameters */
76 #define kConsoleMaxMsgSize (80)
77 #define kConsoleCmdMaxLen (16) /* max string length of console commands (w/o arguments) */
78 #define kConsoleCmdMaxNum (8) /* max number of registered console commands */
79  
80  
81 //----------------------------------------------------------------------------
82 // Typedefs
83 //----------------------------------------------------------------------------
84  
85 // structure definition to define all ASCII messages
86 typedef struct msg_struct
87 {
88 ROM INT8 *p_cmdName; // pointer to cmd name
89 ROM INT8 *p_cmdHelp; // pointer to cmd help string
90 UINT8 maxTokens; // max tokens for this command
91 } tWFCmd;
92  
93 // parsed version numbers put in this structure
94 typedef struct version_struct
95 {
96 UINT8 major;
97 UINT8 minor;
98 UINT8 revision;
99 } tWFVersion;
100  
101  
102 //----------------------------------------------------------------------------
103 // External Globals
104 //----------------------------------------------------------------------------
105 extern const tWFCmd g_consoleCmd[];
106 extern const UINT8 g_numCmds;
107  
108  
109 //----------------------------------------------------------------------------
110 // Function Prototypes
111 //----------------------------------------------------------------------------
112 void TokenizeCmdLine(INT8 *p_line);
113 UINT8 GetCmdId(void);
114 void Output_Monitor_Hdr(void);
115 BOOL ConvertASCIIHexToBinary(INT8 *p_ascii, UINT16 *p_binary);
116 BOOL ConvertASCIIUnsignedDecimalToBinary(INT8 *p_ascii, UINT16 *p_binary);
117 BOOL ConvertASCIISignedDecimalToBinary(INT8 *p_ascii, INT16 *p_binary);
118 UINT8 HexToBin(UINT8 hexChar);
119 void WFConsoleSetMsgFlag(void);
120  
121  
122  
123 #ifdef __cplusplus
124 }
125 #endif
126  
127  
128 #endif /* __WFCONSOLEMSGS_H */
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3