SIM_PARPORT(9) | HAL Component | SIM_PARPORT(9) |
sim_parport - A component to simulate the pins of the hal_parport component
loadrt sim_parport [count=N|names=name1[,name2...]]
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.
Chris S Morley
GPL
2023-02-10 | LinuxCNC Documentation |