KFile *tag; ///< Tag communication channel
KFile *host; ///< Host communication channel
bool sync; ///< Status flag: true if we find an STX
KFile *tag; ///< Tag communication channel
KFile *host; ///< Host communication channel
bool sync; ///< Status flag: true if we find an STX
uint8_t buf[CONFIG_TAG_MAX_LEN]; ///< Reception buffer
} TagPacket;
void keytag_init(struct TagPacket *pkt, struct KFile *comm, struct KFile *tag);
uint8_t buf[CONFIG_TAG_MAX_LEN]; ///< Reception buffer
} TagPacket;
void keytag_init(struct TagPacket *pkt, struct KFile *comm, struct KFile *tag);