?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 MRF24W10C Driver Console messages
4 Module for Microchip TCP/IP Stack
5 -Provides access to MRF24W10C WiFi controller
6 -Reference: MRF24W10C Data sheet, IEEE 802.11 Standard
7  
8 *******************************************************************************
9 FileName: WFConsoleMsgHandler.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 Created for MRF24WB0M
48 ******************************************************************************/
49  
50 #ifndef __WFCONSOLEVT100_H
51 #define __WFCONSOLEVT100_H
52  
53  
54 #include "TCPIP Stack/WFConsoleMsgs.h"
55  
56 #if defined (WF_CONSOLE)
57 typedef struct
58 {
59 INT8 rxBuf[kConsoleMaxMsgSize]; // buf for received characters
60 INT8 txBuf[kConsoleMaxMsgSize]; // buf for transmitted characters
61 UINT8 rxState; // current state of Rx state machine
62 UINT8 cursorIndex; // cursor index
63 BOOL firstChar; // false if waiting for very first character from user or PC
64 BOOL echoOn; // true if human input at console, false if PC communicating
65  
66 INT8 p_cmdStrings[kConsoleCmdMaxNum][kConsoleCmdMaxLen]; // cmd string array
67 UINT8 numCmdStrings; // number of cmd strings in p_cmdStrings
68  
69 UINT8 appConsoleMsgRx; // true if app received a console msg, else false
70  
71 #if defined( __18CXX )
72 FAR INT8* argv[kWFMaxTokensPerCmd]; // pointer to each token in the rxBuf
73 #else
74 INT8* argv[kWFMaxTokensPerCmd]; // pointer to each token in the rxBuf
75 #endif
76  
77 UINT8 argc; // number of tokens in rxBuf
78 UINT8 subState;
79 BOOL bStateMachineLoop;
80 UINT8 req;
81 } tConsoleContext;
82 #endif
83  
84 #define SET_ECHO_ON() g_ConsoleContext.echoOn = TRUE
85 #define SET_ECHO_OFF() g_ConsoleContext.echoOn = FALSE
86 #define IS_ECHO_ON() g_ConsoleContext.echoOn
87  
88  
89 /*---------------------*/
90 /* Function Prototypes */
91 /*---------------------*/
92 BOOL convertAsciiToHexInPlace(INT8 *p_string, UINT8 expectedHexBinSize);
93  
94 void process_cmd(void);
95  
96 #endif /* __WFCONSOLEVT100_H */
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3