SetRING

Availability All terminals
Description Sets the level of the RING line of the USB-VCP and USB-CDC COM-port
Syntax void SetRING( int level );
Arguments
int level
Two values are defined for level:
ON The RING line is made active.
OFF The RING line is made unactive.
Returns None
Remarks SetRTS() has no effect on the USB-CDC driver. Use SetRING() as alternative.
The default state of the RING line is OFF (Note that the default state of RTS is ON)
Example
// The following example demonstrates the use SetRING() on USB-CDC ports

#include <stdio.h>
#include "lib.h"

void main( void )
{
    int key = -1;

    ComOpen( COM8 );     // USB-CDC COM-port

    for(;;)
    {
        printf("\nPress any key");

        ResetKey();

        key = WaitKey();

        SetRING((key == TRIGGER_KEY) ? ON : OFF);

        Idle();
    }
}