diff src/gpf2/tst/drv/stack1_Serial.h @ 294:cd37d228dae0

src/gpf2/{misc,tst}: import from TCS211 semi-src with CRLF line endings and directory name capitalization cleaned up
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 21 Oct 2017 01:12:15 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/gpf2/tst/drv/stack1_Serial.h	Sat Oct 21 01:12:15 2017 +0000
@@ -0,0 +1,45 @@
+/*=============================================================================
+ *    Copyright 1996-2001 Texas Instruments Inc. All rights reserved.
+ */
+#ifndef STACK1_SERIAL_HEADER
+#define STACK1_SERIAL_HEADER
+
+//#include "puf_PrimHdr.h"
+
+/*=============================================================================
+ * Description:
+ */
+//typedef struct{
+//    Puf_PrimHdr primHdr;
+//}Stack1_Serial_RxInd;
+
+typedef void (*SERIAL_CALLBACK_FUNC)(void);
+
+/*===========================================================================
+ * Description:
+ *   Install the Uart interrupt handlers and initialize the Uart.
+ */
+int
+stack1_Serial_PowerUp( SERIAL_CALLBACK_FUNC callback );
+
+/*===========================================================================
+ * Description:
+ *   Copy the data from the Rx buffer into the passed in buffer. If there
+ *   aren't dataLen bytes in the Rx buffer all the bytes currently in the rx
+ *   buffer are returned.
+ */
+unsigned long
+stack1_Serial_receiveData( unsigned char  *dataPtr,
+                           unsigned long dataLen );
+
+/*===========================================================================
+ * Description:
+ *   Copy the data to be transmitted into the Tx Buffer and enable the Uart Tx
+ *   interrupt. If the Tx buffer is full, discard the data and return a buffer
+ *   full indication.
+ */
+int
+stack1_Serial_sendData( unsigned char  *dataPtr,
+                        unsigned long dataLen );
+
+#endif