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

#include "parse.h"

Go to the source code of this file.

Data Structures

struct  token_num_data
struct  token_num
struct  token_num_pgm

Defines

#define TOKEN_NUM_INITIALIZER(structure, field, numtype)

Typedefs

typedef struct token_num parse_token_num_t
typedef struct token_num_pgm parse_pgm_token_num_t

Enumerations

enum  numtype {
  UINT8 = 0, UINT16, UINT32, INT8,
  INT16, INT32, FLOAT
}

Functions

int8_t parse_num (parse_pgm_token_hdr_t *tk, const char *srcbuf, void *res)
int8_t get_help_num (parse_pgm_token_hdr_t *tk, char *dstbuf, uint8_t size)

Variables

struct token_num_pgm PROGMEM
struct token_ops token_num_ops


Define Documentation

#define TOKEN_NUM_INITIALIZER ( structure,
field,
numtype   ) 

Value:

{                                                          \
        .hdr = {                                           \
                .ops = &token_num_ops,                     \
                .offset = offsetof(structure, field),      \
        },                                                 \
        .num_data = {                                      \
                .type = numtype,                           \
        },                                                 \
}

Definition at line 40 of file parse_num.h.


Typedef Documentation

Definition at line 31 of file parse_num.h.

typedef struct token_num parse_token_num_t

Definition at line 26 of file parse_num.h.


Enumeration Type Documentation

enum numtype

Enumerator:
UINT8 
UINT16 
UINT32 
INT8 
INT16 
INT32 
FLOAT 

Definition at line 6 of file parse_num.h.


Function Documentation

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

Definition at line 423 of file parse_num.c.

References token_num_data::type.

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


Variable Documentation

Definition at line 27 of file parse_num.c.


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