sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros | Typedefs | Functions
dev_data.h File Reference
#include <inttypes.h>
#include "dev_config.h"

Go to the source code of this file.

Classes

struct  config_rf12
 
struct  config_euid
 
struct  config_crypto
 
struct  config_owid
 
struct  config_loader
 

Macros

#define EUID_LEN   8
 
#define CFG_DATA(n)   struct config_##n
 
#define cfg_read(n, x)   _cfg_read(&x, sizeof(struct config_##n), CfgID_##n)
 
#define eeprom_init()   do {} while(0)
 

Typedefs

typedef uint16_t cfg_addr_t
 

Functions

char _cfg_read (void *data, uint8_t size, ConfigID id)
 
cfg_addr_t cfg_addr (uint8_t *size, ConfigID id)
 
uint8_t cfg_byte (cfg_addr_t addr)
 
uint8_t cfg_count (cfg_addr_t *addr)
 
uint8_t cfg_type (cfg_addr_t *addr)
 

Macro Definition Documentation

#define CFG_DATA (   n)    struct config_##n
#define cfg_read (   n,
  x 
)    _cfg_read(&x, sizeof(struct config_##n), CfgID_##n)
#define eeprom_init ( )    do {} while(0)
#define EUID_LEN   8

Typedef Documentation

typedef uint16_t cfg_addr_t

Function Documentation

char _cfg_read ( void *  data,
uint8_t  size,
ConfigID  id 
)
cfg_addr_t cfg_addr ( uint8_t *  size,
ConfigID  id 
)
uint8_t cfg_byte ( cfg_addr_t  addr)
inline
uint8_t cfg_count ( cfg_addr_t addr)

enumerate config entries. Zero == no more. Usage: len = cfg_count(&adr); while (len–) typ = cfg_type(&adr);

uint8_t cfg_type ( cfg_addr_t addr)