Tscope5
Functions | Variables
parport_internal.c File Reference

Definitions of internal parallel port functions. More...

Go to the source code of this file.

Functions

void ts5_check_parport (char *calling_function)
 Do some checks at the start of each parport function. More...
 
void ts5_check_parport2 (char *calling_function)
 Do some checks at the start of each parport function. More...
 
void ts5_install_parport (char *calling_function)
 Install the parport subsystem. More...
 
void ts5_uninstall_parport ()
 Uninstall the parport subsystem. More...
 
void ts5_set_parport_trigger_input (char *calling_function, int device)
 Set the DATA register of the parallel port to input mode. More...
 
void ts5_set_parport_trigger_output (char *calling_function, int device)
 Set the DATA register of the parallel port to output mode. More...
 
void * ts5_parport_threadfunc ()
 Parallel port thread function. More...
 

Variables

int _ts5_is_parport_installed = 0
 Is the parport subsystem installed? More...
 

Detailed Description

Definitions of internal parallel port functions.

Definition in file parport_internal.c.

Function Documentation

void ts5_check_parport ( char *  calling_function)

Do some checks at the start of each parport function.

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

Checks whether Tscope5 is installed. If not, Tscope5 is installed. Then checks whether the parport subsystem is installed. If so, aborts with an error message.

Definition at line 46 of file parport_internal.c.

void ts5_check_parport2 ( char *  calling_function)

Do some checks at the start of each parport function.

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

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

Definition at line 73 of file parport_internal.c.

void ts5_install_parport ( char *  calling_function)

Install the parport subsystem.

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

This function is called automatically if necessary.

Definition at line 91 of file parport_internal.c.

void ts5_uninstall_parport ( )

Uninstall the parport subsystem.

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

Definition at line 265 of file parport_internal.c.

void ts5_set_parport_trigger_input ( char *  calling_function,
int  device 
)

Set the DATA register of the parallel port to input mode.

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

Definition at line 379 of file parport_internal.c.

void ts5_set_parport_trigger_output ( char *  calling_function,
int  device 
)

Set the DATA register of the parallel port to output mode.

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

Definition at line 426 of file parport_internal.c.

void* ts5_parport_threadfunc ( )

Parallel port thread function.

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

Definition at line 469 of file parport_internal.c.

Variable Documentation

int _ts5_is_parport_installed = 0

Is the parport subsystem installed?

Definition at line 19 of file parport_internal.c.