#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 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 struct token_num_pgm parse_pgm_token_num_t |
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.
enum numtype |
int8_t get_help_num | ( | parse_pgm_token_hdr_t * | tk, | |
char * | dstbuf, | |||
uint8_t | size | |||
) |
int8_t parse_num | ( | parse_pgm_token_hdr_t * | tk, | |
const char * | srcbuf, | |||
void * | res | |||
) |
Definition at line 88 of file parse_num.c.
References BIN, BIN_OK, debug_printf, DEC_NEG, DEC_NEG_OK, DEC_POS_OK, ERROR, FLOAT, FLOAT_NEG, FLOAT_NEG_OK, FLOAT_POS, FLOAT_POS_OK, HEX, HEX_OK, INT16, INT32, INT8, isendoftoken(), OCTAL_OK, S08_MAX, S16_MAX, S32_MAX, START, token_num_data::type, U08_MAX, U16_MAX, UINT16, UINT32, UINT8, and ZERO_OK.
struct token_num_pgm PROGMEM |
struct token_ops token_num_ops |
Definition at line 27 of file parse_num.c.