Mobil_surveillance_system 1
Functions | Variables
UART2.c File Reference

UART2 functions source file. More...

#include "UART2.h"

Go to the source code of this file.

Functions

void UART2_rxHandler (void)
void UART2_txHandler (void)
void UART2_initUART2 (void)
void UART2_primeTransmit (void)
int UART2_read (void)
int UART2_write (char *pcBuffer, unsigned int uiLength)
void UART2_sendChar (void)
tBoolean UART2_isWritingDone (void)
void UART2_setAppendResponseCallbackFunction (tpfUART2AppendResponseCallbackFunction pfCallbackAppendResponse)
void UART2_flushRx (void)
void UART2_flushTx (void)

Variables

tBoolean ge_tbUART2RXITFLAG = 0
 This flag are use to indicate if a character has just sent from the uart2 buffer.
tBoolean ge_tbUART2TXITFLAG = 0
 This flag are use to indicate if a chareacter has just arrived into the uart2 buffer.
tpfUART2AppendResponseCallbackFunction g_pfOnCallbackGPRSAppendResponse
 Function pointer pointed to the GPRS_appendResponse function.
unsigned char g_pcUart2RxBuffer [UART2_RX_BUFFER_SIZE] = {'\0'}
 FIFO buffer for the uart2 rx. All of the character coming form the uart2 will be taken into this buffer temporary.
unsigned int g_uiUart2RxWriteIndex = 0
 Write index variable of the g_pcUart2RxBuffer buffer.
unsigned int g_uiUart2RxReadIndex = 0
 Read index varibale of the g_pcUart2RxBuffer buffer.
unsigned char g_pcUart2TxBuffer [UART2_RX_BUFFER_SIZE] = {'\0'}
unsigned int g_uiUart2TxWriteIndex = 0
 Write index variable for the g_pcUart2TxBuffer buffer.
unsigned int g_uiUart2TxReadIndex = 0
 Read index variable for the g_pcUart2TxBuffer buffer.

Detailed Description

UART2 functions source file.

Definition in file UART2.c.


Function Documentation

void UART2_setAppendResponseCallbackFunction ( tpfUART2AppendResponseCallbackFunction  pfCallbackAppendResponse)
Parameters:
pfCallbackAppendResponse

Definition at line 246 of file UART2.c.

{
    g_pfOnCallbackGPRSAppendResponse = pfCallbackAppendResponse;
}

Variable Documentation

unsigned char g_pcUart2TxBuffer[UART2_RX_BUFFER_SIZE] = {'\0'}

FIFO buffer for the uart2 tx. All of the character willing to send to the uart will be taken into this buffer before sending.

Definition at line 55 of file UART2.c.

This flag are use to indicate if a character has just sent from the uart2 buffer.

This flag inicates if any character has been received .

Definition at line 17 of file UART2.c.

This flag are use to indicate if a chareacter has just arrived into the uart2 buffer.

This flag inicates if any character has been sent.

Definition at line 20 of file UART2.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines