User`s guide

unsigned slta-configlvoid);
This function reads the configuration inputs. Each input corresponds to a bit in
the value returned by
sl ta-conf ig
( ) . All of the configuration inputs are
available for application use. The model PSG/3 DIP switches, described in
Chapter 11, are only valid for the standard SLTA firmware. An application
which uses the software in
PSG . LIB
may allocate these inputs for any purpose.
To set the serial bit rate and other parameters, see the function
s 1 ta-ini t ( 1.
The DIP switches on the PSG/3 return a logic 1 when set to up position, and a
logic 0 when set to the down position. The
BAUDO
input corresponds to the least
significant bit, followed by the
BAUDl, BAUD2, AUTOBAUD,
and the
CFGO
through
CFG3
inputs. The
CFG3
input corresponds to the most significant bit.
MSB
LSB
CFG3 CFG2 CFGl CFGO AUTOBAUD
BAUD2 BAUD1
BAUD0
boolean slta-txrdy(void);
This function returns TRUE if the UART is ready to accept a character to be
transmitted and
FALSE
otherwise.
void slta_putchar(unsigned data);
This function waits until the UART is ready, and then transmits the data
character. If the UART is busy, this can take up to one character time. Since the
UART is buffered, this function can return before the character is actually
transmitted.
void slta-puts(const char *s)
This function waits until the UART is ready and then outputs a null-terminated
string to the UART. Since the UART is buffered, this function can return before
the string is completely transmitted. The terminating NUL is not transmitted.
For other useful string-manipulation functions, see the Neuron C Reference
Guide.
Example:
network input SNVT-str-asc text-message;
when(nv-update-occurs(text_message)) {
slta-puts(text-message.ascii);
slta-puts("\r\nN);
SLTA-10 Adapter User’s Guide
13-9