fdserial library
v0.85
Functions for connecting with full duplex serial devices
|
Functions | |
fdserial * | fdserial_open (int rxpin, int txpin, int mode, int baudrate) |
Initializes and starts native assembly driver in a cog. More... | |
void | fdserial_close (fdserial *term) |
Stop stops the cog running the native assembly driver. | |
int | fdserial_txEmpty (fdserial *term) |
Find out if the tx queue is empty. More... | |
int | fdserial_rxCheck (fdserial *term) |
Gets a byte from the receive queue if available function does not block. More... | |
int | fdserial_rxChar (fdserial *term) |
Waits for a byte from the receive queue. blocks until somehting is ready. More... | |
int | fdserial_txChar (fdserial *term, int txbyte) |
Sends a byte on the transmit queue. More... | |
Full Duplex Serial adapter module.
Copyright (c) 2008-2013, Steve Denson See end of file for terms of use.
fdserial* fdserial_open | ( | int | rxpin, |
int | txpin, | ||
int | mode, | ||
int | baudrate | ||
) |
Initializes and starts native assembly driver in a cog.
rxpin | is pin number for receive input |
txpin | is pin number for transmit output |
mode | is interface mode |
baudrate | is frequency of bits ... 115200, 57600, etc... |
int fdserial_rxChar | ( | fdserial * | term) |
Waits for a byte from the receive queue. blocks until somehting is ready.
int fdserial_rxCheck | ( | fdserial * | term) |
Gets a byte from the receive queue if available function does not block.
int fdserial_txChar | ( | fdserial * | term, |
int | txbyte | ||
) |
Sends a byte on the transmit queue.
txbyte | is byte to send. |
int fdserial_txEmpty | ( | fdserial * | term) |
Find out if the tx queue is empty.