zongqiang.zhang | 0c6a088 | 2019-08-07 14:48:21 +0800 | [diff] [blame] | 1 | #ifndef _SP_DATA_H_ |
| 2 | #define _SP_DATA_H_ |
| 3 | |
| 4 | #include "sp_config.h" |
| 5 | #include "sp_communicate.h" |
| 6 | |
| 7 | //Á÷Ë®´¦Àí |
| 8 | uint16 sp_prepare_behalf_transdtl(sp_pos_t* pos, sp_card_t* card, sp_transdtl_t* record); |
| 9 | uint16 sp_prepare_below_transdtl(sp_pos_t* pos, sp_card_t* card, sp_transdtl_t* record); |
| 10 | uint16 sp_read_lastrecord(const sp_pos_t* pos, sp_transdtl_t* dtl); |
| 11 | uint16 sp_confirm_record(const sp_pos_t* pos, sp_transdtl_t* dtl); |
| 12 | uint16 sp_query_record(const sp_pos_t* pos, uint8 refno[16], sp_transdtl_t* dtl); |
| 13 | uint16 sp_clear_transdtl(sp_pos_t* pos); |
| 14 | uint16 sp_write_unconfirm_record(sp_pos_t* pos); |
| 15 | |
| 16 | //ϵͳ²ÎÊýÉèÖà |
| 17 | void sp_reset_factory(sp_pos_t* pos); |
| 18 | uint16 sp_load_config(sp_pos_t* pos); |
| 19 | uint16 sp_save_config(sp_pos_t* pos, sp_config_t* config); |
| 20 | uint16 sp_save_deviceno(sp_pos_t* pos, uint8 deviceno); |
| 21 | uint16 sp_save_devphyid(sp_pos_t* pos, uint8 devphyid[4]); |
| 22 | uint16 sp_config_init(sp_pos_t* pos); |
| 23 | uint16 sp_save_login_info(sp_pos_t* pos, uint8 flag, uint8 unit, uint8 offline_maxhour); |
| 24 | uint16 sp_save_heartbeat_info(sp_pos_t* pos, uint8 flag); |
| 25 | |
| 26 | //É豸ÊÖ¶¯²Ù×÷½Ó¿Ú |
| 27 | uint8 sp_confirm_login(sp_protocol_response_t* resp, sp_pos_t* pos); |
| 28 | |
| 29 | #endif |
| 30 | |