mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
- Keep ccid_callback and buffer as private to the iso7816_handler - set usb ccid callback from iso7816_handler (to ensure the right structure is being passed) - make iso7816 related code independent from furi related code (goal is to make it independently testable) - rename vars Co-authored-by: あく <alleteam@gmail.com>
19 lines
493 B
C
19 lines
493 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "iso7816_atr.h"
|
|
#include "iso7816_t0_apdu.h"
|
|
|
|
typedef struct {
|
|
void (*iso7816_answer_to_reset)(Iso7816Atr* atr);
|
|
void (*iso7816_process_command)(
|
|
const ISO7816_Command_APDU* command,
|
|
ISO7816_Response_APDU* response);
|
|
} Iso7816Handler;
|
|
|
|
Iso7816Handler* iso7816_handler_alloc();
|
|
|
|
void iso7816_handler_free(Iso7816Handler* handler);
|
|
void iso7816_handler_set_usb_ccid_callbacks();
|
|
void iso7816_handler_reset_usb_ccid_callbacks();
|