aversive_10-03-12/modules/ihm/parse/parse_string.h File Reference

#include "parse.h"

Go to the source code of this file.

Data Structures

struct  token_string_data
struct  token_string
struct  token_string_pgm

Defines

#define STR_TOKEN_SIZE   32
#define TOKEN_STRING_INITIALIZER(structure, field, string)

Typedefs

typedef char fixed_string_t [STR_TOKEN_SIZE]
typedef struct token_string parse_token_string_t
typedef struct token_string_pgm parse_pgm_token_string_t

Functions

int8_t parse_string (parse_pgm_token_hdr_t *tk, const char *srcbuf, void *res)
int8_t complete_get_nb_string (parse_pgm_token_hdr_t *tk)
int8_t complete_get_elt_string (parse_pgm_token_hdr_t *tk, int8_t idx, char *dstbuf, uint8_t size)
int8_t get_help_string (parse_pgm_token_hdr_t *tk, char *dstbuf, uint8_t size)

Variables

struct token_string_pgm PROGMEM
struct token_ops token_string_ops


Define Documentation

#define STR_TOKEN_SIZE   32

Definition at line 7 of file parse_string.h.

Referenced by parse_string().

#define TOKEN_STRING_INITIALIZER ( structure,
field,
string   ) 

Value:

{                                                           \
        .hdr = {                                            \
                .ops = &token_string_ops,                   \
                .offset = offsetof(structure, field),       \
        },                                                  \
        .string_data = {                                    \
                .str = string,                              \
        },                                                  \
}

Definition at line 34 of file parse_string.h.


Typedef Documentation

typedef char fixed_string_t[STR_TOKEN_SIZE]

Definition at line 9 of file parse_string.h.

Definition at line 24 of file parse_string.h.

Definition at line 19 of file parse_string.h.


Function Documentation

int8_t complete_get_elt_string ( parse_pgm_token_hdr_t tk,
int8_t  idx,
char *  dstbuf,
uint8_t  size 
)

Definition at line 119 of file parse_string.c.

References token_string_data::str.

int8_t complete_get_nb_string ( parse_pgm_token_hdr_t tk  ) 

Definition at line 103 of file parse_string.c.

References token_string_data::str.

int8_t get_help_string ( parse_pgm_token_hdr_t tk,
char *  dstbuf,
uint8_t  size 
)

int8_t parse_string ( parse_pgm_token_hdr_t tk,
const char *  srcbuf,
void *  res 
)

Definition at line 45 of file parse_string.c.

References isendoftoken(), token_string_data::str, and STR_TOKEN_SIZE.


Variable Documentation

Definition at line 9 of file parse_string.c.


Generated on Fri Mar 12 06:32:07 2010 for AVR by  doxygen 1.5.6