Download 78K0 Debug - Renesas Electronics

Transcript
CubeSuite+ Ver.1.00.00
APPENDIX B USER OPEN INTERFACE
SuoCreateSerialUART
Generates serial interface (UART type).
Caution
This function can only be called in the MakeUserModel function. An error occurs if it is called at any
other timing.
[Syntax]
#include
"suo.h"
int
SuoCreateSerialUART(const char* serialName, const char* pinNameTXD, const char*
pinNameRXD, SuoHandle* handle);
[Argument(s)]
Argument
Description
serialName
Name of the serial
pinNameTXD
Name of the transmit data pin used by the serial
pinNameRXD
Name of the receive data pin used by the serial
handle
Location where the handle of the serial interface is to be stored
[Return value]
Macro
Description
SUO_NOERROR
Normal completion
Error number
Exit with error (abend) (see "B.4.8 Error numbers")
[Description]
- This function is used to generate a serial interface (UART type).
- The generated serial interface is associated with the name specified for serialName. In addition, pins specified as
pinNameTXD and pinNameRXD are also generated.
- If this function is successful, the handle of the generated serial interface can be obtained. The serial interface can
then be controlled by specifying this handle.
The handle can also be obtained by using the SuoGetSerialHandle function.
R20UT0559EJ0100 Rev.1.00
Apr 01, 2011
Page 441 of 493