Embedded TCP/IP stack: fnet_cpu_serial_getchar

FNET

fnet_int32_t fnet_cpu_serial_getchar ( fnet_index_t  port_number)

Reads character from the serial port.

Parameters
port_numberSerial port number.
Returns
This function returns:
  • character received by the serial port.
  • FNET_ERR if no character is available.
See also
fnet_cpu_serial_putchar(), fnet_cpu_serial_init()

This function reads character from the serial port defined by port_number.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net