Defines | |
#define | COM0PROTOCOL RS232 |
#define | COM1PROTOCOL RS232 |
#define | ECHO 1 |
#define | NO_ECHO 0 |
#define | _USE_INTERRUPTS_ |
#define | EIGHT_BIT 0x00 |
#define | NINE_BIT 0x10 |
#define | EVEN_PARITY 0x02 |
#define | ODD_PARITY 0x03 |
#define | NO_PARITY 0 |
Typedefs | |
typedef void(* | SCICallback )(int, void *) |
Functions | |
int | Serial_Initialize (int channel, char mode, long baud) |
char | Ser_Send_Byte (char channel, char sendta) |
char | Ser_Send_String (char channel, char *sendta) |
ssize_t | SCIrx (int port, int count, u8 *buffer) |
char | ser_getch (int port) |
int | ser_getline (int port, char *buffer, int max, int echo) |
int | SCItx_En (int port) |
int | SCItx_Dis (int port) |
|
Define COM Protocols legacy, this may not be needed |
|
Pull data from the a serial fifo. SCIrx pulls up to count bytes from it's fifo and stores them in the array pointed to by buffer. It returns the number of characters successfully pulled from the fifo. The serial port must first be Initialized before it can be read from.
|
|
Disable the Transmitter (Hardware handshaking and 422) Waits for any pending serial transmissions to finish and sets RTS inactive
|
|
Enable the Transmitter (Hardware handshaking and 422) Sets RTS active and inserts a short delay to allow transmitter hardware to turn on if it exists.
|
|
Block until a character is received from a serial port. Blocks until a character is received from an initialized serial port.
|
|
Block until a line is recieved from a serial port Blocks until a line(terminated by a linefeed) is received. The linefeed is then overwritten with a zero to make it a string and placed in the array pointed to by buffer.
|
|
transmit one byte over a serial port. This function transmits a single byte out of a configured serial port. The serial port used must be pre configured bye Serial_Initialize.
|
|
transmit a string over a serial port. This function uses Ser_Send_Byte to transmit a string out of a serial port. This happens in the foreground and blocks until the string is sent.
|
|
Initialize a serial port. This function initiailizes and configures a serial port It must be called at least once before the a serial port is used After that it can be called at any time to change the serial ports configuration. IpacInit calls this once for each port and initializes them to 8BIT 9600 baud.
|