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.
void ts5_install_parport (char *calling_function)
 Install the parport subsystem.
void ts5_uninstall_parport ()
 Uninstall the parport subsystem.
void ts5_set_parport_trigger_input (char *calling_function, int device)
 Set the DATA register of the parallel port to input mode.
void ts5_set_parport_trigger_output (char *calling_function, int device)
 Set the DATA register of the parallel port to output mode.
void * ts5_parport_threadfunc ()
 Parallel port thread function.

Variables

int _ts5_is_parport_installed = 0
 Is the parport subsystem installed?

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 the parport subsystem is installed. If not, the parport subsystem is installed.

Definition at line 45 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 63 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 236 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 348 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 403 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 454 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.