Skip to main content
Open topic with navigation CAPL Functions » RS232 CAPL Functions

RS232 CAPL Functions

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

RS232 API

  • RS232Close: Closes a serial port. More info
  • RS232Open: Opens serial port. More info
  • RS232Configure: Configures serial port (everything besides handshake). More info
  • RS232SetHandshake: Configures handshake parameters. More info
  • RS232Send: Sends block of data asynchronously on serial port. More info
  • RS232Receive: Sets receiver buffer for serial port. More info
  • RS232SetSignalLine: Sets signal line on serial port. More info

RS232 API Callback Handlers

  • RS232OnSend: Handler will be called after completion of request issued with RS232Send. More info
  • RS232OnReceive: Handler will be called regularly if data has been received at port. Starts with RS232Receive. More info
  • RS232OnError: Handler will be called if an error has occurred. More info

General Usage

First, open a port, then transmit and receive data, then close it. Example:
byte data[2];
int length = 2;
data[0] = 1;
data[1] = 2;
if ( 1==RS232Open(1) ) write("Port 1 has been opened.");
if ( 1==RS232Send(1,data,length) ) write("Send bytes to port 1.");
if ( 1==RS232Close(1) ) write("Port 1 has been closed.");
Deprecated INI FileRS232 API: Overview