Add tap demo

This commit is contained in:
Edith Boles
2026-03-16 01:58:49 -07:00
parent 2b15239f89
commit 371f458d9a
9 changed files with 231 additions and 86 deletions

View File

@@ -39,7 +39,7 @@ enum message_type {
MTYPE_SAM_CTRL_REPLY = 0xb7,
MTYPE_DESFIRE_READ = 0xb9,
MTYPE_DESFIRE_STATUS = 0xba,
MTYPE_DESFIRE_STATUS_REPLY = 0xbb,
MTYPE_DESFIRE_REMOVED = 0xbb,
MTYPE_DESFIRE_COMMAND = 0xbc,
MTYPE_DESFIRE_COMMAND_REPLY = 0xbd,
MTYPE_UNHANDLED_CARD = 0xbe,
@@ -77,10 +77,11 @@ typedef struct cvend_packet {
const char *stringify_msg_type(uint8_t msg_type);
void print_packet(cvend_packet *packet);
cvend_packet *cvend_read(FILE *file);
void cvend_write(FILE *file, uint8_t msg_type, uint8_t *msg_data,
uint16_t msg_len);
void cvend_init(const char *path);
cvend_packet *cvend_read();
cvend_packet *cvend_read_type(uint8_t msg_type);
void cvend_write(uint8_t msg_type, uint8_t *msg_data, uint16_t msg_len);
void cvend_free(cvend_packet *packet);
void print_packet(cvend_packet *packet);
#endif /* end of include guard: CVEND_H_WNGPTXM7 */

12
inc/nfc.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef NFC_H_3196CYAP
#define NFC_H_3196CYAP
#include <stdint.h>
typedef void (*nfc_cb)(uint8_t status, uint8_t *version, uint16_t version_size,
uint8_t *data, uint16_t data_size);
void nfc_init(const char *path);
void *nfc_handle(void *data);
#endif /* end of include guard: NFC_H_3196CYAP */

8
inc/pm3-lvgl.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef PM3_LVGL_H_QCB6DVLD
#define PM3_LVGL_H_QCB6DVLD
#include <pthread.h>
extern pthread_mutex_t lvgl_mutex;
#endif /* end of include guard: PM3_LVGL_H_QCB6DVLD */