sci.h File Reference

SCI Routines. More...

Go to the source code of this file.

Enumerations

enum  SCI_PORT { SCIA = 0, SCIB = 1, SCIC = 2 }
 

SCI PORT configuration values.

More...
enum  SCI_STOPBIT { ONE_STOP_BIT = 0, TWO_STOP_BIT = 1 }
 

number of stop bits configuration values

More...
enum  SCI_PARITY { ODD_PARITY = 0, EVEN_PARITY = 1 }
enum  SCI_PARITY_ENABLE { PARITY_DISABLED = 0, PARITY_ENABLED = 1 }
 

Enable/Disable parity configuration values.

More...

Functions

void ConfigureSCI (interruptFCN, SCI_PORT SciPort, Uint32 speed, SCI_STOPBIT StopBit, SCI_PARITY parity, SCI_PARITY_ENABLE SciParityEnable, Uint16 nbit)
void SciFifoInit (volatile struct SCI_REGS *sciRegs)
void InitSCIGpio (SCI_PORT sciPort)
void EnableSCITXInterrupt (SCI_PORT sciPort, interruptFCN, unsigned char fifoLevel)
void DisableSCITXInterrupt (SCI_PORT sciPort)
static void SCIARxPIEAck (void)
static void SCIATxPIEAck (void)
static void SciXmit (volatile struct SCI_REGS *sciRegs, int a)
static void SciMsg (volatile struct SCI_REGS *sciRegs, char *msg)
static void SendDataChar (volatile struct SCI_REGS *sciRegs, volatile char *a)
static void SendDataCharNow (volatile struct SCI_REGS *sciRegs, volatile char *a)
static void SendDataInt (volatile struct SCI_REGS *sciRegs, volatile Uint16 *a)
static void SendDataIntNow (volatile struct SCI_REGS *sciRegs, volatile Uint16 *a)
static void SendDataIQ (volatile struct SCI_REGS *sciRegs, volatile Uint32 *a)
static void SendDataIQNow (volatile struct SCI_REGS *sciRegs, volatile Uint32 *a)
static void SciaXmit (int a)
static void SciaMsg (char *msg)
static void SendDataCharSciA (volatile char *a)
static void SendDataCharSciANow (volatile char *a)
static void SendDataIntSciA (volatile Uint16 *a)
static void SendDataIntSciANow (volatile Uint16 *a)
static void SendDataIQSciA (volatile Uint32 *a)
static void SendDataIQSciANow (volatile Uint32 *a)
static void ScibXmit (int a)
static void ScibMsg (char *msg)
static void SendDataCharSciB (volatile char *a)
static void SendDataCharSciBNow (volatile char *a)
static void SendDataIntSciB (volatile Uint16 *a)
static void SendDataIntSciBNow (volatile Uint16 *a)
static void SendDataIQSciB (volatile Uint32 *a)
static void SendDataIQSciBNow (volatile Uint32 *a)

Detailed Description

SCI Routines.

File Name: sci.h Project: TIMotorLIB

TI Doc: SPRU051B

Author:
Christian Blanco Charro (blancocristian@uniovi.es), Silvia Izquierdo Rosas (silvia.izquierdo.rosas@gmail.com) Pablo Garcia (pgarcia@isa.uniovi.es)
Date:
2010

Definition in file sci.h.


Enumeration Type Documentation

enum SCI_PARITY

Parity configuration values

Todo:
: change this enum to have a new member NONE_PARITY and avoid the next enum (SCI_PARITY_ENABLE)
Enumerator:
ODD_PARITY 

odd parity

EVEN_PARITY 

even parity

Definition at line 63 of file sci.h.

Enable/Disable parity configuration values.

Enumerator:
PARITY_DISABLED 

parity disabled

PARITY_ENABLED 

parity enabled

Definition at line 69 of file sci.h.

enum SCI_PORT

SCI PORT configuration values.

Enumerator:
SCIA 

SCI A.

SCIB 

SCI B.

SCIC 

SCI C.

Definition at line 49 of file sci.h.

number of stop bits configuration values

Enumerator:
ONE_STOP_BIT 

one stop bit

TWO_STOP_BIT 

two stop bits

Definition at line 56 of file sci.h.


Function Documentation

void ConfigureSCI ( interruptFCN  ,
SCI_PORT  SciPort,
Uint32  speed,
SCI_STOPBIT  StopBit,
SCI_PARITY  parity,
SCI_PARITY_ENABLE  SciParityEnable,
Uint16  nbit 
)
Todo:
: Pablo: A variable of VAR_DESC must be declared in this module
void DisableSCITXInterrupt ( SCI_PORT  sciPort  ) 

Definition at line 184 of file sci.c.

void EnableSCITXInterrupt ( SCI_PORT  sciPort,
interruptFCN  ,
unsigned char  fifoLevel 
)
void InitSCIGpio ( SCI_PORT  sciPort  ) 

Definition at line 127 of file sci.c.

static void SciaMsg ( char *  msg  )  [inline, static]

Definition at line 236 of file sci.h.

static void SCIARxPIEAck ( void   )  [inline, static]

Definition at line 127 of file sci.h.

static void SCIATxPIEAck ( void   )  [inline, static]

Definition at line 136 of file sci.h.

static void SciaXmit ( int  a  )  [inline, static]
Deprecated:
: ?? Sends a character through serial port
Todo:
: Interrupt driven code

Definition at line 228 of file sci.h.

static void ScibMsg ( char *  msg  )  [inline, static]

Definition at line 299 of file sci.h.

static void ScibXmit ( int  a  )  [inline, static]
Deprecated:
: ?? Sends a character through serial port
Todo:
: Interrupt driven code

Definition at line 291 of file sci.h.

void SciFifoInit ( volatile struct SCI_REGS *  sciRegs  ) 

Definition at line 101 of file sci.c.

static void SciMsg ( volatile struct SCI_REGS *  sciRegs,
char *  msg 
) [inline, static]

Definition at line 152 of file sci.h.

static void SciXmit ( volatile struct SCI_REGS *  sciRegs,
int  a 
) [inline, static]

Definition at line 144 of file sci.h.

static void SendDataChar ( volatile struct SCI_REGS *  sciRegs,
volatile char *  a 
) [inline, static]

Definition at line 163 of file sci.h.

static void SendDataCharNow ( volatile struct SCI_REGS *  sciRegs,
volatile char *  a 
) [inline, static]

Definition at line 196 of file sci.h.

static void SendDataCharSciA ( volatile char *  a  )  [inline, static]
Todo:
: Interrupt driven code

Definition at line 244 of file sci.h.

static void SendDataCharSciANow ( volatile char *  a  )  [inline, static]

Definition at line 268 of file sci.h.

static void SendDataCharSciB ( volatile char *  a  )  [inline, static]
Todo:
: Interrupt driven code

Definition at line 307 of file sci.h.

static void SendDataCharSciBNow ( volatile char *  a  )  [inline, static]

Definition at line 331 of file sci.h.

static void SendDataInt ( volatile struct SCI_REGS *  sciRegs,
volatile Uint16 *  a 
) [inline, static]

Definition at line 172 of file sci.h.

static void SendDataIntNow ( volatile struct SCI_REGS *  sciRegs,
volatile Uint16 *  a 
) [inline, static]

Definition at line 204 of file sci.h.

static void SendDataIntSciA ( volatile Uint16 *  a  )  [inline, static]
Todo:
: Interrupt driven code

Definition at line 253 of file sci.h.

static void SendDataIntSciANow ( volatile Uint16 *  a  )  [inline, static]

Definition at line 275 of file sci.h.

static void SendDataIntSciB ( volatile Uint16 *  a  )  [inline, static]
Todo:
: Interrupt driven code

Definition at line 316 of file sci.h.

static void SendDataIntSciBNow ( volatile Uint16 *  a  )  [inline, static]

Definition at line 338 of file sci.h.

static void SendDataIQ ( volatile struct SCI_REGS *  sciRegs,
volatile Uint32 *  a 
) [inline, static]

Definition at line 184 of file sci.h.

static void SendDataIQNow ( volatile struct SCI_REGS *  sciRegs,
volatile Uint32 *  a 
) [inline, static]

Definition at line 215 of file sci.h.

static void SendDataIQSciA ( volatile Uint32 *  a  )  [inline, static]
Todo:
: Interrupt driven code

Definition at line 261 of file sci.h.

static void SendDataIQSciANow ( volatile Uint32 *  a  )  [inline, static]

Definition at line 282 of file sci.h.

static void SendDataIQSciB ( volatile Uint32 *  a  )  [inline, static]
Todo:
: Interrupt driven code

Definition at line 324 of file sci.h.

static void SendDataIQSciBNow ( volatile Uint32 *  a  )  [inline, static]

Definition at line 345 of file sci.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Mon Apr 23 12:59:21 2012 for TIMotorLIB by  doxygen 1.6.3