simpletext library v0.98 Compact variations of put/get write/read and print/scan for smaller program sizes

- Main Page
- Data Structures
- Files

- File List
- Globals

Functions
serial_open.c File Reference
`#include <stdlib.h>`
`#include <propeller.h>`
`#include "serial.h"`

## Functions
serial * | serial_open (int rxpin, int txpin, int mode, int baudrate)

## Detailed Description

Opens a serial module.

Copyright (c) 2013, Parallax Inc. Written by Steve Denson

## Function Documentation

serial* serial_open | ( | int | rxpin,
|  | int | txpin,
|  | int | mode,
|  | int | baudrate
| ) |  |

Initializes the simple serial terminal. Equivalent to a start function which runs assembly in a cog. If the txpin is < 0 or > 31, the pin will not be set to output.

Parameters

  rxpin | is pin number 0 to 31 for receive input
  txpin | is pin number 0 to 31 for transmit output
  mode | is unused mode field (for FdSerial compatibility)
  baudrate | is frequency of bits ... 115200, 57600, etc...

Returns
  device term pointer for use with other functions.