-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtml.h
30 lines (27 loc) · 1.18 KB
/
tml.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Copyright (c), NXP Semiconductors Caen / France
*
* (C)NXP Semiconductors
* All rights are reserved. Reproduction in whole or in part is
* prohibited without the written consent of the copyright owner.
* NXP reserves the right to make changes without notice at any time.
* NXP makes no warranty, expressed, implied or statutory, including but
* not limited to any implied warranty of merchantability or fitness for any
*particular purpose, or that the use will not infringe any third party patent,
* copyright or trademark. NXP must not be liable for any loss or damage
* arising from its use.
*/
#include <stdio.h>
#ifdef DEBUG
#define PRINT_BUF(x,y,z) {int loop; printf(x); \
for(loop=0;loop<z;loop++) printf("%.2x ", y[loop]); \
printf("\n");}
#else
#define PRINT_BUF(x,y,z)
#endif
int tml_open(int * handle);
void tml_close(int handle);
void tml_reset(int handle);
int tml_send(int handle, char *pBuff, int buffLen);
int tml_receive(int handle, char *pBuff, int buffLen);
int tml_transceive(int handle, char *pTx, int TxLen, char *pRx, int RxLen);