====== cpunum_set_input_line() ======
----
Set the logical state of an input line on a CPU.
===== Syntax =====
----
==== Declaration ====
Declared in ''src/emu/cpuint.h'' as
void cpunum_set_input_line(running_machine *machine, int cpunum, int line, int state);
==== Parameters ====
* ''machine'' – Pointer to the machine where this CPU is running
* ''cpunum'' – Index to the CPU
* ''line'' – The IRQ to set, those are generally defined in the appropriate CPU header files
* ''state'' – The logical state to set. Possible values are ''ASSERT_LINE'', ''HOLD_LINE'', ''CLEAR_LINE'' and ''PULSE_LINE''
==== Returns ====
Nothing.
===== Example =====
----
cpunum_set_input_line(machine, 1, M6809_FIRQ_LINE, ASSERT_LINE);
This call will change the state of the ''M6809_FIRQ_LINE'' of the second CPU to ''ASSERT_LINE'', meaning that the CPU will now take this interrupt if interrupts are enabled.
===== See Also =====
----
* [[reference:cpunum_set_input_line_and_vector|cpunum_set_input_line_and_vector()]]
* [[reference:cpunum_set_input_line_vector|cpunum_set_input_line_vector()]]
* [[reference:cpunum_set_irq_callback|cpunum_set_irq_callback()]]