2015-08-23 02:51:10 -04:00
|
|
|
#ifndef _config_h__
|
|
|
|
#define _config_h__
|
|
|
|
|
2015-09-09 21:41:41 -04:00
|
|
|
#define NUM_CHANNELS 4
|
2015-08-23 02:51:10 -04:00
|
|
|
#define SERIAL_NUM_LEN 6
|
|
|
|
struct eeprom_cfg {
|
|
|
|
uint8_t serial[SERIAL_NUM_LEN];
|
|
|
|
uint8_t mode;
|
2015-09-09 21:41:41 -04:00
|
|
|
uint8_t poll_interval[NUM_CHANNELS];
|
2015-10-17 23:18:56 -04:00
|
|
|
uint32_t flags;
|
2015-08-23 02:51:10 -04:00
|
|
|
};
|
|
|
|
|
2017-11-22 09:35:59 -05:00
|
|
|
#define FLAG_GC_FULL_SLIDERS 1
|
|
|
|
#define FLAG_GC_INVERT_TRIGS 2
|
|
|
|
#define FLAG_GC_SLIDERS_AS_BUTTONS 4
|
|
|
|
#define FLAG_DISABLE_ANALOG_TRIGGERS 8
|
2015-10-17 23:18:56 -04:00
|
|
|
|
2015-08-23 02:51:10 -04:00
|
|
|
void eeprom_app_write_defaults(void);
|
|
|
|
void eeprom_app_ready(void);
|
|
|
|
|
|
|
|
unsigned char config_setParam(unsigned char param, const unsigned char *value);
|
|
|
|
unsigned char config_getParam(unsigned char param, unsigned char *value, unsigned char max_len);
|
|
|
|
|
2017-11-22 09:35:59 -05:00
|
|
|
uint8_t config_getSupportedParams(uint8_t *dst);
|
|
|
|
|
2015-08-23 02:51:10 -04:00
|
|
|
#endif
|