cebf746

Dependents:   CEBF746_Master CEBF746_Slave_withTPM CEBF746_Master_New

Revision:
7:29386624a20f
Parent:
6:f1ec76e536ef
Child:
8:da02e9d56be6
--- a/lib_CEBF746.h	Tue Oct 18 05:06:43 2016 +0000
+++ b/lib_CEBF746.h	Tue Oct 18 08:36:19 2016 +0000
@@ -8,6 +8,12 @@
 #define PRINTD_CEBF746(arg1,arg2...)    printf(arg1,##arg2)
 #endif
 
+#define CEBF746_CMD_WAIT()  SPI_WAIT(10000)
+
+#define CEB_BUF_SIZE    16
+#define WRITE_SELF_TEST_DATA    "WriteTestString0"      // 16byte data
+#define READ_SELF_TEST_DATA     "ReadTestString00"      // 16byte data
+
 /* CEBF716_FUNCTION */
 typedef enum {
     FUNC_READ_STATUS = 0x01,                  // read status register
@@ -40,6 +46,7 @@
 
 void cebf746_use_init(void);
 int16_t cebf746_packet_write(CEBF716_FUNCTION cebf746_command, spiDataStr* sendPacketStruct);
+int16_t cebf746_packet_read(CEBF716_FUNCTION cebf746_command, spiDataStr* readPacketStruct);
 void cebf746_print_packet(spiDataStr* in);
 
 #endif /* _CUBE_CEBF746_H_ */