sketchbook
|
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) |
#define eeprom_init | ( | ) | do {} while(0) |
#define EUID_LEN 8 |
typedef uint16_t cfg_addr_t |
char _cfg_read | ( | void * | data, |
uint8_t | size, | ||
ConfigID | id | ||
) |
cfg_addr_t cfg_addr | ( | uint8_t * | size, |
ConfigID | id | ||
) |
|
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 | ) |