rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
persistent_configuration.h
Go to the documentation of this file.
1/*
2 * @file persistent_configuration.h
3 *
4 * @date Feb 27, 2020
5 * @author Andrey Belomutskiy, (c) 2012-2020
6 */
7
8#pragma once
9
11
12#include "rusefi/crc.h"
13
14// todo: ChibiOS has pretty similar functionality for persistent container, we probably should reuse it one day?
16 int version{};
17 int size{};
19 uint32_t crc{};
20
21 uint32_t getCrc() {
22 return crc32(&persistentConfiguration, sizeof(persistent_config_s));
23 }
24};