|
Mobil_surveillance_system 1
|
UART2 functions header file. More...
#include <string.h>#include <stdlib.h>#include "msp430f2617.h"#include "Bitmanip.h"#include "FIFO.h"#include "Interrupts.h"Go to the source code of this file.
Defines | |
| #define | UART2_RX_BUFFER_SIZE 16 |
| Size definitions of the used uart receive buffer. | |
| #define | UART2_TX_BUFFER_SIZE 16 |
| Size definitions of the used uart transfer buffer. | |
| #define | DEFINE_TBOOLEAN |
| #define | UART2_TX_BUFFER_USED |
| #define | UART2_TX_BUFFER_FREE (UART2_TX_BUFFER_SIZE - UART2_TX_BUFFER_USED) |
| #define | UART2_TX_BUFFER_EMPTY |
| #define | UART2_TX_BUFFER_FULL |
| #define | UART2_ADVANCE_TX_BUFFER_INDEX(Index) ((Index) = ((Index) + 1) % UART2_TX_BUFFER_SIZE) |
| #define | UART2_RX_BUFFER_USED |
| #define | UART2_RX_BUFFER_FREE (UART2_RX_BUFFER_SIZE - UART2_RX_BUFFER_USED) |
| #define | UART2_RX_BUFFER_EMPTY |
| #define | UART2_RX_BUFFER_FULL |
| #define | UART2_ADVANCE_RX_BUFFER_INDEX(Index) ((Index) = ((Index) + 1) % UART2_RX_BUFFER_SIZE) |
Typedefs | |
| typedef unsigned char | tBoolean |
| typedef void(* | tpfUART2AppendResponseCallbackFunction )(const char *) |
| Callback functions functionpointer declarations. | |
Functions | |
| void | UART2_rxHandler (void) |
| void | UART2_txHandler (void) |
| void | UART2_initUART2 (void) |
| int | UART2_read (void) |
| int | UART2_write (char *pcBuffer, unsigned int uiLength) |
| void | UART2_sendChar (void) |
| tBoolean | UART2_isWritingDone (void) |
| void | UART2_primeTransmit (void) |
| void | UART2_flushRx (void) |
| void | UART2_flushTx (void) |
| void | UART2_setAppendResponseCallbackFunction (tpfUART2AppendResponseCallbackFunction pfCallbackAppendResponse) |
Variables | |
| tBoolean | ge_tbUART2RXITFLAG |
| This flag inicates if any character has been received . | |
| tBoolean | ge_tbUART2TXITFLAG |
| This flag inicates if any character has been sent. | |
UART2 functions header file.
This file contains the functions prototypes related to the UART2 periferia.
Definition in file UART2.h.
| #define UART2_ADVANCE_RX_BUFFER_INDEX | ( | Index | ) | ((Index) = ((Index) + 1) % UART2_RX_BUFFER_SIZE) |
| #define UART2_ADVANCE_TX_BUFFER_INDEX | ( | Index | ) | ((Index) = ((Index) + 1) % UART2_TX_BUFFER_SIZE) |
| #define UART2_RX_BUFFER_EMPTY |
This macro can be used to decide if the rx fifo is free.
| #define UART2_RX_BUFFER_FREE (UART2_RX_BUFFER_SIZE - UART2_RX_BUFFER_USED) |
| #define UART2_RX_BUFFER_FULL |
This macro can de used to decide if the rx fifo is full.
| #define UART2_RX_BUFFER_USED |
This macro can be used to determine the current elements in the rx fifo.
| #define UART2_TX_BUFFER_EMPTY |
This macro can be used to decide if the tx fifo is free.
| #define UART2_TX_BUFFER_FREE (UART2_TX_BUFFER_SIZE - UART2_TX_BUFFER_USED) |
| #define UART2_TX_BUFFER_FULL |
This macro can de used to decide if the tx fifo is full.
| #define UART2_TX_BUFFER_USED |
This macro can be used to determine the current elements in the tx fifo.
| void UART2_setAppendResponseCallbackFunction | ( | tpfUART2AppendResponseCallbackFunction | pfCallbackAppendResponse | ) |
| pfCallbackAppendResponse |
Definition at line 246 of file UART2.c.
{
g_pfOnCallbackGPRSAppendResponse = pfCallbackAppendResponse;
}
1.7.4