MIKAI
Library to modify content of a Mykey
Data Structures | Macros | Typedefs | Functions
srix-flag.h File Reference
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  SrixFlag
 Struct that represents the modified blocks in a SRIX tag. More...
 

Macros

#define SRIX_FLAG_INIT   (SrixFlag) {{0, 0, 0, 0}}
 

Typedefs

typedef struct SrixFlag SrixFlag
 Struct that represents the modified blocks in a SRIX tag. More...
 

Functions

void srixFlagAdd (SrixFlag *flag, uint8_t block)
 Set the flag value of a specified block to true (modified). More...
 
bool srixFlagGet (SrixFlag *flag, uint8_t block)
 Get the flag value of a specified block. More...
 

Macro Definition Documentation

◆ SRIX_FLAG_INIT

#define SRIX_FLAG_INIT   (SrixFlag) {{0, 0, 0, 0}}

Definition at line 34 of file srix-flag.h.

Typedef Documentation

◆ SrixFlag

typedef struct SrixFlag SrixFlag

Struct that represents the modified blocks in a SRIX tag.

Function Documentation

◆ srixFlagAdd()

void srixFlagAdd ( SrixFlag flag,
uint8_t  block 
)

Set the flag value of a specified block to true (modified).

Parameters
flagpointer to a SrixFlag instance
blockblock to flag (0-127)

◆ srixFlagGet()

bool srixFlagGet ( SrixFlag flag,
uint8_t  block 
)

Get the flag value of a specified block.

Parameters
flagpointer to a SrixFlag instance
blockblock to get (0-127)
Returns
boolean result