Serial Interfaces
[Communications Interface]


Defines

#define com_send_IFACE_STDIO   com_send_IFACE_SERIAL
 for cross platform compatibilty, IFACE_STDIO resolves to either IFACE_SERIAL or IFACE_SERIAL2 -- whichever interface will output to the terminal -- depending on the platform. This macro aliases the com_send function.
#define com_ioctl_IFACE_STDIO   com_ioctl_IFACE_SERIAL
 for cross platform compatibilty, IFACE_STDIO resolves to either IFACE_SERIAL or IFACE_SERIAL2 -- whichever interface will output to the terminal -- depending on the platform. This macro aliases the com_ioctl function.
#define com_mode_IFACE_STDIO   com_mode_IFACE_SERIAL
 for cross platform compatibilty, IFACE_STDIO resolves to either IFACE_SERIAL or IFACE_SERIAL2 -- whichever interface will output to the terminal -- depending on the platform. This macro aliases the com_mode function.

Functions

uint8_t com_send_IFACE_SERIAL (comBuf *buf)
 transmit the data in buf over UART0.
void com_mode_IFACE_SERIAL (uint8_t mode)
 change the mode of the UART0 interface. Accepted parameters are:
  1. IF_OFF
  2. IF_LISTEN

void com_ioctl_IFACE_SERIAL (uint8_t request,...)
 currently unsupported for the serial interface.
uint8_t com_send_IFACE_SERIAL2 (comBuf *buf)
 transmit the data in buf over UART1.
void com_mode_IFACE_SERIAL2 (uint8_t mode)
 change the mode of the UART1 interface. Accepted parameters are:
  1. IF_OFF
  2. IF_LISTEN

void com_ioctl_IFACE_SERIAL2 (uint8_t request,...)
 currently unsupported for the serial interface.

Detailed Description

The IFACE_SERIAL and IFACE_SERIAL2 interfaces are used to relay data to the terminal and/or any devices which communicate via the UART.

Function Documentation

void com_ioctl_IFACE_SERIAL uint8_t  request,
  ...
 

Parameters:
request ignored.
... ignored.

void com_ioctl_IFACE_SERIAL2 uint8_t  request,
  ...
 

Parameters:
request ignored.
... ignored.

void com_mode_IFACE_SERIAL uint8_t  mode  ) 
 

Parameters:
mode the new mode.

void com_mode_IFACE_SERIAL2 uint8_t  mode  ) 
 

Parameters:
mode the new mode.

uint8_t com_send_IFACE_SERIAL comBuf buf  ) 
 

Parameters:
buf a pointer to the comBuf to transmit.
Returns:
Always returns 0.

uint8_t com_send_IFACE_SERIAL2 comBuf buf  ) 
 

Parameters:
buf a pointer to the comBuf to transmit.
Returns:
Always returns 0.


Generated on Mon Nov 23 06:26:00 2009 for MANTIS by  doxygen 1.4.6