You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
///@copyright Copyright (c) 2018, 传控科技 All rights reserved.
|
|
|
|
///-------------------------------------------------------------------------
|
|
|
|
/// @file bsp_drv.h
|
|
|
|
/// @brief bsp @ driver config
|
|
|
|
///-------------------------------------------------------------------------
|
|
|
|
/// @version 1.0
|
|
|
|
/// @author CC
|
|
|
|
/// @date 20180331
|
|
|
|
/// @note cc_AS_stc02
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _APP_TASK_RFID_H
|
|
|
|
#define _APP_TASK_RFID_H
|
|
|
|
|
|
|
|
#include "../ctask/task.h"
|
|
|
|
#include "../clib/clib.h"
|
|
|
|
|
|
|
|
typedef struct _s_task_rfid
|
|
|
|
{
|
|
|
|
U32 last_send_time;
|
|
|
|
TS_task task;
|
|
|
|
}S_TASK_RFID;
|
|
|
|
|
|
|
|
#define TPC_RFID_DAT_MAX 32
|
|
|
|
typedef struct _tpc_rfid_
|
|
|
|
{
|
|
|
|
U8 head;
|
|
|
|
U8 type;
|
|
|
|
U8 cmd;
|
|
|
|
U8 num[2];
|
|
|
|
U8 buf[TPC_RFID_DAT_MAX];
|
|
|
|
U8 ocr;
|
|
|
|
U8 tail;
|
|
|
|
}TPC_RFID;
|
|
|
|
|
|
|
|
extern S_TASK_RFID _s_task_rfid;
|
|
|
|
extern void L3_task_rfid_init(void);
|
|
|
|
extern void L3_task_rfid_handler(S_TASK_RFID *s);
|
|
|
|
extern void parse_rfid_pkg();
|
|
|
|
extern void print_rfid_pkg(TPC_RFID *p);
|
|
|
|
|
|
|
|
#endif // #ifndef _APP_TASK_RFID_H
|
|
|
|
|