blob: 03c556244e502b66ad37fe06348320a2a4359aa1 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BIOD_TEMPLATE_INFO_H_
#define BIOD_TEMPLATE_INFO_H_
#include <bitset>
#include <cstdint>
struct TemplateInfo {
TemplateInfo(uint32_t version,
uint32_t size,
uint16_t max_templates,
uint16_t num_valid,
uint32_t dirty)
: version(version),
size(size),
max_templates(max_templates),
num_valid(num_valid),
dirty(dirty) {}
uint32_t version = 0; /**< version of the template format */
uint32_t size = 0; /**< max template size in bytes */
uint16_t max_templates = 0; /**< maximum number of fingers/templates */
uint16_t num_valid = 0; /**< number of valid fingers/templates */
std::bitset<32> dirty; /**< bitmap of templates with MCU side changes */
};
#endif // BIOD_TEMPLATE_INFO_H_