Scroll to navigation

SIM_PARPORT(9) HAL Component SIM_PARPORT(9)

NAME

sim_parport - A component to simulate the pins of the hal_parport component

SYNOPSIS

loadrt sim_parport [count=N|names=name1[,name2...]]

DESCRIPTION

Sim_parport is used to replace the pins of a real parport without changing any of the pins names in the rest of the config.
It has pass-through pins (ending in -fake) that allows connecting to other components.

eg pin-02-in will follow pin-02-in-fake 's logic.
pin_01_out-fake will follow pin_01_out (possibly modified by pin_01_out-invert)

It creates all possible pins of both 'in' and 'out' options of the hal_parport component.
This allows using other hardware I/O in place of the parport (without having to change the rest of the config)
or simulating hardware such as limit switches.
it's primary use is in Stepconf for building simulated configs.
You must use the names= option to have the right pin names.
eg. names=parport.0,parport.1
The read and write functions pass the logic from pins to fake pins or vice vera
The reset function is a no operation.

FUNCTIONS

PINS
































































PARAMETERS
























AUTHOR

Chris S Morley

LICENSE

GPL

2024-03-13 LinuxCNC Documentation