s7816.h
Go to the documentation of this file.
1 /********************************************************************************************************
2  * @file s7816.h
3  *
4  * @brief This is the header file for TLSR8258
5  *
6  * @author Driver Group
7  * @date May 8, 2018
8  *
9  * @par Copyright (c) 2018, Telink Semiconductor (Shanghai) Co., Ltd.
10  * All rights reserved.
11  *
12  * The information contained herein is confidential property of Telink
13  * Semiconductor (Shanghai) Co., Ltd. and is available under the terms
14  * of Commercial License Agreement between Telink Semiconductor (Shanghai)
15  * Co., Ltd. and the licensee or the terms described here-in. This heading
16  * MUST NOT be removed from this file.
17  *
18  * Licensees are granted free, non-transferable use of the information in this
19  * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
20  * @par History:
21  * 1.initial release(DEC. 26 2018)
22  *
23  * @version A001
24  *
25  *******************************************************************************************************/
26 
27 
28 #ifndef S7816_H_
29 #define S7816_H_
30 
31 #include "gpio.h"
32 
36 typedef enum{
41 
42 typedef enum {
46 
55 extern void s7816_set_clk(unsigned char Div);
56 
63 extern void s7816_set_rx_buf(unsigned short *RecvAddr, unsigned short RecvBufLen);
64 
72 extern void s7816_set_pin(S7816_TRx_PinDef Pin_7816_TRX);
73 
74 
80 extern unsigned char s7816_dma_send(unsigned char *TransAddr);
81 
89 
90 
91 #endif /* S7816_H_ */
92 
93  //end of GP12
175 
176 
void s7816_set_rx_buf(unsigned short *RecvAddr, unsigned short RecvBufLen)
This function is used to set address and size of buffer 7816 module of MCU.
void s7816_set_pin(S7816_TRx_PinDef Pin_7816_TRX)
This function is used to initiate 7816 module of MCU.
Definition: s7816.h:38
void s7816_set_half_duplex(S7816_Half_Duplex_ModeDef mode)
This function is used to transform half duplex mode of 7816.
Definition: s7816.h:37
S7816_Half_Duplex_ModeDef
Definition: s7816.h:42
Definition: s7816.h:43
S7816_TRx_PinDef
Define 7816 TRx pin.
Definition: s7816.h:36
Definition: s7816.h:44
void s7816_set_clk(unsigned char Div)
This function is used to initiate 7816 module of MCU.
Definition: s7816.h:39
unsigned char s7816_dma_send(unsigned char *TransAddr)
This function is used to send data to ID card,after succeeding in getting ATR.