Tscope5
Functions | Variables
serialport_internal.c File Reference

Definitions of internal serial port functions. More...

Go to the source code of this file.

Functions

void ts5_check_serialport (char *calling_function)
 Do some checks at the start of each serialport function. More...
 
int ts5_check_serialport2 (char *calling_function, char *portname)
 Do some checks at the start of each serialport function. More...
 
void ts5_install_serialport (char *calling_function)
 Install the serialport subsystem. More...
 
void ts5_uninstall_serialport ()
 Uninstall the serialport subsystem. More...
 
void * ts5_serialport_threadfunc ()
 Serial port thread function. More...
 

Variables

int _ts5_is_serialport_installed = 0
 Is the serialport subsystem installed? More...
 

Detailed Description

Definitions of internal serial port functions.

Definition in file serialport_internal.c.

Function Documentation

void ts5_check_serialport ( char *  calling_function)

Do some checks at the start of each serialport function.

Parameters
calling_functionName the function that calls for this check or installation.

Checks whether the serialport subsystem is installed. If not, the serialport subsystem is installed.

Definition at line 40 of file serialport_internal.c.

int ts5_check_serialport2 ( char *  calling_function,
char *  portname 
)

Do some checks at the start of each serialport function.

Parameters
calling_functionName the function that calls for this check or installation.
portnameName of the port.

Checks whether this serial port is already opened. If so, return the port number. If not, open it and return the port number.

Definition at line 60 of file serialport_internal.c.

void ts5_install_serialport ( char *  calling_function)

Install the serialport subsystem.

Parameters
calling_functionName the function that calls for this check or installation.

This function is called automatically if necessary.

Definition at line 182 of file serialport_internal.c.

void ts5_uninstall_serialport ( )

Uninstall the serialport subsystem.

This function is called automatically at the end of the program.

Definition at line 228 of file serialport_internal.c.

void* ts5_serialport_threadfunc ( )

Serial port thread function.

Warning
This is an internal function, no checks are performed.

Definition at line 309 of file serialport_internal.c.

Variable Documentation

int _ts5_is_serialport_installed = 0

Is the serialport subsystem installed?

Definition at line 28 of file serialport_internal.c.