mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 14:51:52 +03:00
ecabcbc58a
Co-authored-by: Nikita Vostokov <1042932+wosk@users.noreply.github.com>
36 lines
777 B
C
36 lines
777 B
C
#pragma once
|
|
|
|
#include "protocols/iso14443_4a/iso14443_4a.h"
|
|
#include <toolbox/bit_buffer.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct Iso14443_4Layer Iso14443_4Layer;
|
|
|
|
Iso14443_4Layer* iso14443_4_layer_alloc();
|
|
|
|
void iso14443_4_layer_free(Iso14443_4Layer* instance);
|
|
|
|
void iso14443_4_layer_reset(Iso14443_4Layer* instance);
|
|
|
|
void iso14443_4_layer_encode_block(
|
|
Iso14443_4Layer* instance,
|
|
const BitBuffer* input_data,
|
|
BitBuffer* block_data);
|
|
|
|
bool iso14443_4_layer_decode_block(
|
|
Iso14443_4Layer* instance,
|
|
BitBuffer* output_data,
|
|
const BitBuffer* block_data);
|
|
|
|
Iso14443_4aError iso14443_4_layer_decode_block_pwt_ext(
|
|
Iso14443_4Layer* instance,
|
|
BitBuffer* output_data,
|
|
const BitBuffer* block_data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|