first commit.

This commit is contained in:
DXL
2019-09-24 18:39:43 +08:00
parent e18a916d52
commit 3c73f2c869
9740 changed files with 3269600 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef __NFC_BUS_UART_H__
# define __NFC_BUS_UART_H__
#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <jni.h>
// can't use, he always is null!
typedef void *serial_port;
jint initBuffer(JNIEnv *env, jclass type, jobject send_buffer, jobject recv_buffer);
jint syncLength(JNIEnv *env, jclass type);
jint syncTimeout(JNIEnv *env, jclass type);
int c_open();
int c_close();
int c_flush();
int c_read(uint8_t *pbtRx, const size_t szRx, int timeout);
int c_write(const uint8_t *pbtTx, const size_t szTx, int timeout);
#endif // __NFC_BUS_UART_H__