26#include "./proto/user_config.pb.h"
45#define RX_BUFFER_SIZE UserConfiguration_size
47#define USER_CONFIG_START_ADDRESS 1794
49#define USER_CONFIG_LEN_ADDR 1792
UserConfigStatus UserConfigBytes(uint8_t *buffer, uint16_t *length)
Gets encoded bytes from userconfig.
UserConfigStatus UserConfigClear(void)
Clears the user configuration stored in FRAM.
void UserConfigPrintAny(const UserConfiguration *config)
Prints arbitrary user config over serial.
UserConfigStatus UserConfigSave(const UserConfiguration *config)
Saves the configuration to FRAM.
void UserConfigPrint(void)
Prints the current user configuration over serial.
UserConfigStatus UserConfigLoad(void)
Loads user configuration data from FRAM to RAM.
const UserConfiguration * UserConfigGet(void)
Gets a reference to the loaded user configuration data in RAM.
UserConfigStatus UserConfigLoadBytes(uint8_t *buffer, uint16_t length)
Load user config from bytes.
@ USERCONFIG_ENCODE_ERROR
@ USERCONFIG_DECODE_ERROR
@ USERCONFIG_EMPTY_CONFIG
@ USERCONFIG_INVALID_RESPONSE