Revolution-FX

Input/Output

Init_SerialPort


Prototype:
  void Init_SerialPort();

Parameters: None


Description: Initializes and configures the serial port. For starting serial communications this must be called first.


Start_SerialPort


Prototype:
  void Start_SerialPort();

Parameters: None


Description: After initializing the serial port, this function must be called next in order to prepare the serial port for communication.



SerialTransmit


Prototype:
  void SerialTransmit(unsigned char value);
Parameter:

value - The value sent to the serial port.

Description: Sends value to the serial port.


SerialReceive


Prototype:
  unsigned char SerialReceive();
Parameter: None

Description: Returns what data is in the serial port.


Stop_SerialPort


Prototype:
  void Stop_SerialPort();
Parameter: None

Description: Deactivates the serial port.


string_input


Prototype:
  int string_input(int x, int y, char string[]);
Parameters:

x - Position along x-axis
y - Position along y-axis
string - Array where the string will be stored

Description: Collects user input and places it into string.



SourceForge.net LogoContact Us | ©2007 Revolution-FX Development Team