PIO::StateMachine class of PicoRuby

Singleton methods

new

PIO::StateMachine.new(
      pio: pio_num_t,
      sm: Integer,
      program: Program,
      ?freq: Integer,
      ?out_pins: Integer,
      ?out_pin_count: Integer,
      ?set_pins: Integer,
      ?set_pin_count: Integer,
      ?in_pins: Integer,
      ?sideset_pins: Integer,
      ?jmp_pin: Integer,
      ?out_shift_right: bool,
      ?out_shift_autopull: bool,
      ?out_shift_threshold: Integer,
      ?in_shift_right: bool,
      ?in_shift_autopush: bool,
      ?in_shift_threshold: Integer,
      ?fifo_join: fifo_join_t
    ) -> StateMachine

Instance methods

clear_fifos

instance.clear_fifos() -> void

drain_tx

instance.drain_tx() -> void

exec

instance.exec(Integer instruction) -> void

get

instance.get() -> Integer

get_nonblocking

instance.get_nonblocking() -> Integer?

put_buffer

instance.put_buffer(Array[Integer] values) -> void

put_bytes

instance.put_bytes(String data) -> void

put_nonblocking

instance.put_nonblocking(Integer value) -> bool

restart

instance.restart() -> void

rx_empty

instance.rx_empty() -> Integer

rx_empty?

instance.rx_empty?() -> bool

rx_full

instance.rx_full() -> Integer

rx_full?

instance.rx_full?() -> bool

rx_level

instance.rx_level() -> Integer

start

instance.start() -> void

stop

instance.stop() -> void

tx_empty

instance.tx_empty() -> Integer

tx_empty?

instance.tx_empty?() -> bool

tx_full

instance.tx_full() -> Integer

tx_full?

instance.tx_full?() -> bool

tx_level

instance.tx_level() -> Integer
Tags: class