MIKAI
Library to modify content of a Mykey
srix-flag.h
Go to the documentation of this file.
1 /*
2  * @author Lilz <https://telegram.me/Lilz73>
3  * @copyright 2020-2021 Lilz <https://telegram.me/Lilz73>
4  * @license MIKAI LICENSE
5  *
6  * This file is part of MIKAI.
7  *
8  * MIKAI is free software: you can redistribute it and/or modify
9  * it under the terms of the MIKAI License, as published by
10  * Lilz along with this program and available on "MIKAI Download" Telegram channel
11  * <https://telegram.me/mikaidownload>.
12  *
13  * MIKAI is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY.
15  *
16  * You should have received a copy of the MIKAI License along
17  * with MIKAI.
18  * If not, see <https://telegram.me/mikaidownload>.
19  */
20 
21 #ifndef MIKAI_SRIX_FLAG_H
22 #define MIKAI_SRIX_FLAG_H
23 
24 #include <stdbool.h>
25 #include <stdint.h>
26 
30 typedef struct SrixFlag {
31  uint32_t memory[4];
32 } SrixFlag;
33 
34 #define SRIX_FLAG_INIT (SrixFlag) {{0, 0, 0, 0}}
35 
41 void srixFlagAdd(SrixFlag *flag, uint8_t block);
42 
49 bool srixFlagGet(SrixFlag *flag, uint8_t block);
50 
51 #endif /* MIKAI_SRIX_FLAG_H */
SrixFlag
Struct that represents the modified blocks in a SRIX tag.
Definition: srix-flag.h:30
srixFlagGet
bool srixFlagGet(SrixFlag *flag, uint8_t block)
Get the flag value of a specified block.
srixFlagAdd
void srixFlagAdd(SrixFlag *flag, uint8_t block)
Set the flag value of a specified block to true (modified).
SrixFlag::memory
uint32_t memory[4]
Definition: srix-flag.h:31
SrixFlag
struct SrixFlag SrixFlag
Struct that represents the modified blocks in a SRIX tag.