Subversion Repositories Projects

Rev

Rev 450 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 450 Rev 451
Line 6... Line 6...
6
 
6
 
7
/**
7
/**
8
 * The Parser gets values from the Mikrokopter-USART interface
8
 * The Parser gets values from the Mikrokopter-USART interface
9
 *  and parses them into a sRxData-Struct
9
 *  and parses them into a sRxData-Struct
10
 */
10
 */
11
/*
-
 
12
struct sRxData
-
 
13
{
11
 
14
    char *input;
-
 
15
    int decode[150];
-
 
16
    int decLen;
-
 
17
};
-
 
18
*/
-
 
19
class Parser {
12
class Parser {
20
    public:
13
    public:
21
        static void create_frame(char cmd, int address, char * data, unsigned int length);
14
        static void create_frame(char cmd, int address, char * data, unsigned int length);
22
 
15
 
23
        static int decode64(char * data, int len, unsigned char *ptrOut, int offset);
16
        static int decode64(char * data, int len, unsigned char *ptrOut, int offset);