Class: LinkDemo::PortController

Inherits:
Object
  • Object
show all
Defined in:
lib/link_demo/port_controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) enable_gpio(*pin_indexes)

Enable the GPIO function on the given pin indexes

Examples:

dut.portd.enable_gpio(1,5)


7
8
9
10
11
# File 'lib/link_demo/port_controller.rb', line 7

def enable_gpio(*pin_indexes)
  pin_indexes.each do |i|
    send("pcr#{i}").mux.write!(0b001)
  end
end