comparison gpf/tst_drv/stack1_Serial.h @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /*=============================================================================
2 * Copyright 1996-2001 Texas Instruments Inc. All rights reserved.
3 */
4 #ifndef STACK1_SERIAL_HEADER
5 #define STACK1_SERIAL_HEADER
6
7 //#include "puf_PrimHdr.h"
8
9 /*=============================================================================
10 * Description:
11 */
12 //typedef struct{
13 // Puf_PrimHdr primHdr;
14 //}Stack1_Serial_RxInd;
15
16 typedef void (*SERIAL_CALLBACK_FUNC)(void);
17
18 /*===========================================================================
19 * Description:
20 * Install the Uart interrupt handlers and initialize the Uart.
21 */
22 int
23 stack1_Serial_PowerUp( SERIAL_CALLBACK_FUNC callback );
24
25 /*===========================================================================
26 * Description:
27 * Copy the data from the Rx buffer into the passed in buffer. If there
28 * aren't dataLen bytes in the Rx buffer all the bytes currently in the rx
29 * buffer are returned.
30 */
31 unsigned long
32 stack1_Serial_receiveData( unsigned char *dataPtr,
33 unsigned long dataLen );
34
35 /*===========================================================================
36 * Description:
37 * Copy the data to be transmitted into the Tx Buffer and enable the Uart Tx
38 * interrupt. If the Tx buffer is full, discard the data and return a buffer
39 * full indication.
40 */
41 int
42 stack1_Serial_sendData( unsigned char *dataPtr,
43 unsigned long dataLen );
44
45 #endif