rusefi/firmware/controllers/algo/persistent_configuration.h

24 lines
437 B
C

/*
* @file persistent_configuration.h
*
* @date Feb 27, 2020
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#pragma once
#include "generated_lookup_engine_configuration.h"
#include "rusefi/crc.h"
typedef struct {
int version;
int size;
persistent_config_s persistentConfiguration;
uint32_t crc;
uint32_t getCrc() {
return crc32(&persistentConfiguration, sizeof(persistent_config_s));
}
} persistent_config_container_s;