mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-18 06:18:31 +00:00
* Now 4a listener invokes upper level callback on Halt and FieldOff * Added new method for drawing mirrored XBM bitmaps * iso14443_4a poller logic enhanced * Function renamed accroding to review suggestions * Rename #2 * Api adjustements * Correct API bump Co-authored-by: あく <alleteam@gmail.com>
33 lines
874 B
C
33 lines
874 B
C
#pragma once
|
|
|
|
#include <toolbox/bit_buffer.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct Iso14443_4Layer Iso14443_4Layer;
|
|
|
|
Iso14443_4Layer* iso14443_4_layer_alloc(void);
|
|
|
|
void iso14443_4_layer_free(Iso14443_4Layer* instance);
|
|
|
|
void iso14443_4_layer_reset(Iso14443_4Layer* instance);
|
|
|
|
void iso14443_4_layer_set_i_block(Iso14443_4Layer* instance, bool chaining, bool CID_present);
|
|
void iso14443_4_layer_set_r_block(Iso14443_4Layer* instance, bool acknowledged, bool CID_present);
|
|
void iso14443_4_layer_set_s_block(Iso14443_4Layer* instance, bool deselect, bool CID_present);
|
|
|
|
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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|