Nspire I/O  2.0
 All Data Structures Files Functions Variables
Functions
uart.c File Reference
#include <os.h>
#include "nspireio2.h"

Functions

BOOL uart_ready (void)
char uart_getc (void)
void uart_getline (char *dest)
void uart_putc (char c)
void uart_puts (const char *str)
void uart_printf (char *format,...)

Detailed Description

Author:
Julian Mackeben aka compu compu.nosp@m.juck.nosp@m.e@goo.nosp@m.glem.nosp@m.ail.c.nosp@m.om
Version:
2.0

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

DESCRIPTION

Alternative functions for serial communication, no clock on the screen.


Function Documentation

char uart_getc ( void  )

Gets a char from RS232.

Returns:
Char
void uart_getline ( char *  dest)

Gets a line (ended with
) from RS232.

Parameters:
destString destination
void uart_printf ( char *  format,
  ... 
)

Puts a formatted string to RS232.

Parameters:
formatFormat string
...Additional arguments
void uart_putc ( char  c)

Puts a char to RS232.

Parameters:
cChar
void uart_puts ( const char *  str)

Puts a string to RS232.

Parameters:
strString
BOOL uart_ready ( void  )

Checks if there is data available at the serial port.

Returns:
TRUE if new data is available.