Nspire I/O  3.0
 All Data Structures Files Functions Pages
Functions
uart.c File Reference
#include <os.h>
#include "nspireio.h"

Functions

BOOL uart_ready (void)
 
char uart_getchar (void)
 
char * uart_gets (char *str)
 
char uart_putchar (char character)
 
int 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
3.0

LICENSE

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

This library 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

DESCRIPTION

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

Function Documentation

char uart_getchar ( void  )

See getchar

Returns
Char
char* uart_gets ( char *  str)

See gets

Returns
Destination
void uart_printf ( char *  format,
  ... 
)

See printf

char uart_putchar ( char  character)

See putchar

int uart_puts ( const char *  str)

See puts

Note
This DOES NOT append a newline (\n) character.
BOOL uart_ready ( void  )

Checks if there is data available at the serial port.

Returns
TRUE if new data is available.