2017-01-05 08:51:47 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
2017-07-14 22:20:34 +08:00
|
|
|
// Low frequency fdx-b tag commands
|
2017-01-05 08:51:47 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
2020-10-12 04:38:52 +08:00
|
|
|
#ifndef CMDLFFDXB_H__
|
|
|
|
#define CMDLFFDXB_H__
|
2019-08-08 22:57:33 +08:00
|
|
|
|
|
|
|
#include "common.h"
|
2017-01-05 22:56:52 +08:00
|
|
|
|
2020-10-12 07:34:48 +08:00
|
|
|
typedef struct {
|
|
|
|
uint16_t code;
|
|
|
|
const char *desc;
|
|
|
|
} fdxbCountryMapping_t;
|
|
|
|
|
2020-10-12 04:38:52 +08:00
|
|
|
int CmdLFFdxB(const char *Cmd);
|
2019-04-12 07:55:25 +08:00
|
|
|
int detectFDXB(uint8_t *dest, size_t *size);
|
2020-10-12 04:38:52 +08:00
|
|
|
int demodFDXB(bool verbose);
|
|
|
|
int getFDXBBits(uint64_t national_code, uint16_t country_code, uint8_t is_animal, uint8_t is_extended, uint32_t extended, uint8_t *bits);
|
2017-07-30 15:17:48 +08:00
|
|
|
|
2017-01-05 08:51:47 +08:00
|
|
|
#endif
|
|
|
|
|