Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_AssetFilterStructs.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Mar 17, 2021
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7#pragma once
8
11
12#include <cstdint>
13
17struct __attribute__((__packed__)) asset_filter_runtime_data_t {
23 uint8_t filterId;
24
25 union __attribute__((packed)) {
26 struct __attribute__((packed)) {
27 bool crcCalculated : 1; // Whether the CRC of this filter has been calculated.
28 bool committed : 1; // Whether this filter has been committed.
29 } flags;
30 uint8_t asInt = 0;
31 } flags;
32
43
49 uint32_t crc;
50};
Runtime meta data associated to an asset filter that is not persisted to flash.
Definition: cs_AssetFilterStructs.h:17
uint16_t filterDataSize
The size of the tracking_filter_t, including the buffer, excluding sizeof(runtimedata).
Definition: cs_AssetFilterStructs.h:42
bool crcCalculated
Definition: cs_AssetFilterStructs.h:27
uint8_t filterId
Id of a filter.
Definition: cs_AssetFilterStructs.h:23
uint32_t crc
crc32 of the fields:
Definition: cs_AssetFilterStructs.h:49
bool committed
Definition: cs_AssetFilterStructs.h:28