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.
sim-parport.N.read
sim-parport.N.write
sim-parport.N.reset
sim-parport.N.pin-01-out
bit in
sim-parport.N.pin-02-out bit in
sim-parport.N.pin-03-out bit in
sim-parport.N.pin-04-out bit in
sim-parport.N.pin-05-out bit in
sim-parport.N.pin-06-out bit in
sim-parport.N.pin-07-out bit in
sim-parport.N.pin-08-out bit in
sim-parport.N.pin-09-out bit in
sim-parport.N.pin-14-out bit in
sim-parport.N.pin-16-out bit in
sim-parport.N.pin-17-out bit in
sim-parport.N.pin-01-out-fake bit out
sim-parport.N.pin-02-out-fake bit out
sim-parport.N.pin-03-out-fake bit out
sim-parport.N.pin-04-out-fake bit out
sim-parport.N.pin-05-out-fake bit out
sim-parport.N.pin-06-out-fake bit out
sim-parport.N.pin-07-out-fake bit out
sim-parport.N.pin-08-out-fake bit out
sim-parport.N.pin-09-out-fake bit out
sim-parport.N.pin-14-out-fake bit out
sim-parport.N.pin-16-out-fake bit out
sim-parport.N.pin-17-out-fake bit out
sim-parport.N.pin-02-in bit out
sim-parport.N.pin-03-in bit out
sim-parport.N.pin-04-in bit out
sim-parport.N.pin-05-in bit out
sim-parport.N.pin-06-in bit out
sim-parport.N.pin-07-in bit out
sim-parport.N.pin-08-in bit out
sim-parport.N.pin-09-in bit out
sim-parport.N.pin-10-in bit out
sim-parport.N.pin-11-in bit out
sim-parport.N.pin-12-in bit out
sim-parport.N.pin-13-in bit out
sim-parport.N.pin-15-in bit out
sim-parport.N.pin-02-in-fake bit in
sim-parport.N.pin-03-in-fake bit in
sim-parport.N.pin-04-in-fake bit in
sim-parport.N.pin-05-in-fake bit in
sim-parport.N.pin-06-in-fake bit in
sim-parport.N.pin-07-in-fake bit in
sim-parport.N.pin-08-in-fake bit in
sim-parport.N.pin-09-in-fake bit in
sim-parport.N.pin-10-in-fake bit in
sim-parport.N.pin-11-in-fake bit in
sim-parport.N.pin-12-in-fake bit in
sim-parport.N.pin-13-in-fake bit in
sim-parport.N.pin-15-in-fake bit in
sim-parport.N.pin-02-in-not bit out
sim-parport.N.pin-03-in-not bit out
sim-parport.N.pin-04-in-not bit out
sim-parport.N.pin-05-in-not bit out
sim-parport.N.pin-06-in-not bit out
sim-parport.N.pin-07-in-not bit out
sim-parport.N.pin-08-in-not bit out
sim-parport.N.pin-09-in-not bit out
sim-parport.N.pin-10-in-not bit out
sim-parport.N.pin-11-in-not bit out
sim-parport.N.pin-12-in-not bit out
sim-parport.N.pin-13-in-not bit out
sim-parport.N.pin-15-in-not bit out
sim-parport.N.reset-time float in
sim-parport.N.pin-01-out-invert
bit rw
sim-parport.N.pin-02-out-invert bit rw
sim-parport.N.pin-03-out-invert bit rw
sim-parport.N.pin-04-out-invert bit rw
sim-parport.N.pin-05-out-invert bit rw
sim-parport.N.pin-06-out-invert bit rw
sim-parport.N.pin-07-out-invert bit rw
sim-parport.N.pin-08-out-invert bit rw
sim-parport.N.pin-09-out-invert bit rw
sim-parport.N.pin-14-out-invert bit rw
sim-parport.N.pin-16-out-invert bit rw
sim-parport.N.pin-17-out-invert bit rw
sim-parport.N.pin-01-out-reset bit rw
sim-parport.N.pin-02-out-reset bit rw
sim-parport.N.pin-03-out-reset bit rw
sim-parport.N.pin-04-out-reset bit rw
sim-parport.N.pin-05-out-reset bit rw
sim-parport.N.pin-06-out-reset bit rw
sim-parport.N.pin-07-out-reset bit rw
sim-parport.N.pin-08-out-reset bit rw
sim-parport.N.pin-09-out-reset bit rw
sim-parport.N.pin-14-out-reset bit rw
sim-parport.N.pin-16-out-reset bit rw
sim-parport.N.pin-17-out-reset bit rw
Chris S Morley
GPL