comparison gpf/tst/DRV/stack1_Serial.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
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