Module: Lignite::Ev3Ops

Included in:
OpCompiler
Defined in:
lib/lignite/ev3_ops.rb

Overview

Bytecodes implemented by EV3

Constant Summary collapse

MULTIPLEX_PROGRAM_INFO =
{
  0 => :obj_stop,
  4 => :obj_start,
  22 => :get_status,
  23 => :get_speed,
  24 => :get_prgresult,
  25 => :set_instr,
  26 => :get_prgname,
}.freeze
MULTIPLEX_INFO =
{
  1 => :set_error,
  2 => :get_error,
  3 => :errortext,
  4 => :get_volume,
  5 => :set_volume,
  6 => :get_minutes,
  7 => :set_minutes,
}.freeze
MULTIPLEX_STRINGS =
{
  1 => :get_size,
  2 => :add,
  3 => :compare,
  5 => :duplicate,
  6 => :value_to_string,
  7 => :string_to_value,
  8 => :strip,
  9 => :number_to_string,
  10 => :sub,
  11 => :value_formatted,
  12 => :number_formatted,
}.freeze
MULTIPLEX_UI_READ =
{
  1 => :get_vbatt,
  2 => :get_ibatt,
  3 => :get_os_vers,
  4 => :get_event,
  5 => :get_tbatt,
  6 => :get_iint,
  7 => :get_imotor,
  8 => :get_string,
  9 => :get_hw_vers,
  10 => :get_fw_vers,
  11 => :get_fw_build,
  12 => :get_os_build,
  13 => :get_address,
  14 => :get_code,
  15 => :key,
  16 => :get_shutdown,
  17 => :get_warning,
  18 => :get_lbatt,
  21 => :textbox_read,
  26 => :get_version,
  27 => :get_ip,
  29 => :get_power,
  30 => :get_sdcard,
  31 => :get_usbstick,
}.freeze
MULTIPLEX_UI_WRITE =
{
  1 => :write_flush,
  2 => :floatvalue,
  3 => :stamp,
  8 => :put_string,
  9 => :value8,
  10 => :value16,
  11 => :value32,
  12 => :valuef,
  13 => :address,
  14 => :code,
  15 => :download_end,
  16 => :screen_block,
  17 => :allow_pulse,
  18 => :set_pulse,
  21 => :textbox_append,
  22 => :set_busy,
  24 => :set_testpin,
  25 => :init_run,
  26 => :update_run,
  27 => :led,
  29 => :power,
  30 => :graph_sample,
  31 => :terminal,
}.freeze
MULTIPLEX_UI_BUTTON =
{
  1 => :shortpress,
  2 => :longpress,
  3 => :wait_for_press,
  4 => :flush,
  5 => :press,
  6 => :release,
  7 => :get_horz,
  8 => :get_vert,
  9 => :pressed,
  10 => :set_back_block,
  11 => :get_back_block,
  12 => :testshortpress,
  13 => :testlongpress,
  14 => :get_bumped,
  15 => :get_click,
}.freeze
MULTIPLEX_UI_DRAW =
{
  0 => :update,
  1 => :clean,
  2 => :pixel,
  3 => :line,
  4 => :circle,
  5 => :text,
  6 => :icon,
  7 => :picture,
  8 => :value,
  9 => :fillrect,
  10 => :rectangle,
  11 => :notification,
  12 => :question,
  13 => :keyboard,
  14 => :browse,
  15 => :vertbar,
  16 => :inverserect,
  17 => :select_font,
  18 => :topline,
  19 => :fillwindow,
  20 => :scroll,
  21 => :dotline,
  22 => :view_value,
  23 => :view_unit,
  24 => :fillcircle,
  25 => :store,
  26 => :restore,
  27 => :icon_question,
  28 => :bmpfile,
  29 => :popup,
  30 => :graph_setup,
  31 => :graph_draw,
  32 => :textbox,
}.freeze
MULTIPLEX_MATH =
{
  1 => :exp,
  2 => :mod,
  3 => :floor,
  4 => :ceil,
  5 => :round,
  6 => :abs,
  7 => :negate,
  8 => :sqrt,
  9 => :log,
  10 => :ln,
  11 => :sin,
  12 => :cos,
  13 => :tan,
  14 => :asin,
  15 => :acos,
  16 => :atan,
  17 => :mod8,
  18 => :mod16,
  19 => :mod32,
  20 => :pow,
  21 => :trunc,
}.freeze
MULTIPLEX_COM_READ =
{
  14 => :command,
}.freeze
MULTIPLEX_COM_WRITE =
{
  14 => :reply,
}.freeze
MULTIPLEX_SOUND =
{
  0 => :break,
  1 => :tone,
  2 => :play,
  3 => :repeat,
  4 => :service,
}.freeze
MULTIPLEX_INPUT_DEVICE =
{
  1 => :insert_type,
  2 => :get_format,
  3 => :cal_minmax,
  4 => :cal_default,
  5 => :get_typemode,
  6 => :get_symbol,
  7 => :cal_min,
  8 => :cal_max,
  9 => :setup,
  10 => :clr_all,
  11 => :get_raw,
  12 => :get_connection,
  13 => :stop_all,
  14 => :set_typemode,
  15 => :ready_iic,
  21 => :get_name,
  22 => :get_modename,
  23 => :set_raw,
  24 => :get_figures,
  25 => :get_changes,
  26 => :clr_changes,
  27 => :ready_pct,
  28 => :ready_raw,
  29 => :ready_si,
  30 => :get_minmax,
  31 => :get_bumps,
}.freeze
MULTIPLEX_FILE =
{
  0 => :open_append,
  1 => :open_read,
  2 => :open_write,
  3 => :read_value,
  4 => :write_value,
  5 => :read_text,
  6 => :write_text,
  7 => :close,
  8 => :load_image,
  9 => :get_handle,
  10 => :make_folder,
  11 => :get_pool,
  12 => :set_log_sync_time,
  13 => :get_folders,
  14 => :get_log_sync_time,
  15 => :get_subfolder_name,
  16 => :write_log,
  17 => :close_log,
  18 => :get_image,
  19 => :get_item,
  20 => :get_cache_files,
  21 => :put_cache_file,
  22 => :get_cache_file,
  23 => :del_cache_file,
  24 => :del_subfolder,
  25 => :get_log_name,
  27 => :open_log,
  28 => :read_bytes,
  29 => :write_bytes,
  30 => :remove,
  31 => :move,
}.freeze
MULTIPLEX_ARRAY =
{
  0 => :destroy,
  1 => :create8,
  2 => :create16,
  3 => :create32,
  4 => :createf,
  5 => :resize,
  6 => :fill,
  7 => :copy,
  8 => :init8,
  9 => :init16,
  10 => :init32,
  11 => :initf,
  12 => :set_size,
  13 => :read_content,
  14 => :write_content,
  15 => :read_size,
}.freeze
MULTIPLEX_FILENAME =
{
  16 => :exist,
  17 => :totalsize,
  18 => :split,
  19 => :merge,
  20 => :check,
  21 => :pack,
  22 => :unpack,
  23 => :get_foldername,
}.freeze
MULTIPLEX_COM_GET =
{
  1 => :get_on_off,
  2 => :get_visible,
  4 => :get_result,
  5 => :get_pin,
  7 => :list_state,
  8 => :search_items,
  9 => :search_item,
  10 => :favour_items,
  11 => :favour_item,
  12 => :get_id,
  13 => :get_brickname,
  14 => :get_network,
  15 => :get_present,
  16 => :get_encrypt,
  17 => :connec_items,
  18 => :connec_item,
  19 => :get_incoming,
  20 => :get_mode2,
}.freeze
MULTIPLEX_COM_SET =
{
  1 => :set_on_off,
  2 => :set_visible,
  3 => :set_search,
  5 => :set_pin,
  6 => :set_passkey,
  7 => :set_connection,
  8 => :set_brickname,
  9 => :set_moveup,
  10 => :set_movedown,
  11 => :set_encrypt,
  12 => :set_ssid,
  13 => :set_mode2,
}.freeze
MULTIPLEX_TST =
{
  10 => :tst_open,
  11 => :tst_close,
  12 => :tst_read_pins,
  13 => :tst_write_pins,
  14 => :tst_read_adc,
  15 => :tst_write_uart,
  16 => :tst_read_uart,
  17 => :tst_enable_uart,
  18 => :tst_disable_uart,
  19 => :tst_accu_switch,
  20 => :tst_boot_mode2,
  21 => :tst_poll_mode2,
  22 => :tst_close_mode2,
  23 => :tst_ram_check,
}.freeze

Instance Method Summary collapse

Instance Method Details

#add16(source1, source2, destination) ⇒ Object

Add two 16-bit values DESTINATION = SOURCE1 + SOURCE2



383
384
385
386
387
388
389
390
391
392
393
394
395
# File 'lib/lignite/ev3_ops.rb', line 383

def add16(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called add16 with #{args.inspect}"
  end

  bytes = u8(0x11)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#add32(source1, source2, destination) ⇒ Object

Add two 32-bit values DESTINATION = SOURCE1 + SOURCE2



401
402
403
404
405
406
407
408
409
410
411
412
413
# File 'lib/lignite/ev3_ops.rb', line 401

def add32(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called add32 with #{args.inspect}"
  end

  bytes = u8(0x12)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#add8(source1, source2, destination) ⇒ Object

Add two 8-bit values DESTINATION = SOURCE1 + SOURCE2



365
366
367
368
369
370
371
372
373
374
375
376
377
# File 'lib/lignite/ev3_ops.rb', line 365

def add8(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called add8 with #{args.inspect}"
  end

  bytes = u8(0x10)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#addf(source1, source2, destination) ⇒ Object

Add two floating point values DESTINATION = SOURCE1 + SOURCE2



419
420
421
422
423
424
425
426
427
428
429
430
431
# File 'lib/lignite/ev3_ops.rb', line 419

def addf(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called addf with #{args.inspect}"
  end

  bytes = u8(0x13)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#and16(source1, source2, destination) ⇒ Object

And two 16 bit values DESTINATION = SOURCE1 & SOURCE2



725
726
727
728
729
730
731
732
733
734
735
736
737
# File 'lib/lignite/ev3_ops.rb', line 725

def and16(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called and16 with #{args.inspect}"
  end

  bytes = u8(0x25)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#and32(source1, source2, destination) ⇒ Object

And two 32 bit values DESTINATION = SOURCE1 & SOURCE2



743
744
745
746
747
748
749
750
751
752
753
754
755
# File 'lib/lignite/ev3_ops.rb', line 743

def and32(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called and32 with #{args.inspect}"
  end

  bytes = u8(0x26)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#and8(source1, source2, destination) ⇒ Object

And two 8 bit values DESTINATION = SOURCE1 & SOURCE2



707
708
709
710
711
712
713
714
715
716
717
718
719
# File 'lib/lignite/ev3_ops.rb', line 707

def and8(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called and8 with #{args.inspect}"
  end

  bytes = u8(0x24)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array(*args) ⇒ Object



7704
7705
7706
7707
7708
7709
# File 'lib/lignite/ev3_ops.rb', line 7704

def array(*args)
  logger.debug "called array with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_ARRAY.fetch(cvalue)
  __send__("array_#{csym}", *args)
end

#array_append(handle, value) ⇒ Object

Array element append



7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
# File 'lib/lignite/ev3_ops.rb', line 7750

def array_append(handle, value)
  logger.debug do
    args = [handle, value]
    "called array_append with #{args.inspect}"
  end

  bytes = u8(0xC4)
  bytes += param_simple(handle)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_copy(hsource, hdest) ⇒ Object



7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
# File 'lib/lignite/ev3_ops.rb', line 7546

def array_copy(hsource, hdest)
  logger.debug do
    args = [hsource, hdest]
    "called array_copy with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(7)
  bytes += param_simple(hsource)
  bytes += param_simple(hdest)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_create16(elements, handle) ⇒ Object



7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
# File 'lib/lignite/ev3_ops.rb', line 7451

def array_create16(elements, handle)
  logger.debug do
    args = [elements, handle]
    "called array_create16 with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(2)
  bytes += param_simple(elements)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_create32(elements, handle) ⇒ Object



7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
# File 'lib/lignite/ev3_ops.rb', line 7470

def array_create32(elements, handle)
  logger.debug do
    args = [elements, handle]
    "called array_create32 with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(3)
  bytes += param_simple(elements)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_create8(elements, handle) ⇒ Object



7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
# File 'lib/lignite/ev3_ops.rb', line 7432

def array_create8(elements, handle)
  logger.debug do
    args = [elements, handle]
    "called array_create8 with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(1)
  bytes += param_simple(elements)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_createf(elements, handle) ⇒ Object



7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
# File 'lib/lignite/ev3_ops.rb', line 7489

def array_createf(elements, handle)
  logger.debug do
    args = [elements, handle]
    "called array_createf with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(4)
  bytes += param_simple(elements)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_delete(handle) ⇒ Object



7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
# File 'lib/lignite/ev3_ops.rb', line 7397

def array_delete(handle)
  logger.debug do
    args = [handle]
    "called array_delete with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(0)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_destroy(handle) ⇒ Object



7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
# File 'lib/lignite/ev3_ops.rb', line 7414

def array_destroy(handle)
  logger.debug do
    args = [handle]
    "called array_destroy with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(0)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_fill(handle, value) ⇒ Object



7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
# File 'lib/lignite/ev3_ops.rb', line 7527

def array_fill(handle, value)
  logger.debug do
    args = [handle, value]
    "called array_fill with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(6)
  bytes += param_simple(handle)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_read(handle, index, value) ⇒ Object

Array element read



7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
# File 'lib/lignite/ev3_ops.rb', line 7733

def array_read(handle, index, value)
  logger.debug do
    args = [handle, index, value]
    "called array_read with #{args.inspect}"
  end

  bytes = u8(0xC3)
  bytes += param_simple(handle)
  bytes += param_simple(index)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_read_content(prgid, handle, index, bytes, array) ⇒ Object



7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
# File 'lib/lignite/ev3_ops.rb', line 7622

def array_read_content(prgid, handle, index, bytes, array)
  logger.debug do
    args = [prgid, handle, index, bytes, array]
    "called array_read_content with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(13)
  bytes += param_simple(prgid)
  bytes += param_simple(handle)
  bytes += param_simple(index)
  bytes += param_simple(bytes)
  bytes += param_simple(array)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_read_size(prgid, handle, bytes) ⇒ Object



7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
# File 'lib/lignite/ev3_ops.rb', line 7670

def array_read_size(prgid, handle, bytes)
  logger.debug do
    args = [prgid, handle, bytes]
    "called array_read_size with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(15)
  bytes += param_simple(prgid)
  bytes += param_simple(handle)
  bytes += param_simple(bytes)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_resize(handle, elements) ⇒ Object



7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
# File 'lib/lignite/ev3_ops.rb', line 7508

def array_resize(handle, elements)
  logger.debug do
    args = [handle, elements]
    "called array_resize with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(5)
  bytes += param_simple(handle)
  bytes += param_simple(elements)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_set_size(handle, elements) ⇒ Object



7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
# File 'lib/lignite/ev3_ops.rb', line 7600

def array_set_size(handle, elements)
  logger.debug do
    args = [handle, elements]
    "called array_set_size with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(12)
  bytes += param_simple(handle)
  bytes += param_simple(elements)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_size(handle, elements) ⇒ Object



7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
# File 'lib/lignite/ev3_ops.rb', line 7581

def array_size(handle, elements)
  logger.debug do
    args = [handle, elements]
    "called array_size with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(12)
  bytes += param_simple(handle)
  bytes += param_simple(elements)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_write(handle, index, value) ⇒ Object

Array element write



7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
# File 'lib/lignite/ev3_ops.rb', line 7715

def array_write(handle, index, value)
  logger.debug do
    args = [handle, index, value]
    "called array_write with #{args.inspect}"
  end

  bytes = u8(0xC2)
  bytes += param_simple(handle)
  bytes += param_simple(index)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#array_write_content(prgid, handle, index, bytes, array) ⇒ Object



7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
# File 'lib/lignite/ev3_ops.rb', line 7647

def array_write_content(prgid, handle, index, bytes, array)
  logger.debug do
    args = [prgid, handle, index, bytes, array]
    "called array_write_content with #{args.inspect}"
  end

  bytes = u8(0xC1)
  bytes += param_simple(14)
  bytes += param_simple(prgid)
  bytes += param_simple(handle)
  bytes += param_simple(index)
  bytes += param_simple(bytes)
  bytes += param_simple(array)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#bp0Object

Display globals or object locals on terminal



4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
# File 'lib/lignite/ev3_ops.rb', line 4783

def bp0
  logger.debug do
    args = []
    "called bp0 with #{args.inspect}"
  end

  bytes = u8(0x88)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#bp1Object

Display globals or object locals on terminal



4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
# File 'lib/lignite/ev3_ops.rb', line 4795

def bp1
  logger.debug do
    args = []
    "called bp1 with #{args.inspect}"
  end

  bytes = u8(0x89)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#bp2Object

Display globals or object locals on terminal



4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
# File 'lib/lignite/ev3_ops.rb', line 4807

def bp2
  logger.debug do
    args = []
    "called bp2 with #{args.inspect}"
  end

  bytes = u8(0x8A)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#bp3Object

Display globals or object locals on terminal



4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
# File 'lib/lignite/ev3_ops.rb', line 4819

def bp3
  logger.debug do
    args = []
    "called bp3 with #{args.inspect}"
  end

  bytes = u8(0x8B)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#bp_set(prgid, no, address) ⇒ Object

Set break point in byte code program



4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
# File 'lib/lignite/ev3_ops.rb', line 4834

def bp_set(prgid, no, address)
  logger.debug do
    args = [prgid, no, address]
    "called bp_set with #{args.inspect}"
  end

  bytes = u8(0x8C)
  bytes += param_simple(prgid)
  bytes += param_simple(no)
  bytes += param_simple(address)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#call(objid, *parameters) ⇒ Object

Calls byte code subroutine



135
136
137
138
139
140
141
142
143
144
145
146
# File 'lib/lignite/ev3_ops.rb', line 135

def call(objid, *parameters)
  logger.debug do
    args = [objid, *parameters]
    "called call with #{args.inspect}"
  end

  bytes = u8(0x09)
  bytes += param_simple(objid)
  bytes += param_multiple(*parameters)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get(*args) ⇒ Object



8572
8573
8574
8575
8576
8577
# File 'lib/lignite/ev3_ops.rb', line 8572

def com_get(*args)
  logger.debug "called com_get with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_COM_GET.fetch(cvalue)
  __send__("com_get_#{csym}", *args)
end

#com_get_connec_item(hardware, item, length, name, type) ⇒ Object



8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
# File 'lib/lignite/ev3_ops.rb', line 8492

def com_get_connec_item(hardware, item, length, name, type)
  logger.debug do
    args = [hardware, item, length, name, type]
    "called com_get_connec_item with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(18)
  bytes += param_simple(hardware)
  bytes += param_simple(item)
  bytes += param_simple(length)
  bytes += param_simple(name)
  bytes += param_simple(type)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_connec_items(hardware, items) ⇒ Object



8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
# File 'lib/lignite/ev3_ops.rb', line 8470

def com_get_connec_items(hardware, items)
  logger.debug do
    args = [hardware, items]
    "called com_get_connec_items with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(17)
  bytes += param_simple(hardware)
  bytes += param_simple(items)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_favour_item(hardware, item, length, name, paired, connected, type) ⇒ Object

Get favourite item information.



8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
# File 'lib/lignite/ev3_ops.rb', line 8341

def com_get_favour_item(hardware, item, length, name, paired, connected, type)
  logger.debug do
    args = [hardware, item, length, name, paired, connected, type]
    "called com_get_favour_item with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(11)
  bytes += param_simple(hardware)
  bytes += param_simple(item)
  bytes += param_simple(length)
  bytes += param_simple(name)
  bytes += param_simple(paired)
  bytes += param_simple(connected)
  bytes += param_simple(type)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_favour_items(hardware, items) ⇒ Object

Get no of item in favourite list.



8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
# File 'lib/lignite/ev3_ops.rb', line 8317

def com_get_favour_items(hardware, items)
  logger.debug do
    args = [hardware, items]
    "called com_get_favour_items with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(10)
  bytes += param_simple(hardware)
  bytes += param_simple(items)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_brickname(length, name) ⇒ Object

Gets the name of the brick



8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
# File 'lib/lignite/ev3_ops.rb', line 8386

def com_get_get_brickname(length, name)
  logger.debug do
    args = [length, name]
    "called com_get_get_brickname with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(13)
  bytes += param_simple(length)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_encrypt(hardware, item, type) ⇒ Object

Returns the encryption mode of the hardware. WIFI only



8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
# File 'lib/lignite/ev3_ops.rb', line 8450

def com_get_get_encrypt(hardware, item, type)
  logger.debug do
    args = [hardware, item, type]
    "called com_get_get_encrypt with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(16)
  bytes += param_simple(hardware)
  bytes += param_simple(item)
  bytes += param_simple(type)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_id(hardware, length, string) ⇒ Object

Get bluetooth address information



8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
# File 'lib/lignite/ev3_ops.rb', line 8366

def com_get_get_id(hardware, length, string)
  logger.debug do
    args = [hardware, length, string]
    "called com_get_get_id with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(12)
  bytes += param_simple(hardware)
  bytes += param_simple(length)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_incoming(hardware, length, name, type) ⇒ Object

Returns the encryption mode of the hardware. WIFI only



8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
# File 'lib/lignite/ev3_ops.rb', line 8516

def com_get_get_incoming(hardware, length, name, type)
  logger.debug do
    args = [hardware, length, name, type]
    "called com_get_get_incoming with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(19)
  bytes += param_simple(hardware)
  bytes += param_simple(length)
  bytes += param_simple(name)
  bytes += param_simple(type)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_mode2(hardware, active) ⇒ Object



8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
# File 'lib/lignite/ev3_ops.rb', line 8537

def com_get_get_mode2(hardware, active)
  logger.debug do
    args = [hardware, active]
    "called com_get_get_mode2 with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(20)
  bytes += param_simple(hardware)
  bytes += param_simple(active)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_network(hardware, length, name, mac, ip) ⇒ Object

Gets the network information. WIFI only



8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
# File 'lib/lignite/ev3_ops.rb', line 8408

def com_get_get_network(hardware, length, name, mac, ip)
  logger.debug do
    args = [hardware, length, name, mac, ip]
    "called com_get_get_network with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(14)
  bytes += param_simple(hardware)
  bytes += param_simple(length)
  bytes += param_simple(name)
  bytes += param_simple(mac)
  bytes += param_simple(ip)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_on_off(hardware, active) ⇒ Object

Get active state



8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
# File 'lib/lignite/ev3_ops.rb', line 8166

def com_get_get_on_off(hardware, active)
  logger.debug do
    args = [hardware, active]
    "called com_get_get_on_off with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(1)
  bytes += param_simple(hardware)
  bytes += param_simple(active)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_pin(hardware, name, length, pincode) ⇒ Object

Get pin code.



8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
# File 'lib/lignite/ev3_ops.rb', line 8227

def com_get_get_pin(hardware, name, length, pincode)
  logger.debug do
    args = [hardware, name, length, pincode]
    "called com_get_get_pin with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(5)
  bytes += param_simple(hardware)
  bytes += param_simple(name)
  bytes += param_simple(length)
  bytes += param_simple(pincode)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_present(hardware, ok) ⇒ Object

Return if hardare is present. WIFI only



8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
# File 'lib/lignite/ev3_ops.rb', line 8430

def com_get_get_present(hardware, ok)
  logger.debug do
    args = [hardware, ok]
    "called com_get_get_present with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(15)
  bytes += param_simple(hardware)
  bytes += param_simple(ok)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_result(hardware, item, result) ⇒ Object

Get status.



8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
# File 'lib/lignite/ev3_ops.rb', line 8205

def com_get_get_result(hardware, item, result)
  logger.debug do
    args = [hardware, item, result]
    "called com_get_get_result with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(4)
  bytes += param_simple(hardware)
  bytes += param_simple(item)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_get_visible(hardware, visible) ⇒ Object

Get visibility state



8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
# File 'lib/lignite/ev3_ops.rb', line 8185

def com_get_get_visible(hardware, visible)
  logger.debug do
    args = [hardware, visible]
    "called com_get_get_visible with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(2)
  bytes += param_simple(hardware)
  bytes += param_simple(visible)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_list_state(hardware, state) ⇒ Object

Gets a list state value. This can be compared to previous values to determine if items are added or removed from a list since the last call.



8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
# File 'lib/lignite/ev3_ops.rb', line 8248

def com_get_list_state(hardware, state)
  logger.debug do
    args = [hardware, state]
    "called com_get_list_state with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(7)
  bytes += param_simple(hardware)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_search_item(hardware, item, length, name, paired, connected, type, visible) ⇒ Object

Get search item informations.



8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
# File 'lib/lignite/ev3_ops.rb', line 8292

def com_get_search_item(hardware, item, length, name, paired, connected, type, visible)
  logger.debug do
    args = [hardware, item, length, name, paired, connected, type, visible]
    "called com_get_search_item with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(9)
  bytes += param_simple(hardware)
  bytes += param_simple(item)
  bytes += param_simple(length)
  bytes += param_simple(name)
  bytes += param_simple(paired)
  bytes += param_simple(connected)
  bytes += param_simple(type)
  bytes += param_simple(visible)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_get_search_items(hardware, items) ⇒ Object

Get number of item from search.



8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
# File 'lib/lignite/ev3_ops.rb', line 8267

def com_get_search_items(hardware, items)
  logger.debug do
    args = [hardware, items]
    "called com_get_search_items with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(8)
  bytes += param_simple(hardware)
  bytes += param_simple(items)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_read(*args) ⇒ Object



5365
5366
5367
5368
5369
5370
# File 'lib/lignite/ev3_ops.rb', line 5365

def com_read(*args)
  logger.debug "called com_read with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_COM_READ.fetch(cvalue)
  __send__("com_read_#{csym}", *args)
end

#com_read_command(length, image, global, flag) ⇒ Object



5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
# File 'lib/lignite/ev3_ops.rb', line 5345

def com_read_command(length, image, global, flag)
  logger.debug do
    args = [length, image, global, flag]
    "called com_read_command with #{args.inspect}"
  end

  bytes = u8(0x91)
  bytes += param_simple(14)
  bytes += param_simple(length)
  bytes += param_simple(image)
  bytes += param_simple(global)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_readdata(value1, value2, value3, value4) ⇒ Object

This code does not exist in normal program



8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
# File 'lib/lignite/ev3_ops.rb', line 8125

def com_readdata(value1, value2, value3, value4)
  logger.debug do
    args = [value1, value2, value3, value4]
    "called com_readdata with #{args.inspect}"
  end

  bytes = u8(0xD1)
  bytes += param_simple(value1)
  bytes += param_simple(value2)
  bytes += param_simple(value3)
  bytes += param_simple(value4)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_ready(hardware, name) ⇒ Object

Test if communication is busy



8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
# File 'lib/lignite/ev3_ops.rb', line 8107

def com_ready(hardware, name)
  logger.debug do
    args = [hardware, name]
    "called com_ready with #{args.inspect}"
  end

  bytes = u8(0xD0)
  bytes += param_simple(hardware)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_remove(hardware, remote_name) ⇒ Object

Removes a know remote device from the brick



8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
# File 'lib/lignite/ev3_ops.rb', line 8855

def com_remove(hardware, remote_name)
  logger.debug do
    args = [hardware, remote_name]
    "called com_remove with #{args.inspect}"
  end

  bytes = u8(0xD6)
  bytes += param_simple(hardware)
  bytes += param_simple(remote_name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set(*args) ⇒ Object



8827
8828
8829
8830
8831
8832
# File 'lib/lignite/ev3_ops.rb', line 8827

def com_set(*args)
  logger.debug "called com_set with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_COM_SET.fetch(cvalue)
  __send__("com_set_#{csym}", *args)
end

#com_set_set_brickname(name) ⇒ Object

Sets the name of the brick



8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
# File 'lib/lignite/ev3_ops.rb', line 8702

def com_set_set_brickname(name)
  logger.debug do
    args = [name]
    "called com_set_set_brickname with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(8)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_connection(hardware, name, connection) ⇒ Object

Initiate or close the connection request to a remote device by the specified name.



8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
# File 'lib/lignite/ev3_ops.rb', line 8683

def com_set_set_connection(hardware, name, connection)
  logger.debug do
    args = [hardware, name, connection]
    "called com_set_set_connection with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(7)
  bytes += param_simple(hardware)
  bytes += param_simple(name)
  bytes += param_simple(connection)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_encrypt(hardware, item, encrypt) ⇒ Object

Sets the encryption type for an item in a list.



8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
# File 'lib/lignite/ev3_ops.rb', line 8759

def com_set_set_encrypt(hardware, item, encrypt)
  logger.debug do
    args = [hardware, item, encrypt]
    "called com_set_set_encrypt with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(11)
  bytes += param_simple(hardware)
  bytes += param_simple(item)
  bytes += param_simple(encrypt)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_mode2(hardware, active) ⇒ Object

Set active mode state, either active or not



8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
# File 'lib/lignite/ev3_ops.rb', line 8798

def com_set_set_mode2(hardware, active)
  logger.debug do
    args = [hardware, active]
    "called com_set_set_mode2 with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(13)
  bytes += param_simple(hardware)
  bytes += param_simple(active)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_movedown(hardware, item) ⇒ Object

Moves the index in list one step down.



8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
# File 'lib/lignite/ev3_ops.rb', line 8739

def com_set_set_movedown(hardware, item)
  logger.debug do
    args = [hardware, item]
    "called com_set_set_movedown with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(10)
  bytes += param_simple(hardware)
  bytes += param_simple(item)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_moveup(hardware, item) ⇒ Object

Moves the index in list one step up.



8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
# File 'lib/lignite/ev3_ops.rb', line 8720

def com_set_set_moveup(hardware, item)
  logger.debug do
    args = [hardware, item]
    "called com_set_set_moveup with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(9)
  bytes += param_simple(hardware)
  bytes += param_simple(item)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_on_off(hardware, active) ⇒ Object

Set active state, either on or off



8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
# File 'lib/lignite/ev3_ops.rb', line 8585

def com_set_set_on_off(hardware, active)
  logger.debug do
    args = [hardware, active]
    "called com_set_set_on_off with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(1)
  bytes += param_simple(hardware)
  bytes += param_simple(active)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_passkey(hardware, accept) ⇒ Object

Set pin code.



8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
# File 'lib/lignite/ev3_ops.rb', line 8663

def com_set_set_passkey(hardware, accept)
  logger.debug do
    args = [hardware, accept]
    "called com_set_set_passkey with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(6)
  bytes += param_simple(hardware)
  bytes += param_simple(accept)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_pin(hardware, name, pincode) ⇒ Object

Set pin code.



8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
# File 'lib/lignite/ev3_ops.rb', line 8643

def com_set_set_pin(hardware, name, pincode)
  logger.debug do
    args = [hardware, name, pincode]
    "called com_set_set_pin with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(5)
  bytes += param_simple(hardware)
  bytes += param_simple(name)
  bytes += param_simple(pincode)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_search(hardware, search) ⇒ Object

Starts or or stops the search for remote devices



8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
# File 'lib/lignite/ev3_ops.rb', line 8623

def com_set_set_search(hardware, search)
  logger.debug do
    args = [hardware, search]
    "called com_set_set_search with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(3)
  bytes += param_simple(hardware)
  bytes += param_simple(search)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_ssid(hardware, name) ⇒ Object

Sets the SSID name. Only used for WIFI



8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
# File 'lib/lignite/ev3_ops.rb', line 8779

def com_set_set_ssid(hardware, name)
  logger.debug do
    args = [hardware, name]
    "called com_set_set_ssid with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(12)
  bytes += param_simple(hardware)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_set_set_visible(hardware, visible) ⇒ Object

Set visibility state - Only available for bluetooth



8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
# File 'lib/lignite/ev3_ops.rb', line 8604

def com_set_set_visible(hardware, visible)
  logger.debug do
    args = [hardware, visible]
    "called com_set_set_visible with #{args.inspect}"
  end

  bytes = u8(0xD4)
  bytes += param_simple(2)
  bytes += param_simple(hardware)
  bytes += param_simple(visible)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_test(hardware, name, busy) ⇒ Object

Test if communication is busy



8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
# File 'lib/lignite/ev3_ops.rb', line 8838

def com_test(hardware, name, busy)
  logger.debug do
    args = [hardware, name, busy]
    "called com_test with #{args.inspect}"
  end

  bytes = u8(0xD5)
  bytes += param_simple(hardware)
  bytes += param_simple(name)
  bytes += param_simple(busy)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_write(*args) ⇒ Object



5398
5399
5400
5401
5402
5403
# File 'lib/lignite/ev3_ops.rb', line 5398

def com_write(*args)
  logger.debug "called com_write with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_COM_WRITE.fetch(cvalue)
  __send__("com_write_#{csym}", *args)
end

#com_write_reply(image, global, status) ⇒ Object



5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
# File 'lib/lignite/ev3_ops.rb', line 5379

def com_write_reply(image, global, status)
  logger.debug do
    args = [image, global, status]
    "called com_write_reply with #{args.inspect}"
  end

  bytes = u8(0x92)
  bytes += param_simple(14)
  bytes += param_simple(image)
  bytes += param_simple(global)
  bytes += param_simple(status)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_writedata(value1, value2, value3, value4) ⇒ Object

This code does not exist in normal program



8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
# File 'lib/lignite/ev3_ops.rb', line 8145

def com_writedata(value1, value2, value3, value4)
  logger.debug do
    args = [value1, value2, value3, value4]
    "called com_writedata with #{args.inspect}"
  end

  bytes = u8(0xD2)
  bytes += param_simple(value1)
  bytes += param_simple(value2)
  bytes += param_simple(value3)
  bytes += param_simple(value4)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#com_writefile(hardware, remote_name, file_name, file_type) ⇒ Object

Sends a file or folder to remote brick.



8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
# File 'lib/lignite/ev3_ops.rb', line 8873

def com_writefile(hardware, remote_name, file_name, file_type)
  logger.debug do
    args = [hardware, remote_name, file_name, file_type]
    "called com_writefile with #{args.inspect}"
  end

  bytes = u8(0xD7)
  bytes += param_simple(hardware)
  bytes += param_simple(remote_name)
  bytes += param_simple(file_name)
  bytes += param_simple(file_type)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_eq16(left, right, flag) ⇒ Object

If LEFT is equal to RIGTH - set FLAG



1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
# File 'lib/lignite/ev3_ops.rb', line 1351

def cp_eq16(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_eq16 with #{args.inspect}"
  end

  bytes = u8(0x4D)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_eq32(left, right, flag) ⇒ Object

If LEFT is equal to RIGTH - set FLAG



1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
# File 'lib/lignite/ev3_ops.rb', line 1369

def cp_eq32(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_eq32 with #{args.inspect}"
  end

  bytes = u8(0x4E)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_eq8(left, right, flag) ⇒ Object

If LEFT is equal to RIGTH - set FLAG



1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
# File 'lib/lignite/ev3_ops.rb', line 1333

def cp_eq8(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_eq8 with #{args.inspect}"
  end

  bytes = u8(0x4C)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_eqf(left, right, flag) ⇒ Object

If LEFT is equal to RIGTH - set FLAG



1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
# File 'lib/lignite/ev3_ops.rb', line 1387

def cp_eqf(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_eqf with #{args.inspect}"
  end

  bytes = u8(0x4F)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_gt16(left, right, flag) ⇒ Object

If LEFT is greater than RIGTH - set FLAG



1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
# File 'lib/lignite/ev3_ops.rb', line 1279

def cp_gt16(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_gt16 with #{args.inspect}"
  end

  bytes = u8(0x49)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_gt32(left, right, flag) ⇒ Object

If LEFT is greater than RIGTH - set FLAG



1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
# File 'lib/lignite/ev3_ops.rb', line 1297

def cp_gt32(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_gt32 with #{args.inspect}"
  end

  bytes = u8(0x4A)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_gt8(left, right, flag) ⇒ Object

If LEFT is greater than RIGTH - set FLAG



1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
# File 'lib/lignite/ev3_ops.rb', line 1261

def cp_gt8(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_gt8 with #{args.inspect}"
  end

  bytes = u8(0x48)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_gteq16(left, right, flag) ⇒ Object

If LEFT is greater than or equal to RIGTH - set FLAG



1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
# File 'lib/lignite/ev3_ops.rb', line 1567

def cp_gteq16(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_gteq16 with #{args.inspect}"
  end

  bytes = u8(0x59)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_gteq32(left, right, flag) ⇒ Object

If LEFT is greater than or equal to RIGTH - set FLAG



1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
# File 'lib/lignite/ev3_ops.rb', line 1585

def cp_gteq32(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_gteq32 with #{args.inspect}"
  end

  bytes = u8(0x5A)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_gteq8(left, right, flag) ⇒ Object

If LEFT is greater than or equal to RIGTH - set FLAG



1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
# File 'lib/lignite/ev3_ops.rb', line 1549

def cp_gteq8(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_gteq8 with #{args.inspect}"
  end

  bytes = u8(0x58)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_gteqf(left, right, flag) ⇒ Object

If LEFT is greater than or equal to RIGTH - set FLAG



1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
# File 'lib/lignite/ev3_ops.rb', line 1603

def cp_gteqf(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_gteqf with #{args.inspect}"
  end

  bytes = u8(0x5B)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_gtf(left, right, flag) ⇒ Object

If LEFT is greater than RIGTH - set FLAG



1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
# File 'lib/lignite/ev3_ops.rb', line 1315

def cp_gtf(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_gtf with #{args.inspect}"
  end

  bytes = u8(0x4B)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_lt16(left, right, flag) ⇒ Object

If LEFT is less than RIGTH - set FLAG



1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
# File 'lib/lignite/ev3_ops.rb', line 1207

def cp_lt16(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_lt16 with #{args.inspect}"
  end

  bytes = u8(0x45)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_lt32(left, right, flag) ⇒ Object

If LEFT is less than RIGTH - set FLAG



1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
# File 'lib/lignite/ev3_ops.rb', line 1225

def cp_lt32(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_lt32 with #{args.inspect}"
  end

  bytes = u8(0x46)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_lt8(left, right, flag) ⇒ Object

If LEFT is less than RIGTH - set FLAG



1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
# File 'lib/lignite/ev3_ops.rb', line 1189

def cp_lt8(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_lt8 with #{args.inspect}"
  end

  bytes = u8(0x44)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_lteq16(left, right, flag) ⇒ Object

If LEFT is less than or equal to RIGTH - set FLAG



1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
# File 'lib/lignite/ev3_ops.rb', line 1495

def cp_lteq16(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_lteq16 with #{args.inspect}"
  end

  bytes = u8(0x55)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_lteq32(left, right, flag) ⇒ Object

If LEFT is less than or equal to RIGTH - set FLAG



1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
# File 'lib/lignite/ev3_ops.rb', line 1513

def cp_lteq32(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_lteq32 with #{args.inspect}"
  end

  bytes = u8(0x56)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_lteq8(left, right, flag) ⇒ Object

If LEFT is less than or equal to RIGTH - set FLAG



1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
# File 'lib/lignite/ev3_ops.rb', line 1477

def cp_lteq8(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_lteq8 with #{args.inspect}"
  end

  bytes = u8(0x54)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_lteqf(left, right, flag) ⇒ Object

If LEFT is less than or equal to RIGTH - set FLAG



1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
# File 'lib/lignite/ev3_ops.rb', line 1531

def cp_lteqf(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_lteqf with #{args.inspect}"
  end

  bytes = u8(0x57)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_ltf(left, right, flag) ⇒ Object

If LEFT is less than RIGTH - set FLAG



1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
# File 'lib/lignite/ev3_ops.rb', line 1243

def cp_ltf(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_ltf with #{args.inspect}"
  end

  bytes = u8(0x47)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_neq16(left, right, flag) ⇒ Object

If LEFT is not equal to RIGTH - set FLAG



1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
# File 'lib/lignite/ev3_ops.rb', line 1423

def cp_neq16(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_neq16 with #{args.inspect}"
  end

  bytes = u8(0x51)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_neq32(left, right, flag) ⇒ Object

If LEFT is not equal to RIGTH - set FLAG



1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
# File 'lib/lignite/ev3_ops.rb', line 1441

def cp_neq32(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_neq32 with #{args.inspect}"
  end

  bytes = u8(0x52)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_neq8(left, right, flag) ⇒ Object

If LEFT is not equal to RIGTH - set FLAG



1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
# File 'lib/lignite/ev3_ops.rb', line 1405

def cp_neq8(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_neq8 with #{args.inspect}"
  end

  bytes = u8(0x50)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#cp_neqf(left, right, flag) ⇒ Object

If LEFT is not equal to RIGTH - set FLAG



1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
# File 'lib/lignite/ev3_ops.rb', line 1459

def cp_neqf(left, right, flag)
  logger.debug do
    args = [left, right, flag]
    "called cp_neqf with #{args.inspect}"
  end

  bytes = u8(0x53)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#div16(source1, source2, destination) ⇒ Object

Divide two 16 bit values DESTINATION = SOURCE1 / SOURCE2



599
600
601
602
603
604
605
606
607
608
609
610
611
# File 'lib/lignite/ev3_ops.rb', line 599

def div16(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called div16 with #{args.inspect}"
  end

  bytes = u8(0x1D)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#div32(source1, source2, destination) ⇒ Object

Divide two 32 bit values DESTINATION = SOURCE1 / SOURCE2



617
618
619
620
621
622
623
624
625
626
627
628
629
# File 'lib/lignite/ev3_ops.rb', line 617

def div32(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called div32 with #{args.inspect}"
  end

  bytes = u8(0x1E)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#div8(source1, source2, destination) ⇒ Object

Divide two 8 bit values DESTINATION = SOURCE1 / SOURCE2



581
582
583
584
585
586
587
588
589
590
591
592
593
# File 'lib/lignite/ev3_ops.rb', line 581

def div8(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called div8 with #{args.inspect}"
  end

  bytes = u8(0x1C)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#divf(source1, source2, destination) ⇒ Object

Divide two floating point values DESTINATION = SOURCE1 / SOURCE2



635
636
637
638
639
640
641
642
643
644
645
646
647
# File 'lib/lignite/ev3_ops.rb', line 635

def divf(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called divf with #{args.inspect}"
  end

  bytes = u8(0x1F)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#do(prgid, image, global) ⇒ Object

Run byte code snippet



347
348
349
350
351
352
353
354
355
356
357
358
359
# File 'lib/lignite/ev3_ops.rb', line 347

def do(prgid, image, global)
  logger.debug do
    args = [prgid, image, global]
    "called do with #{args.inspect}"
  end

  bytes = u8(0x0F)
  bytes += param_simple(prgid)
  bytes += param_simple(image)
  bytes += param_simple(global)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_0(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 0 in Third Party VM



9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
# File 'lib/lignite/ev3_ops.rb', line 9161

def dynload_entry_0(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_0 with #{args.inspect}"
  end

  bytes = u8(0xF2)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_1(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 1 in Third Party VM



9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
# File 'lib/lignite/ev3_ops.rb', line 9181

def dynload_entry_1(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_1 with #{args.inspect}"
  end

  bytes = u8(0xF3)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_2(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 2 in Third Party VM



9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
# File 'lib/lignite/ev3_ops.rb', line 9201

def dynload_entry_2(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_2 with #{args.inspect}"
  end

  bytes = u8(0xF4)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_3(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 3 in Third Party VM



9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
# File 'lib/lignite/ev3_ops.rb', line 9221

def dynload_entry_3(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_3 with #{args.inspect}"
  end

  bytes = u8(0xF5)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_4(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 4 in Third Party VM



9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
# File 'lib/lignite/ev3_ops.rb', line 9241

def dynload_entry_4(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_4 with #{args.inspect}"
  end

  bytes = u8(0xF6)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_5(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 5 in Third Party VM



9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
# File 'lib/lignite/ev3_ops.rb', line 9261

def dynload_entry_5(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_5 with #{args.inspect}"
  end

  bytes = u8(0xF7)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_6(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 6 in Third Party VM



9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
# File 'lib/lignite/ev3_ops.rb', line 9281

def dynload_entry_6(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_6 with #{args.inspect}"
  end

  bytes = u8(0xF8)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_7(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 7 in Third Party VM



9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
# File 'lib/lignite/ev3_ops.rb', line 9301

def dynload_entry_7(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_7 with #{args.inspect}"
  end

  bytes = u8(0xF9)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_8(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 8 in Third Party VM



9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
# File 'lib/lignite/ev3_ops.rb', line 9321

def dynload_entry_8(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_8 with #{args.inspect}"
  end

  bytes = u8(0xFA)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_entry_9(cmd, length_in, length_out, value) ⇒ Object

Execute Entry Point function 9 in Third Party VM



9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
# File 'lib/lignite/ev3_ops.rb', line 9341

def dynload_entry_9(cmd, length_in, length_out, value)
  logger.debug do
    args = [cmd, length_in, length_out, value]
    "called dynload_entry_9 with #{args.inspect}"
  end

  bytes = u8(0xFB)
  bytes += param_simple(cmd)
  bytes += param_simple(length_in)
  bytes += param_simple(length_out)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_get_vm(result) ⇒ Object

Get the index of the currently loaded VM



9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
# File 'lib/lignite/ev3_ops.rb', line 9358

def dynload_get_vm(result)
  logger.debug do
    args = [result]
    "called dynload_get_vm with #{args.inspect}"
  end

  bytes = u8(0xFC)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_vmexitObject

Clean up the dynamic VM loading system



9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
# File 'lib/lignite/ev3_ops.rb', line 9145

def dynload_vmexit
  logger.debug do
    args = []
    "called dynload_vmexit with #{args.inspect}"
  end

  bytes = u8(0xF1)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#dynload_vmload(vmindex, result) ⇒ Object

Load the selected VM



9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
# File 'lib/lignite/ev3_ops.rb', line 9131

def dynload_vmload(vmindex, result)
  logger.debug do
    args = [vmindex, result]
    "called dynload_vmload with #{args.inspect}"
  end

  bytes = u8(0xF0)
  bytes += param_simple(vmindex)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#errorObject

This code does not exist in normal program



7
8
9
10
11
12
13
14
15
16
# File 'lib/lignite/ev3_ops.rb', line 7

def error
  logger.debug do
    args = []
    "called error with #{args.inspect}"
  end

  bytes = u8(0x00)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file(*args) ⇒ Object



7385
7386
7387
7388
7389
7390
# File 'lib/lignite/ev3_ops.rb', line 7385

def file(*args)
  logger.debug "called file with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_FILE.fetch(cvalue)
  __send__("file_#{csym}", *args)
end

#file_close(handle) ⇒ Object

Close file



6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
# File 'lib/lignite/ev3_ops.rb', line 6869

def file_close(handle)
  logger.debug do
    args = [handle]
    "called file_close with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(7)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_close_log(handle, name) ⇒ Object

Close data log file



7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
# File 'lib/lignite/ev3_ops.rb', line 7074

def file_close_log(handle, name)
  logger.debug do
    args = [handle, name]
    "called file_close_log with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(17)
  bytes += param_simple(handle)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_del_cache_file(string) ⇒ Object



7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
# File 'lib/lignite/ev3_ops.rb', line 7191

def file_del_cache_file(string)
  logger.debug do
    args = [string]
    "called file_del_cache_file with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(23)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_del_subfolder(name, item) ⇒ Object



7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
# File 'lib/lignite/ev3_ops.rb', line 7209

def file_del_subfolder(name, item)
  logger.debug do
    args = [name, item]
    "called file_del_subfolder with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(24)
  bytes += param_simple(name)
  bytes += param_simple(item)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_cache_file(item, length, string) ⇒ Object



7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
# File 'lib/lignite/ev3_ops.rb', line 7172

def file_get_cache_file(item, length, string)
  logger.debug do
    args = [item, length, string]
    "called file_get_cache_file with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(22)
  bytes += param_simple(item)
  bytes += param_simple(length)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_cache_files(items) ⇒ Object



7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
# File 'lib/lignite/ev3_ops.rb', line 7136

def file_get_cache_files(items)
  logger.debug do
    args = [items]
    "called file_get_cache_files with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(20)
  bytes += param_simple(items)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_folders(name, items) ⇒ Object



6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
# File 'lib/lignite/ev3_ops.rb', line 6990

def file_get_folders(name, items)
  logger.debug do
    args = [name, items]
    "called file_get_folders with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(13)
  bytes += param_simple(name)
  bytes += param_simple(items)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_handle(name, handle, write) ⇒ Object

Get handle from filename



6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
# File 'lib/lignite/ev3_ops.rb', line 6911

def file_get_handle(name, handle, write)
  logger.debug do
    args = [name, handle, write]
    "called file_get_handle with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(9)
  bytes += param_simple(name)
  bytes += param_simple(handle)
  bytes += param_simple(write)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_image(name, prgid, item, ip) ⇒ Object



7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
# File 'lib/lignite/ev3_ops.rb', line 7095

def file_get_image(name, prgid, item, ip)
  logger.debug do
    args = [name, prgid, item, ip]
    "called file_get_image with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(18)
  bytes += param_simple(name)
  bytes += param_simple(prgid)
  bytes += param_simple(item)
  bytes += param_simple(ip)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_item(name, string, item) ⇒ Object



7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
# File 'lib/lignite/ev3_ops.rb', line 7117

def file_get_item(name, string, item)
  logger.debug do
    args = [name, string, item]
    "called file_get_item with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(19)
  bytes += param_simple(name)
  bytes += param_simple(string)
  bytes += param_simple(item)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_log_name(length, name) ⇒ Object

Get the current open log filename



7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
# File 'lib/lignite/ev3_ops.rb', line 7228

def file_get_log_name(length, name)
  logger.debug do
    args = [length, name]
    "called file_get_log_name with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(25)
  bytes += param_simple(length)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_log_sync_time(time, tick) ⇒ Object



7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
# File 'lib/lignite/ev3_ops.rb', line 7009

def file_get_log_sync_time(time, tick)
  logger.debug do
    args = [time, tick]
    "called file_get_log_sync_time with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(14)
  bytes += param_simple(time)
  bytes += param_simple(tick)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_pool(size, handle, ip) ⇒ Object



6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
# File 'lib/lignite/ev3_ops.rb', line 6951

def file_get_pool(size, handle, ip)
  logger.debug do
    args = [size, handle, ip]
    "called file_get_pool with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(11)
  bytes += param_simple(size)
  bytes += param_simple(handle)
  bytes += param_simple(ip)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_get_subfolder_name(name, item, length, string) ⇒ Object



7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
# File 'lib/lignite/ev3_ops.rb', line 7030

def file_get_subfolder_name(name, item, length, string)
  logger.debug do
    args = [name, item, length, string]
    "called file_get_subfolder_name with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(15)
  bytes += param_simple(name)
  bytes += param_simple(item)
  bytes += param_simple(length)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_load_image(prgid, name, size, ip) ⇒ Object



6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
# File 'lib/lignite/ev3_ops.rb', line 6889

def file_load_image(prgid, name, size, ip)
  logger.debug do
    args = [prgid, name, size, ip]
    "called file_load_image with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(8)
  bytes += param_simple(prgid)
  bytes += param_simple(name)
  bytes += param_simple(size)
  bytes += param_simple(ip)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_make_folder(name, success) ⇒ Object

Make folder if not present



6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
# File 'lib/lignite/ev3_ops.rb', line 6931

def file_make_folder(name, success)
  logger.debug do
    args = [name, success]
    "called file_make_folder with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(10)
  bytes += param_simple(name)
  bytes += param_simple(success)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_md5sum(name, md5sum, success) ⇒ Object

Get md5 sum of a file



9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
# File 'lib/lignite/ev3_ops.rb', line 9114

def file_md5sum(name, md5sum, success)
  logger.debug do
    args = [name, md5sum, success]
    "called file_md5sum with #{args.inspect}"
  end

  bytes = u8(0xE6)
  bytes += param_simple(name)
  bytes += param_simple(md5sum)
  bytes += param_simple(success)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_move(source, dest) ⇒ Object

Move file SOURCE to DEST



7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
# File 'lib/lignite/ev3_ops.rb', line 7337

def file_move(source, dest)
  logger.debug do
    args = [source, dest]
    "called file_move with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(31)
  bytes += param_simple(source)
  bytes += param_simple(dest)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_open_append(name, handle) ⇒ Object

Create file or open for append



6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
# File 'lib/lignite/ev3_ops.rb', line 6721

def file_open_append(name, handle)
  logger.debug do
    args = [name, handle]
    "called file_open_append with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(0)
  bytes += param_simple(name)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_open_log(name, syncedtime, syncedtick, nowtick, sample_interval_in_ms, duration_in_ms, sdata, handle) ⇒ Object

Create file for data logging



7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
# File 'lib/lignite/ev3_ops.rb', line 7253

def file_open_log(name, syncedtime, syncedtick, nowtick, sample_interval_in_ms, duration_in_ms, sdata, handle)
  logger.debug do
    args = [name, syncedtime, syncedtick, nowtick, sample_interval_in_ms, duration_in_ms, sdata, handle]
    "called file_open_log with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(27)
  bytes += param_simple(name)
  bytes += param_simple(syncedtime)
  bytes += param_simple(syncedtick)
  bytes += param_simple(nowtick)
  bytes += param_simple(sample_interval_in_ms)
  bytes += param_simple(duration_in_ms)
  bytes += param_simple(sdata)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_open_read(name, handle, size) ⇒ Object

Open file for read



6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
# File 'lib/lignite/ev3_ops.rb', line 6741

def file_open_read(name, handle, size)
  logger.debug do
    args = [name, handle, size]
    "called file_open_read with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(1)
  bytes += param_simple(name)
  bytes += param_simple(handle)
  bytes += param_simple(size)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_open_write(name, handle) ⇒ Object

Create file for write



6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
# File 'lib/lignite/ev3_ops.rb', line 6761

def file_open_write(name, handle)
  logger.debug do
    args = [name, handle]
    "called file_open_write with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(2)
  bytes += param_simple(name)
  bytes += param_simple(handle)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_put_cache_file(string) ⇒ Object



7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
# File 'lib/lignite/ev3_ops.rb', line 7153

def file_put_cache_file(string)
  logger.debug do
    args = [string]
    "called file_put_cache_file with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(21)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_read_bytes(handle, bytes, destination) ⇒ Object

Read a number of bytes from file



7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
# File 'lib/lignite/ev3_ops.rb', line 7279

def file_read_bytes(handle, bytes, destination)
  logger.debug do
    args = [handle, bytes, destination]
    "called file_read_bytes with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(28)
  bytes += param_simple(handle)
  bytes += param_simple(bytes)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_read_text(handle, del, length, text) ⇒ Object

Read text from file



6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
# File 'lib/lignite/ev3_ops.rb', line 6828

def file_read_text(handle, del, length, text)
  logger.debug do
    args = [handle, del, length, text]
    "called file_read_text with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(5)
  bytes += param_simple(handle)
  bytes += param_simple(del)
  bytes += param_simple(length)
  bytes += param_simple(text)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_read_value(handle, del, value) ⇒ Object

Read floating point value from file



6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
# File 'lib/lignite/ev3_ops.rb', line 6781

def file_read_value(handle, del, value)
  logger.debug do
    args = [handle, del, value]
    "called file_read_value with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(3)
  bytes += param_simple(handle)
  bytes += param_simple(del)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_remove(name) ⇒ Object

Delete file



7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
# File 'lib/lignite/ev3_ops.rb', line 7319

def file_remove(name)
  logger.debug do
    args = [name]
    "called file_remove with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(30)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_set_log_sync_time(time, tick) ⇒ Object



6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
# File 'lib/lignite/ev3_ops.rb', line 6971

def file_set_log_sync_time(time, tick)
  logger.debug do
    args = [time, tick]
    "called file_set_log_sync_time with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(12)
  bytes += param_simple(time)
  bytes += param_simple(tick)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_write_bytes(handle, bytes, source) ⇒ Object

Write a number of bytes to file



7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
# File 'lib/lignite/ev3_ops.rb', line 7300

def file_write_bytes(handle, bytes, source)
  logger.debug do
    args = [handle, bytes, source]
    "called file_write_bytes with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(29)
  bytes += param_simple(handle)
  bytes += param_simple(bytes)
  bytes += param_simple(source)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_write_log(handle, time, items, values) ⇒ Object

Write time slot samples to file



7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
# File 'lib/lignite/ev3_ops.rb', line 7053

def file_write_log(handle, time, items, values)
  logger.debug do
    args = [handle, time, items, values]
    "called file_write_log with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(16)
  bytes += param_simple(handle)
  bytes += param_simple(time)
  bytes += param_simple(items)
  bytes += param_simple(values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_write_text(handle, del, text) ⇒ Object

Write text to file



6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
# File 'lib/lignite/ev3_ops.rb', line 6850

def file_write_text(handle, del, text)
  logger.debug do
    args = [handle, del, text]
    "called file_write_text with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(6)
  bytes += param_simple(handle)
  bytes += param_simple(del)
  bytes += param_simple(text)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#file_write_value(handle, del, value, figures, decimals) ⇒ Object

Write floating point value to file



6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
# File 'lib/lignite/ev3_ops.rb', line 6804

def file_write_value(handle, del, value, figures, decimals)
  logger.debug do
    args = [handle, del, value, figures, decimals]
    "called file_write_value with #{args.inspect}"
  end

  bytes = u8(0xC0)
  bytes += param_simple(4)
  bytes += param_simple(handle)
  bytes += param_simple(del)
  bytes += param_simple(value)
  bytes += param_simple(figures)
  bytes += param_simple(decimals)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#filename(*args) ⇒ Object



7953
7954
7955
7956
7957
7958
# File 'lib/lignite/ev3_ops.rb', line 7953

def filename(*args)
  logger.debug "called filename with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_FILENAME.fetch(cvalue)
  __send__("filename_#{csym}", *args)
end

#filename_check(filename, ok) ⇒ Object

Check filename



7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
# File 'lib/lignite/ev3_ops.rb', line 7875

def filename_check(filename, ok)
  logger.debug do
    args = [filename, ok]
    "called filename_check with #{args.inspect}"
  end

  bytes = u8(0xC6)
  bytes += param_simple(20)
  bytes += param_simple(filename)
  bytes += param_simple(ok)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#filename_exist(name, flag) ⇒ Object

Test if file exists



7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
# File 'lib/lignite/ev3_ops.rb', line 7785

def filename_exist(name, flag)
  logger.debug do
    args = [name, flag]
    "called filename_exist with #{args.inspect}"
  end

  bytes = u8(0xC6)
  bytes += param_simple(16)
  bytes += param_simple(name)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#filename_get_foldername(length, foldername) ⇒ Object

Get current folder name



7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
# File 'lib/lignite/ev3_ops.rb', line 7928

def filename_get_foldername(length, foldername)
  logger.debug do
    args = [length, foldername]
    "called filename_get_foldername with #{args.inspect}"
  end

  bytes = u8(0xC6)
  bytes += param_simple(23)
  bytes += param_simple(length)
  bytes += param_simple(foldername)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#filename_merge(folder, name, ext, length, filename) ⇒ Object

Merge Folder, name, extension into filename



7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
# File 'lib/lignite/ev3_ops.rb', line 7853

def filename_merge(folder, name, ext, length, filename)
  logger.debug do
    args = [folder, name, ext, length, filename]
    "called filename_merge with #{args.inspect}"
  end

  bytes = u8(0xC6)
  bytes += param_simple(19)
  bytes += param_simple(folder)
  bytes += param_simple(name)
  bytes += param_simple(ext)
  bytes += param_simple(length)
  bytes += param_simple(filename)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#filename_pack(filename) ⇒ Object

Pack file or folder into “raf” container



7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
# File 'lib/lignite/ev3_ops.rb', line 7893

def filename_pack(filename)
  logger.debug do
    args = [filename]
    "called filename_pack with #{args.inspect}"
  end

  bytes = u8(0xC6)
  bytes += param_simple(21)
  bytes += param_simple(filename)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#filename_split(filename, length, folder, name, ext) ⇒ Object

Split filename into Folder, name, extension



7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
# File 'lib/lignite/ev3_ops.rb', line 7828

def filename_split(filename, length, folder, name, ext)
  logger.debug do
    args = [filename, length, folder, name, ext]
    "called filename_split with #{args.inspect}"
  end

  bytes = u8(0xC6)
  bytes += param_simple(18)
  bytes += param_simple(filename)
  bytes += param_simple(length)
  bytes += param_simple(folder)
  bytes += param_simple(name)
  bytes += param_simple(ext)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#filename_totalsize(name, files, size) ⇒ Object

Calculate folder/file size



7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
# File 'lib/lignite/ev3_ops.rb', line 7805

def filename_totalsize(name, files, size)
  logger.debug do
    args = [name, files, size]
    "called filename_totalsize with #{args.inspect}"
  end

  bytes = u8(0xC6)
  bytes += param_simple(17)
  bytes += param_simple(name)
  bytes += param_simple(files)
  bytes += param_simple(size)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#filename_unpack(filename) ⇒ Object

Unpack “raf” container



7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
# File 'lib/lignite/ev3_ops.rb', line 7910

def filename_unpack(filename)
  logger.debug do
    args = [filename]
    "called filename_unpack with #{args.inspect}"
  end

  bytes = u8(0xC6)
  bytes += param_simple(22)
  bytes += param_simple(filename)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#info(*args) ⇒ Object



2333
2334
2335
2336
2337
2338
# File 'lib/lignite/ev3_ops.rb', line 2333

def info(*args)
  logger.debug "called info with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_INFO.fetch(cvalue)
  __send__("info_#{csym}", *args)
end

#info_errortext(number, length, destination) ⇒ Object

Convert error number to text string



2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
# File 'lib/lignite/ev3_ops.rb', line 2240

def info_errortext(number, length, destination)
  logger.debug do
    args = [number, length, destination]
    "called info_errortext with #{args.inspect}"
  end

  bytes = u8(0x7C)
  bytes += param_simple(3)
  bytes += param_simple(number)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#info_get_error(number) ⇒ Object



2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
# File 'lib/lignite/ev3_ops.rb', line 2221

def info_get_error(number)
  logger.debug do
    args = [number]
    "called info_get_error with #{args.inspect}"
  end

  bytes = u8(0x7C)
  bytes += param_simple(2)
  bytes += param_simple(number)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#info_get_minutes(value) ⇒ Object



2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
# File 'lib/lignite/ev3_ops.rb', line 2293

def info_get_minutes(value)
  logger.debug do
    args = [value]
    "called info_get_minutes with #{args.inspect}"
  end

  bytes = u8(0x7C)
  bytes += param_simple(6)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#info_get_volume(value) ⇒ Object



2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
# File 'lib/lignite/ev3_ops.rb', line 2259

def info_get_volume(value)
  logger.debug do
    args = [value]
    "called info_get_volume with #{args.inspect}"
  end

  bytes = u8(0x7C)
  bytes += param_simple(4)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#info_set_error(number) ⇒ Object



2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
# File 'lib/lignite/ev3_ops.rb', line 2204

def info_set_error(number)
  logger.debug do
    args = [number]
    "called info_set_error with #{args.inspect}"
  end

  bytes = u8(0x7C)
  bytes += param_simple(1)
  bytes += param_simple(number)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#info_set_minutes(value) ⇒ Object



2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
# File 'lib/lignite/ev3_ops.rb', line 2310

def info_set_minutes(value)
  logger.debug do
    args = [value]
    "called info_set_minutes with #{args.inspect}"
  end

  bytes = u8(0x7C)
  bytes += param_simple(7)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#info_set_volume(value) ⇒ Object



2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
# File 'lib/lignite/ev3_ops.rb', line 2276

def info_set_volume(value)
  logger.debug do
    args = [value]
    "called info_set_volume with #{args.inspect}"
  end

  bytes = u8(0x7C)
  bytes += param_simple(5)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device(*args) ⇒ Object



6176
6177
6178
6179
6180
6181
# File 'lib/lignite/ev3_ops.rb', line 6176

def input_device(*args)
  logger.debug "called input_device with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_INPUT_DEVICE.fetch(cvalue)
  __send__("input_device_#{csym}", *args)
end

#input_device_cal_default(type, mode) ⇒ Object

Apply the default minimum and maximum raw value for device type to be used in scaling PCT and SI



5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
# File 'lib/lignite/ev3_ops.rb', line 5630

def input_device_cal_default(type, mode)
  logger.debug do
    args = [type, mode]
    "called input_device_cal_default with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(4)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_cal_max(type, mode, cal_max) ⇒ Object

Apply new maximum raw value for device type to be used in scaling PCT and SI



5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
# File 'lib/lignite/ev3_ops.rb', line 5717

def input_device_cal_max(type, mode, cal_max)
  logger.debug do
    args = [type, mode, cal_max]
    "called input_device_cal_max with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(8)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_simple(cal_max)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_cal_min(type, mode, cal_min) ⇒ Object

Apply new minimum raw value for device type to be used in scaling PCT and SI



5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
# File 'lib/lignite/ev3_ops.rb', line 5696

def input_device_cal_min(type, mode, cal_min)
  logger.debug do
    args = [type, mode, cal_min]
    "called input_device_cal_min with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(7)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_simple(cal_min)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_cal_minmax(type, mode, cal_min, cal_max) ⇒ Object

Apply new minimum and maximum raw value for device type to be used in scaling PCT and SI



5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/lignite/ev3_ops.rb', line 5609

def input_device_cal_minmax(type, mode, cal_min, cal_max)
  logger.debug do
    args = [type, mode, cal_min, cal_max]
    "called input_device_cal_minmax with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(3)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_simple(cal_min)
  bytes += param_simple(cal_max)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_clr_all(layer) ⇒ Object

Clear all devices (e.c. counters, angle, …)



5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
# File 'lib/lignite/ev3_ops.rb', line 5767

def input_device_clr_all(layer)
  logger.debug do
    args = [layer]
    "called input_device_clr_all with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(10)
  bytes += param_simple(layer)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_clr_changes(layer, no) ⇒ Object

Clear changes and bumps



6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
# File 'lib/lignite/ev3_ops.rb', line 6014

def input_device_clr_changes(layer, no)
  logger.debug do
    args = [layer, no]
    "called input_device_clr_changes with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(26)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_bumps(layer, no, value) ⇒ Object



6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
# File 'lib/lignite/ev3_ops.rb', line 6132

def input_device_get_bumps(layer, no, value)
  logger.debug do
    args = [layer, no, value]
    "called input_device_get_bumps with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(31)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_changes(layer, no, value) ⇒ Object



5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
# File 'lib/lignite/ev3_ops.rb', line 5994

def input_device_get_changes(layer, no, value)
  logger.debug do
    args = [layer, no, value]
    "called input_device_get_changes with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(25)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_connection(layer, no, conn) ⇒ Object

Get device connection type (for test)



5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
# File 'lib/lignite/ev3_ops.rb', line 5807

def input_device_get_connection(layer, no, conn)
  logger.debug do
    args = [layer, no, conn]
    "called input_device_get_connection with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(12)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(conn)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_figures(layer, no, figures, decimals) ⇒ Object



5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
# File 'lib/lignite/ev3_ops.rb', line 5972

def input_device_get_figures(layer, no, figures, decimals)
  logger.debug do
    args = [layer, no, figures, decimals]
    "called input_device_get_figures with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(24)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(figures)
  bytes += param_simple(decimals)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_format(layer, no, datasets, format, modes, views) ⇒ Object



5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
# File 'lib/lignite/ev3_ops.rb', line 5584

def input_device_get_format(layer, no, datasets, format, modes, views)
  logger.debug do
    args = [layer, no, datasets, format, modes, views]
    "called input_device_get_format with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(2)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(datasets)
  bytes += param_simple(format)
  bytes += param_simple(modes)
  bytes += param_simple(views)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_minmax(layer, no, min, max) ⇒ Object



6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
# File 'lib/lignite/ev3_ops.rb', line 6110

def input_device_get_minmax(layer, no, min, max)
  logger.debug do
    args = [layer, no, min, max]
    "called input_device_get_minmax with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(30)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(min)
  bytes += param_simple(max)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_modename(layer, no, mode, length, destination) ⇒ Object



5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
# File 'lib/lignite/ev3_ops.rb', line 5925

def input_device_get_modename(layer, no, mode, length, destination)
  logger.debug do
    args = [layer, no, mode, length, destination]
    "called input_device_get_modename with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(22)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(mode)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_name(layer, no, length, destination) ⇒ Object



5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
# File 'lib/lignite/ev3_ops.rb', line 5901

def input_device_get_name(layer, no, length, destination)
  logger.debug do
    args = [layer, no, length, destination]
    "called input_device_get_name with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(21)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_raw(layer, no, value) ⇒ Object



5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
# File 'lib/lignite/ev3_ops.rb', line 5786

def input_device_get_raw(layer, no, value)
  logger.debug do
    args = [layer, no, value]
    "called input_device_get_raw with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(11)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_symbol(layer, no, length, destination) ⇒ Object



5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
# File 'lib/lignite/ev3_ops.rb', line 5674

def input_device_get_symbol(layer, no, length, destination)
  logger.debug do
    args = [layer, no, length, destination]
    "called input_device_get_symbol with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(6)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_get_typemode(layer, no, type, mode) ⇒ Object

Get device type and mode



5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
# File 'lib/lignite/ev3_ops.rb', line 5651

def input_device_get_typemode(layer, no, type, mode)
  logger.debug do
    args = [layer, no, type, mode]
    "called input_device_get_typemode with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(5)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_insert_type(typedata, force, error) ⇒ Object

Insert type in table



5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
# File 'lib/lignite/ev3_ops.rb', line 5560

def input_device_insert_type(typedata, force, error)
  logger.debug do
    args = [typedata, force, error]
    "called input_device_insert_type with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(1)
  bytes += param_simple(typedata)
  bytes += param_simple(force)
  bytes += param_simple(error)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_list(length, array, changed) ⇒ Object

Read all available devices on input and output(chain)



5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
# File 'lib/lignite/ev3_ops.rb', line 5539

def input_device_list(length, array, changed)
  logger.debug do
    args = [length, array, changed]
    "called input_device_list with #{args.inspect}"
  end

  bytes = u8(0x98)
  bytes += param_simple(length)
  bytes += param_simple(array)
  bytes += param_simple(changed)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_ready_iic(layer, no, wrlng, wrdata, rdlng, rddata, result) ⇒ Object

Generic setup/read IIC sensors with result



5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
# File 'lib/lignite/ev3_ops.rb', line 5875

def input_device_ready_iic(layer, no, wrlng, wrdata, rdlng, rddata, result)
  logger.debug do
    args = [layer, no, wrlng, wrdata, rdlng, rddata, result]
    "called input_device_ready_iic with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(15)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(wrlng)
  bytes += param_simple(wrdata)
  bytes += param_simple(rdlng)
  bytes += param_simple(rddata)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_ready_pct(layer, no, type, mode, *values) ⇒ Object



6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
# File 'lib/lignite/ev3_ops.rb', line 6036

def input_device_ready_pct(layer, no, type, mode, *values)
  logger.debug do
    args = [layer, no, type, mode, *values]
    "called input_device_ready_pct with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(27)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_multiple(*values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_ready_raw(layer, no, type, mode, *values) ⇒ Object



6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
# File 'lib/lignite/ev3_ops.rb', line 6061

def input_device_ready_raw(layer, no, type, mode, *values)
  logger.debug do
    args = [layer, no, type, mode, *values]
    "called input_device_ready_raw with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(28)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_multiple(*values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_ready_si(layer, no, type, mode, *values) ⇒ Object



6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
# File 'lib/lignite/ev3_ops.rb', line 6086

def input_device_ready_si(layer, no, type, mode, *values)
  logger.debug do
    args = [layer, no, type, mode, *values]
    "called input_device_ready_si with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(29)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_multiple(*values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_set_raw(layer, no, type, value) ⇒ Object



5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
# File 'lib/lignite/ev3_ops.rb', line 5949

def input_device_set_raw(layer, no, type, value)
  logger.debug do
    args = [layer, no, type, value]
    "called input_device_set_raw with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(23)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_set_typemode(type, mode, newtype, newmode, error) ⇒ Object

Set new type and mode on existing devices



5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
# File 'lib/lignite/ev3_ops.rb', line 5848

def input_device_set_typemode(type, mode, newtype, newmode, error)
  logger.debug do
    args = [type, mode, newtype, newmode, error]
    "called input_device_set_typemode with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(14)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_simple(newtype)
  bytes += param_simple(newmode)
  bytes += param_simple(error)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_setup(layer, no, repeat, time, write_len, write_data, read_len, read_data) ⇒ Object

Generic setup/read IIC sensors



5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
# File 'lib/lignite/ev3_ops.rb', line 5743

def input_device_setup(layer, no, repeat, time, write_len, write_data, read_len, read_data)
  logger.debug do
    args = [layer, no, repeat, time, write_len, write_data, read_len, read_data]
    "called input_device_setup with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(9)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(repeat)
  bytes += param_simple(time)
  bytes += param_simple(write_len)
  bytes += param_simple(write_data)
  bytes += param_simple(read_len)
  bytes += param_simple(read_data)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_device_stop_all(layer) ⇒ Object

Stop all devices (e.c. motors, …)



5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
# File 'lib/lignite/ev3_ops.rb', line 5826

def input_device_stop_all(layer)
  logger.debug do
    args = [layer]
    "called input_device_stop_all with #{args.inspect}"
  end

  bytes = u8(0x99)
  bytes += param_simple(13)
  bytes += param_simple(layer)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_iic_read(layer, no, rdlng, rddata, result) ⇒ Object

Read I2C data from specified port



9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
# File 'lib/lignite/ev3_ops.rb', line 9018

def input_iic_read(layer, no, rdlng, rddata, result)
  logger.debug do
    args = [layer, no, rdlng, rddata, result]
    "called input_iic_read with #{args.inspect}"
  end

  bytes = u8(0xE1)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(rdlng)
  bytes += param_simple(rddata)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_iic_status(layer, no, result) ⇒ Object

Read I2C status of specified port



9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
# File 'lib/lignite/ev3_ops.rb', line 9038

def input_iic_status(layer, no, result)
  logger.debug do
    args = [layer, no, result]
    "called input_iic_status with #{args.inspect}"
  end

  bytes = u8(0xE2)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_iic_write(layer, no, wrlng, wrdata, rdlng, result) ⇒ Object

Write I2C data to specified port



9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
# File 'lib/lignite/ev3_ops.rb', line 9059

def input_iic_write(layer, no, wrlng, wrdata, rdlng, result)
  logger.debug do
    args = [layer, no, wrlng, wrdata, rdlng, result]
    "called input_iic_write with #{args.inspect}"
  end

  bytes = u8(0xE3)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(wrlng)
  bytes += param_simple(wrdata)
  bytes += param_simple(rdlng)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_read(layer, no, type, mode, pct) ⇒ Object

Read device value in Percent



6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
# File 'lib/lignite/ev3_ops.rb', line 6189

def input_read(layer, no, type, mode, pct)
  logger.debug do
    args = [layer, no, type, mode, pct]
    "called input_read with #{args.inspect}"
  end

  bytes = u8(0x9A)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_simple(pct)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_readext(layer, no, type, mode, format, *values) ⇒ Object

Read device value



6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
# File 'lib/lignite/ev3_ops.rb', line 6268

def input_readext(layer, no, type, mode, format, *values)
  logger.debug do
    args = [layer, no, type, mode, format, *values]
    "called input_readext with #{args.inspect}"
  end

  bytes = u8(0x9E)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_simple(format)
  bytes += param_multiple(*values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_readsi(layer, no, type, mode, si) ⇒ Object

Read device value in SI units



6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
# File 'lib/lignite/ev3_ops.rb', line 6245

def input_readsi(layer, no, type, mode, si)
  logger.debug do
    args = [layer, no, type, mode, si]
    "called input_readsi with #{args.inspect}"
  end

  bytes = u8(0x9D)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  bytes += param_simple(mode)
  bytes += param_simple(si)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_ready(layer, no) ⇒ Object

Wait for device ready (wait for valid data)



6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
# File 'lib/lignite/ev3_ops.rb', line 6226

def input_ready(layer, no)
  logger.debug do
    args = [layer, no]
    "called input_ready with #{args.inspect}"
  end

  bytes = u8(0x9C)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_sample(time, samples, init, devices, types, modes, datasets, values) ⇒ Object



5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
# File 'lib/lignite/ev3_ops.rb', line 5516

def input_sample(time, samples, init, devices, types, modes, datasets, values)
  logger.debug do
    args = [time, samples, init, devices, types, modes, datasets, values]
    "called input_sample with #{args.inspect}"
  end

  bytes = u8(0x97)
  bytes += param_simple(time)
  bytes += param_simple(samples)
  bytes += param_simple(init)
  bytes += param_simple(devices)
  bytes += param_simple(types)
  bytes += param_simple(modes)
  bytes += param_simple(datasets)
  bytes += param_simple(values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_set_autoid(layer, no, enable) ⇒ Object

Enabled or disable auto-id for a specific sensor port



9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
# File 'lib/lignite/ev3_ops.rb', line 9080

def input_set_autoid(layer, no, enable)
  logger.debug do
    args = [layer, no, enable]
    "called input_set_autoid with #{args.inspect}"
  end

  bytes = u8(0xE4)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(enable)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_set_conn(layer, no, conn) ⇒ Object

Set the connection type for a specific port



8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
# File 'lib/lignite/ev3_ops.rb', line 8998

def input_set_conn(layer, no, conn)
  logger.debug do
    args = [layer, no, conn]
    "called input_set_conn with #{args.inspect}"
  end

  bytes = u8(0xE0)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(conn)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_test(layer, no, busy) ⇒ Object

Test if device busy (changing type or mode)



6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
# File 'lib/lignite/ev3_ops.rb', line 6209

def input_test(layer, no, busy)
  logger.debug do
    args = [layer, no, busy]
    "called input_test with #{args.inspect}"
  end

  bytes = u8(0x9B)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(busy)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#input_write(layer, no, bytes, data) ⇒ Object

Write data to device (only UART devices)



6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
# File 'lib/lignite/ev3_ops.rb', line 6290

def input_write(layer, no, bytes, data)
  logger.debug do
    args = [layer, no, bytes, data]
    "called input_write with #{args.inspect}"
  end

  bytes = u8(0x9F)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(bytes)
  bytes += param_simple(data)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr(offset) ⇒ Object

Branch unconditionally relative



1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
# File 'lib/lignite/ev3_ops.rb', line 1125

def jr(offset)
  logger.debug do
    args = [offset]
    "called jr with #{args.inspect}"
  end

  bytes = u8(0x40)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_eq16(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is equal to RIGHT



1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
# File 'lib/lignite/ev3_ops.rb', line 1933

def jr_eq16(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_eq16 with #{args.inspect}"
  end

  bytes = u8(0x6D)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_eq32(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is equal to RIGHT



1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
# File 'lib/lignite/ev3_ops.rb', line 1951

def jr_eq32(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_eq32 with #{args.inspect}"
  end

  bytes = u8(0x6E)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_eq8(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is equal to RIGHT



1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
# File 'lib/lignite/ev3_ops.rb', line 1915

def jr_eq8(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_eq8 with #{args.inspect}"
  end

  bytes = u8(0x6C)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_eqf(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is equal to RIGHT



1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
# File 'lib/lignite/ev3_ops.rb', line 1969

def jr_eqf(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_eqf with #{args.inspect}"
  end

  bytes = u8(0x6F)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_false(flag, offset) ⇒ Object

Branch relative if FLAG is FALSE (zero)



1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
# File 'lib/lignite/ev3_ops.rb', line 1140

def jr_false(flag, offset)
  logger.debug do
    args = [flag, offset]
    "called jr_false with #{args.inspect}"
  end

  bytes = u8(0x41)
  bytes += param_simple(flag)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_gt16(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is greater than RIGHT



1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
# File 'lib/lignite/ev3_ops.rb', line 1861

def jr_gt16(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_gt16 with #{args.inspect}"
  end

  bytes = u8(0x69)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_gt32(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is greater than RIGHT



1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
# File 'lib/lignite/ev3_ops.rb', line 1879

def jr_gt32(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_gt32 with #{args.inspect}"
  end

  bytes = u8(0x6A)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_gt8(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is greater than RIGHT



1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
# File 'lib/lignite/ev3_ops.rb', line 1843

def jr_gt8(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_gt8 with #{args.inspect}"
  end

  bytes = u8(0x68)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_gteq16(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is greater than or equal to RIGHT



2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
# File 'lib/lignite/ev3_ops.rb', line 2149

def jr_gteq16(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_gteq16 with #{args.inspect}"
  end

  bytes = u8(0x79)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_gteq32(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is greater than or equal to RIGHT



2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
# File 'lib/lignite/ev3_ops.rb', line 2167

def jr_gteq32(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_gteq32 with #{args.inspect}"
  end

  bytes = u8(0x7A)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_gteq8(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is greater than or equal to RIGHT



2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
# File 'lib/lignite/ev3_ops.rb', line 2131

def jr_gteq8(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_gteq8 with #{args.inspect}"
  end

  bytes = u8(0x78)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_gteqf(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is greater than or equal to RIGHT



2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
# File 'lib/lignite/ev3_ops.rb', line 2185

def jr_gteqf(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_gteqf with #{args.inspect}"
  end

  bytes = u8(0x7B)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_gtf(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is greater than RIGHT



1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
# File 'lib/lignite/ev3_ops.rb', line 1897

def jr_gtf(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_gtf with #{args.inspect}"
  end

  bytes = u8(0x6B)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_lt16(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is less than RIGHT



1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
# File 'lib/lignite/ev3_ops.rb', line 1789

def jr_lt16(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_lt16 with #{args.inspect}"
  end

  bytes = u8(0x65)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_lt32(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is less than RIGHT



1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
# File 'lib/lignite/ev3_ops.rb', line 1807

def jr_lt32(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_lt32 with #{args.inspect}"
  end

  bytes = u8(0x66)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_lt8(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is less than RIGHT



1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
# File 'lib/lignite/ev3_ops.rb', line 1771

def jr_lt8(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_lt8 with #{args.inspect}"
  end

  bytes = u8(0x64)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_lteq16(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is less than or equal to RIGHT



2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
# File 'lib/lignite/ev3_ops.rb', line 2077

def jr_lteq16(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_lteq16 with #{args.inspect}"
  end

  bytes = u8(0x75)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_lteq32(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is less than or equal to RIGHT



2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
# File 'lib/lignite/ev3_ops.rb', line 2095

def jr_lteq32(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_lteq32 with #{args.inspect}"
  end

  bytes = u8(0x76)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_lteq8(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is less than or equal to RIGHT



2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
# File 'lib/lignite/ev3_ops.rb', line 2059

def jr_lteq8(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_lteq8 with #{args.inspect}"
  end

  bytes = u8(0x74)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_lteqf(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is less than or equal to RIGHT



2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
# File 'lib/lignite/ev3_ops.rb', line 2113

def jr_lteqf(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_lteqf with #{args.inspect}"
  end

  bytes = u8(0x77)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_ltf(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is less than RIGHT



1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
# File 'lib/lignite/ev3_ops.rb', line 1825

def jr_ltf(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_ltf with #{args.inspect}"
  end

  bytes = u8(0x67)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_nan(value, offset) ⇒ Object

Branch relative if VALUE is NAN (not a number)



1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
# File 'lib/lignite/ev3_ops.rb', line 1172

def jr_nan(value, offset)
  logger.debug do
    args = [value, offset]
    "called jr_nan with #{args.inspect}"
  end

  bytes = u8(0x43)
  bytes += param_simple(value)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_neq16(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is not equal to RIGHT



2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
# File 'lib/lignite/ev3_ops.rb', line 2005

def jr_neq16(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_neq16 with #{args.inspect}"
  end

  bytes = u8(0x71)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_neq32(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is not equal to RIGHT



2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
# File 'lib/lignite/ev3_ops.rb', line 2023

def jr_neq32(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_neq32 with #{args.inspect}"
  end

  bytes = u8(0x72)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_neq8(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is not equal to RIGHT



1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
# File 'lib/lignite/ev3_ops.rb', line 1987

def jr_neq8(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_neq8 with #{args.inspect}"
  end

  bytes = u8(0x70)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_neqf(left, right, offset) ⇒ Object

Branch relative OFFSET if LEFT is not equal to RIGHT



2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
# File 'lib/lignite/ev3_ops.rb', line 2041

def jr_neqf(left, right, offset)
  logger.debug do
    args = [left, right, offset]
    "called jr_neqf with #{args.inspect}"
  end

  bytes = u8(0x73)
  bytes += param_simple(left)
  bytes += param_simple(right)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#jr_true(flag, offset) ⇒ Object

Branch relative if FLAG is TRUE (non zero)



1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
# File 'lib/lignite/ev3_ops.rb', line 1156

def jr_true(flag, offset)
  logger.debug do
    args = [flag, offset]
    "called jr_true with #{args.inspect}"
  end

  bytes = u8(0x42)
  bytes += param_simple(flag)
  bytes += param_simple(offset)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#keep_alive(minutes) ⇒ Object

Keep alive



5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
# File 'lib/lignite/ev3_ops.rb', line 5325

def keep_alive(minutes)
  logger.debug do
    args = [minutes]
    "called keep_alive with #{args.inspect}"
  end

  bytes = u8(0x90)
  bytes += param_simple(minutes)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mailbox_close(no) ⇒ Object

Closes mailbox indicated by NO



8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
# File 'lib/lignite/ev3_ops.rb', line 8982

def mailbox_close(no)
  logger.debug do
    args = [no]
    "called mailbox_close with #{args.inspect}"
  end

  bytes = u8(0xDD)
  bytes += param_simple(no)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mailbox_open(no, boxname, types, fifosize, values) ⇒ Object

Open a mail box on the brick



8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
# File 'lib/lignite/ev3_ops.rb', line 8894

def mailbox_open(no, boxname, types, fifosize, values)
  logger.debug do
    args = [no, boxname, types, fifosize, values]
    "called mailbox_open with #{args.inspect}"
  end

  bytes = u8(0xD8)
  bytes += param_simple(no)
  bytes += param_simple(boxname)
  bytes += param_simple(types)
  bytes += param_simple(fifosize)
  bytes += param_simple(values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mailbox_read(no, length, *values) ⇒ Object

Read data from mailbox specified by NO



8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
# File 'lib/lignite/ev3_ops.rb', line 8936

def mailbox_read(no, length, *values)
  logger.debug do
    args = [no, length, *values]
    "called mailbox_read with #{args.inspect}"
  end

  bytes = u8(0xDA)
  bytes += param_simple(no)
  bytes += param_simple(length)
  bytes += param_multiple(*values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mailbox_ready(no) ⇒ Object

Waiting from message to be read



8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
# File 'lib/lignite/ev3_ops.rb', line 8968

def mailbox_ready(no)
  logger.debug do
    args = [no]
    "called mailbox_ready with #{args.inspect}"
  end

  bytes = u8(0xDC)
  bytes += param_simple(no)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mailbox_size(no, size) ⇒ Object

Returns the size of the mailbox.



9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
# File 'lib/lignite/ev3_ops.rb', line 9097

def mailbox_size(no, size)
  logger.debug do
    args = [no, size]
    "called mailbox_size with #{args.inspect}"
  end

  bytes = u8(0xE5)
  bytes += param_simple(no)
  bytes += param_simple(size)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mailbox_test(no, busy) ⇒ Object

Tests if new message has been read



8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
# File 'lib/lignite/ev3_ops.rb', line 8953

def mailbox_test(no, busy)
  logger.debug do
    args = [no, busy]
    "called mailbox_test with #{args.inspect}"
  end

  bytes = u8(0xDB)
  bytes += param_simple(no)
  bytes += param_simple(busy)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mailbox_write(brickname, hardware, boxname, type, *values) ⇒ Object

Write to mailbox in remote brick



8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
# File 'lib/lignite/ev3_ops.rb', line 8916

def mailbox_write(brickname, hardware, boxname, type, *values)
  logger.debug do
    args = [brickname, hardware, boxname, type, *values]
    "called mailbox_write with #{args.inspect}"
  end

  bytes = u8(0xD9)
  bytes += param_simple(brickname)
  bytes += param_simple(hardware)
  bytes += param_simple(boxname)
  bytes += param_simple(type)
  bytes += param_multiple(*values)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math(*args) ⇒ Object



5284
5285
5286
5287
5288
5289
# File 'lib/lignite/ev3_ops.rb', line 5284

def math(*args)
  logger.debug "called math with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_MATH.fetch(cvalue)
  __send__("math_#{csym}", *args)
end

#math_abs(x, r) ⇒ Object

Absolute r = fabs(x)



4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
# File 'lib/lignite/ev3_ops.rb', line 4951

def math_abs(x, r)
  logger.debug do
    args = [x, r]
    "called math_abs with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(6)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_acos(x, r) ⇒ Object

ACos (R = acos(X))



5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
# File 'lib/lignite/ev3_ops.rb', line 5122

def math_acos(x, r)
  logger.debug do
    args = [x, r]
    "called math_acos with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(15)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_asin(x, r) ⇒ Object

ASin (R = asinf(X))



5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
# File 'lib/lignite/ev3_ops.rb', line 5103

def math_asin(x, r)
  logger.debug do
    args = [x, r]
    "called math_asin with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(14)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_atan(x, r) ⇒ Object

ATan (R = atanf(X))



5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
# File 'lib/lignite/ev3_ops.rb', line 5141

def math_atan(x, r)
  logger.debug do
    args = [x, r]
    "called math_atan with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(16)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_ceil(x, r) ⇒ Object

Ceiling r = ceil(x)



4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
# File 'lib/lignite/ev3_ops.rb', line 4913

def math_ceil(x, r)
  logger.debug do
    args = [x, r]
    "called math_ceil with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(4)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_cos(x, r) ⇒ Object

Cos (R = cos(X))



5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
# File 'lib/lignite/ev3_ops.rb', line 5065

def math_cos(x, r)
  logger.debug do
    args = [x, r]
    "called math_cos with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(12)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_exp(x, r) ⇒ Object

e^x r = expf(x)



4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
# File 'lib/lignite/ev3_ops.rb', line 4854

def math_exp(x, r)
  logger.debug do
    args = [x, r]
    "called math_exp with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(1)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_floor(x, r) ⇒ Object

Floor r = floor(x)



4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
# File 'lib/lignite/ev3_ops.rb', line 4894

def math_floor(x, r)
  logger.debug do
    args = [x, r]
    "called math_floor with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(3)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_ln(x, r) ⇒ Object

Ln r = log(x)



5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
# File 'lib/lignite/ev3_ops.rb', line 5027

def math_ln(x, r)
  logger.debug do
    args = [x, r]
    "called math_ln with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(10)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_log(x, r) ⇒ Object

Log r = log10(x)



5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
# File 'lib/lignite/ev3_ops.rb', line 5008

def math_log(x, r)
  logger.debug do
    args = [x, r]
    "called math_log with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(9)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_mod(x, y, r) ⇒ Object

Modulo r = fmod(x,y)



4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
# File 'lib/lignite/ev3_ops.rb', line 4874

def math_mod(x, y, r)
  logger.debug do
    args = [x, y, r]
    "called math_mod with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(2)
  bytes += param_simple(x)
  bytes += param_simple(y)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_mod16(x, y, r) ⇒ Object

Modulo DATA16 r = x % y



5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
# File 'lib/lignite/ev3_ops.rb', line 5182

def math_mod16(x, y, r)
  logger.debug do
    args = [x, y, r]
    "called math_mod16 with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(18)
  bytes += param_simple(x)
  bytes += param_simple(y)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_mod32(x, y, r) ⇒ Object

Modulo DATA32 r = x % y



5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
# File 'lib/lignite/ev3_ops.rb', line 5203

def math_mod32(x, y, r)
  logger.debug do
    args = [x, y, r]
    "called math_mod32 with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(19)
  bytes += param_simple(x)
  bytes += param_simple(y)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_mod8(x, y, r) ⇒ Object

Modulo DATA8 r = x % y



5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
# File 'lib/lignite/ev3_ops.rb', line 5161

def math_mod8(x, y, r)
  logger.debug do
    args = [x, y, r]
    "called math_mod8 with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(17)
  bytes += param_simple(x)
  bytes += param_simple(y)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_negate(x, r) ⇒ Object

Negate r = 0.0 - x



4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
# File 'lib/lignite/ev3_ops.rb', line 4970

def math_negate(x, r)
  logger.debug do
    args = [x, r]
    "called math_negate with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(7)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_pow(x, y, r) ⇒ Object

Exponent r = powf(x,y)



5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
# File 'lib/lignite/ev3_ops.rb', line 5224

def math_pow(x, y, r)
  logger.debug do
    args = [x, y, r]
    "called math_pow with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(20)
  bytes += param_simple(x)
  bytes += param_simple(y)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_round(x, r) ⇒ Object

Round r = round(x)



4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
# File 'lib/lignite/ev3_ops.rb', line 4932

def math_round(x, r)
  logger.debug do
    args = [x, r]
    "called math_round with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(5)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_sin(x, r) ⇒ Object

Sin (R = sinf(X))



5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
# File 'lib/lignite/ev3_ops.rb', line 5046

def math_sin(x, r)
  logger.debug do
    args = [x, r]
    "called math_sin with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(11)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_sqrt(x, r) ⇒ Object

Squareroot r = sqrt(x)



4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
# File 'lib/lignite/ev3_ops.rb', line 4989

def math_sqrt(x, r)
  logger.debug do
    args = [x, r]
    "called math_sqrt with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(8)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_tan(x, r) ⇒ Object

Tan (R = tanf(X))



5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
# File 'lib/lignite/ev3_ops.rb', line 5084

def math_tan(x, r)
  logger.debug do
    args = [x, r]
    "called math_tan with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(13)
  bytes += param_simple(x)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#math_trunc(x, p, r) ⇒ Object

Truncate r = (float)((int)(x * pow(y))) / pow(y)



5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
# File 'lib/lignite/ev3_ops.rb', line 5245

def math_trunc(x, p, r)
  logger.debug do
    args = [x, p, r]
    "called math_trunc with #{args.inspect}"
  end

  bytes = u8(0x8D)
  bytes += param_simple(21)
  bytes += param_simple(x)
  bytes += param_simple(p)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#memory_read(prgid, objid, offset, size, array) ⇒ Object

Read VM memory



2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
# File 'lib/lignite/ev3_ops.rb', line 2620

def memory_read(prgid, objid, offset, size, array)
  logger.debug do
    args = [prgid, objid, offset, size, array]
    "called memory_read with #{args.inspect}"
  end

  bytes = u8(0x7F)
  bytes += param_simple(prgid)
  bytes += param_simple(objid)
  bytes += param_simple(offset)
  bytes += param_simple(size)
  bytes += param_simple(array)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#memory_usage(total, free) ⇒ Object

Get memory usage



7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
# File 'lib/lignite/ev3_ops.rb', line 7766

def memory_usage(total, free)
  logger.debug do
    args = [total, free]
    "called memory_usage with #{args.inspect}"
  end

  bytes = u8(0xC5)
  bytes += param_simple(total)
  bytes += param_simple(free)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#memory_write(prgid, objid, offset, size, array) ⇒ Object

Write VM memory



2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
# File 'lib/lignite/ev3_ops.rb', line 2598

def memory_write(prgid, objid, offset, size, array)
  logger.debug do
    args = [prgid, objid, offset, size, array]
    "called memory_write with #{args.inspect}"
  end

  bytes = u8(0x7E)
  bytes += param_simple(prgid)
  bytes += param_simple(objid)
  bytes += param_simple(offset)
  bytes += param_simple(size)
  bytes += param_simple(array)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move16_16(source, destination) ⇒ Object

Move 16 bit value from SOURCE to DESTINATION



950
951
952
953
954
955
956
957
958
959
960
961
# File 'lib/lignite/ev3_ops.rb', line 950

def move16_16(source, destination)
  logger.debug do
    args = [source, destination]
    "called move16_16 with #{args.inspect}"
  end

  bytes = u8(0x35)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move16_32(source, destination) ⇒ Object

Move 16 bit value from SOURCE to DESTINATION



966
967
968
969
970
971
972
973
974
975
976
977
# File 'lib/lignite/ev3_ops.rb', line 966

def move16_32(source, destination)
  logger.debug do
    args = [source, destination]
    "called move16_32 with #{args.inspect}"
  end

  bytes = u8(0x36)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move16_8(source, destination) ⇒ Object

Move 16 bit value from SOURCE to DESTINATION



934
935
936
937
938
939
940
941
942
943
944
945
# File 'lib/lignite/ev3_ops.rb', line 934

def move16_8(source, destination)
  logger.debug do
    args = [source, destination]
    "called move16_8 with #{args.inspect}"
  end

  bytes = u8(0x34)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move16_f(source, destination) ⇒ Object

Move 16 bit value from SOURCE to DESTINATION



982
983
984
985
986
987
988
989
990
991
992
993
# File 'lib/lignite/ev3_ops.rb', line 982

def move16_f(source, destination)
  logger.debug do
    args = [source, destination]
    "called move16_f with #{args.inspect}"
  end

  bytes = u8(0x37)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move32_16(source, destination) ⇒ Object

Move 32 bit value from SOURCE to DESTINATION



1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
# File 'lib/lignite/ev3_ops.rb', line 1014

def move32_16(source, destination)
  logger.debug do
    args = [source, destination]
    "called move32_16 with #{args.inspect}"
  end

  bytes = u8(0x39)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move32_32(source, destination) ⇒ Object

Move 32 bit value from SOURCE to DESTINATION



1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'lib/lignite/ev3_ops.rb', line 1030

def move32_32(source, destination)
  logger.debug do
    args = [source, destination]
    "called move32_32 with #{args.inspect}"
  end

  bytes = u8(0x3A)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move32_8(source, destination) ⇒ Object

Move 32 bit value from SOURCE to DESTINATION



998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
# File 'lib/lignite/ev3_ops.rb', line 998

def move32_8(source, destination)
  logger.debug do
    args = [source, destination]
    "called move32_8 with #{args.inspect}"
  end

  bytes = u8(0x38)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move32_f(source, destination) ⇒ Object

Move 32 bit value from SOURCE to DESTINATION



1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
# File 'lib/lignite/ev3_ops.rb', line 1046

def move32_f(source, destination)
  logger.debug do
    args = [source, destination]
    "called move32_f with #{args.inspect}"
  end

  bytes = u8(0x3B)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move8_16(source, destination) ⇒ Object

Move 8 bit value from SOURCE to DESTINATION



886
887
888
889
890
891
892
893
894
895
896
897
# File 'lib/lignite/ev3_ops.rb', line 886

def move8_16(source, destination)
  logger.debug do
    args = [source, destination]
    "called move8_16 with #{args.inspect}"
  end

  bytes = u8(0x31)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move8_32(source, destination) ⇒ Object

Move 8 bit value from SOURCE to DESTINATION



902
903
904
905
906
907
908
909
910
911
912
913
# File 'lib/lignite/ev3_ops.rb', line 902

def move8_32(source, destination)
  logger.debug do
    args = [source, destination]
    "called move8_32 with #{args.inspect}"
  end

  bytes = u8(0x32)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move8_8(source, destination) ⇒ Object

Move 8 bit value from SOURCE to DESTINATION



870
871
872
873
874
875
876
877
878
879
880
881
# File 'lib/lignite/ev3_ops.rb', line 870

def move8_8(source, destination)
  logger.debug do
    args = [source, destination]
    "called move8_8 with #{args.inspect}"
  end

  bytes = u8(0x30)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#move8_f(source, destination) ⇒ Object

Move 8 bit value from SOURCE to DESTINATION



918
919
920
921
922
923
924
925
926
927
928
929
# File 'lib/lignite/ev3_ops.rb', line 918

def move8_f(source, destination)
  logger.debug do
    args = [source, destination]
    "called move8_f with #{args.inspect}"
  end

  bytes = u8(0x33)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#movef_16(source, destination) ⇒ Object

Move floating point value from SOURCE to DESTINATION



1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
# File 'lib/lignite/ev3_ops.rb', line 1078

def movef_16(source, destination)
  logger.debug do
    args = [source, destination]
    "called movef_16 with #{args.inspect}"
  end

  bytes = u8(0x3D)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#movef_32(source, destination) ⇒ Object

Move floating point value from SOURCE to DESTINATION



1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
# File 'lib/lignite/ev3_ops.rb', line 1094

def movef_32(source, destination)
  logger.debug do
    args = [source, destination]
    "called movef_32 with #{args.inspect}"
  end

  bytes = u8(0x3E)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#movef_8(source, destination) ⇒ Object

Move floating point value from SOURCE to DESTINATION



1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
# File 'lib/lignite/ev3_ops.rb', line 1062

def movef_8(source, destination)
  logger.debug do
    args = [source, destination]
    "called movef_8 with #{args.inspect}"
  end

  bytes = u8(0x3C)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#movef_f(source, destination) ⇒ Object

Move floating point value from SOURCE to DESTINATION



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
# File 'lib/lignite/ev3_ops.rb', line 1110

def movef_f(source, destination)
  logger.debug do
    args = [source, destination]
    "called movef_f with #{args.inspect}"
  end

  bytes = u8(0x3F)
  bytes += param_simple(source)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mul16(source1, source2, destination) ⇒ Object

Multiply two 16 bit values DESTINATION = SOURCE1 * SOURCE2



527
528
529
530
531
532
533
534
535
536
537
538
539
# File 'lib/lignite/ev3_ops.rb', line 527

def mul16(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called mul16 with #{args.inspect}"
  end

  bytes = u8(0x19)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mul32(source1, source2, destination) ⇒ Object

Multiply two 32 bit values DESTINATION = SOURCE1 * SOURCE2



545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'lib/lignite/ev3_ops.rb', line 545

def mul32(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called mul32 with #{args.inspect}"
  end

  bytes = u8(0x1A)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mul8(source1, source2, destination) ⇒ Object

Multiply two 8 bit values DESTINATION = SOURCE1 * SOURCE2



509
510
511
512
513
514
515
516
517
518
519
520
521
# File 'lib/lignite/ev3_ops.rb', line 509

def mul8(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called mul8 with #{args.inspect}"
  end

  bytes = u8(0x18)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#mulf(source1, source2, destination) ⇒ Object

Multiply two floating point values DESTINATION = SOURCE1 * SOURCE2



563
564
565
566
567
568
569
570
571
572
573
574
575
# File 'lib/lignite/ev3_ops.rb', line 563

def mulf(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called mulf with #{args.inspect}"
  end

  bytes = u8(0x1B)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#nopObject

This code does absolutely nothing



19
20
21
22
23
24
25
26
27
28
# File 'lib/lignite/ev3_ops.rb', line 19

def nop
  logger.debug do
    args = []
    "called nop with #{args.inspect}"
  end

  bytes = u8(0x01)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#note_to_freq(note, freq) ⇒ Object

Convert note to tone



1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
# File 'lib/lignite/ev3_ops.rb', line 1754

def note_to_freq(note, freq)
  logger.debug do
    args = [note, freq]
    "called note_to_freq with #{args.inspect}"
  end

  bytes = u8(0x63)
  bytes += param_simple(note)
  bytes += param_simple(freq)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#object_endObject

Stops current object



149
150
151
152
153
154
155
156
157
158
# File 'lib/lignite/ev3_ops.rb', line 149

def object_end
  logger.debug do
    args = []
    "called object_end with #{args.inspect}"
  end

  bytes = u8(0x0A)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#object_start(objid) ⇒ Object

Start specific object



80
81
82
83
84
85
86
87
88
89
90
# File 'lib/lignite/ev3_ops.rb', line 80

def object_start(objid)
  logger.debug do
    args = [objid]
    "called object_start with #{args.inspect}"
  end

  bytes = u8(0x05)
  bytes += param_simple(objid)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#object_stop(objid) ⇒ Object

Stops specific object



66
67
68
69
70
71
72
73
74
75
76
# File 'lib/lignite/ev3_ops.rb', line 66

def object_stop(objid)
  logger.debug do
    args = [objid]
    "called object_stop with #{args.inspect}"
  end

  bytes = u8(0x04)
  bytes += param_simple(objid)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#object_trig(objid) ⇒ Object

Triggers object and run the object if fully triggered



94
95
96
97
98
99
100
101
102
103
104
# File 'lib/lignite/ev3_ops.rb', line 94

def object_trig(objid)
  logger.debug do
    args = [objid]
    "called object_trig with #{args.inspect}"
  end

  bytes = u8(0x06)
  bytes += param_simple(objid)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#object_wait(objid) ⇒ Object

Wait until object has run



108
109
110
111
112
113
114
115
116
117
118
# File 'lib/lignite/ev3_ops.rb', line 108

def object_wait(objid)
  logger.debug do
    args = [objid]
    "called object_wait with #{args.inspect}"
  end

  bytes = u8(0x07)
  bytes += param_simple(objid)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#or16(source1, source2, destination) ⇒ Object

Or two 16 bit values DESTINATION = SOURCE1 | SOURCE2



671
672
673
674
675
676
677
678
679
680
681
682
683
# File 'lib/lignite/ev3_ops.rb', line 671

def or16(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called or16 with #{args.inspect}"
  end

  bytes = u8(0x21)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#or32(source1, source2, destination) ⇒ Object

Or two 32 bit values DESTINATION = SOURCE1 | SOURCE2



689
690
691
692
693
694
695
696
697
698
699
700
701
# File 'lib/lignite/ev3_ops.rb', line 689

def or32(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called or32 with #{args.inspect}"
  end

  bytes = u8(0x22)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#or8(source1, source2, destination) ⇒ Object

Or two 8 bit values DESTINATION = SOURCE1 | SOURCE2



653
654
655
656
657
658
659
660
661
662
663
664
665
# File 'lib/lignite/ev3_ops.rb', line 653

def or8(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called or8 with #{args.inspect}"
  end

  bytes = u8(0x20)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_clr_count(layer, nos) ⇒ Object

Clearing tacho count when used as sensor



6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
# File 'lib/lignite/ev3_ops.rb', line 6672

def output_clr_count(layer, nos)
  logger.debug do
    args = [layer, nos]
    "called output_clr_count with #{args.inspect}"
  end

  bytes = u8(0xB2)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_get_count(layer, nos, tacho) ⇒ Object

Getting tacho count when used as sensor - values are in shared memory



6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
# File 'lib/lignite/ev3_ops.rb', line 6689

def output_get_count(layer, nos, tacho)
  logger.debug do
    args = [layer, nos, tacho]
    "called output_get_count with #{args.inspect}"
  end

  bytes = u8(0xB3)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(tacho)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_get_type(layer, no, type) ⇒ Object



6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
# File 'lib/lignite/ev3_ops.rb', line 6309

def output_get_type(layer, no, type)
  logger.debug do
    args = [layer, no, type]
    "called output_get_type with #{args.inspect}"
  end

  bytes = u8(0xA0)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_polarity(layer, nos, pol) ⇒ Object

Set polarity of the outputs



6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
# File 'lib/lignite/ev3_ops.rb', line 6431

def output_polarity(layer, nos, pol)
  logger.debug do
    args = [layer, nos, pol]
    "called output_polarity with #{args.inspect}"
  end

  bytes = u8(0xA7)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(pol)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_position(layer, nos, pos) ⇒ Object



6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
# File 'lib/lignite/ev3_ops.rb', line 6503

def output_position(layer, nos, pos)
  logger.debug do
    args = [layer, nos, pos]
    "called output_position with #{args.inspect}"
  end

  bytes = u8(0xAB)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(pos)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_power(layer, nos, power) ⇒ Object

Set power of the outputs



6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
# File 'lib/lignite/ev3_ops.rb', line 6379

def output_power(layer, nos, power)
  logger.debug do
    args = [layer, nos, power]
    "called output_power with #{args.inspect}"
  end

  bytes = u8(0xA4)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(power)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_prg_stopObject

Program stop



6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
# File 'lib/lignite/ev3_ops.rb', line 6704

def output_prg_stop
  logger.debug do
    args = []
    "called output_prg_stop with #{args.inspect}"
  end

  bytes = u8(0xB4)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_read(layer, no, speed, tacho) ⇒ Object



6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
# File 'lib/lignite/ev3_ops.rb', line 6450

def output_read(layer, no, speed, tacho)
  logger.debug do
    args = [layer, no, speed, tacho]
    "called output_read with #{args.inspect}"
  end

  bytes = u8(0xA8)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(speed)
  bytes += param_simple(tacho)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_ready(layer, nos) ⇒ Object

Wait for output ready (wait for completion)



6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
# File 'lib/lignite/ev3_ops.rb', line 6486

def output_ready(layer, nos)
  logger.debug do
    args = [layer, nos]
    "called output_ready with #{args.inspect}"
  end

  bytes = u8(0xAA)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_reset(layer, nos) ⇒ Object

Resets the Tacho counts



6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
# File 'lib/lignite/ev3_ops.rb', line 6344

def output_reset(layer, nos)
  logger.debug do
    args = [layer, nos]
    "called output_reset with #{args.inspect}"
  end

  bytes = u8(0xA2)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_set_type(layer, no, type) ⇒ Object

Set output type



6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
# File 'lib/lignite/ev3_ops.rb', line 6327

def output_set_type(layer, no, type)
  logger.debug do
    args = [layer, no, type]
    "called output_set_type with #{args.inspect}"
  end

  bytes = u8(0xA1)
  bytes += param_simple(layer)
  bytes += param_simple(no)
  bytes += param_simple(type)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_speed(layer, nos, speed) ⇒ Object

Set speed of the outputs



6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
# File 'lib/lignite/ev3_ops.rb', line 6397

def output_speed(layer, nos, speed)
  logger.debug do
    args = [layer, nos, speed]
    "called output_speed with #{args.inspect}"
  end

  bytes = u8(0xA5)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(speed)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_start(layer, nos) ⇒ Object

Starts the outputs



6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
# File 'lib/lignite/ev3_ops.rb', line 6414

def output_start(layer, nos)
  logger.debug do
    args = [layer, nos]
    "called output_start with #{args.inspect}"
  end

  bytes = u8(0xA6)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_step_power(layer, nos, power, step1, step2, step3, brake) ⇒ Object

Set Ramp up, constant and rampdown steps and power of the outputs



6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
# File 'lib/lignite/ev3_ops.rb', line 6525

def output_step_power(layer, nos, power, step1, step2, step3, brake)
  logger.debug do
    args = [layer, nos, power, step1, step2, step3, brake]
    "called output_step_power with #{args.inspect}"
  end

  bytes = u8(0xAC)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(power)
  bytes += param_simple(step1)
  bytes += param_simple(step2)
  bytes += param_simple(step3)
  bytes += param_simple(brake)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_step_speed(layer, nos, speed, step1, step2, step3, brake) ⇒ Object

Set Ramp up, constant and rampdown steps and power of the outputs



6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
# File 'lib/lignite/ev3_ops.rb', line 6577

def output_step_speed(layer, nos, speed, step1, step2, step3, brake)
  logger.debug do
    args = [layer, nos, speed, step1, step2, step3, brake]
    "called output_step_speed with #{args.inspect}"
  end

  bytes = u8(0xAE)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(speed)
  bytes += param_simple(step1)
  bytes += param_simple(step2)
  bytes += param_simple(step3)
  bytes += param_simple(brake)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_step_sync(layer, nos, speed, turn, step, brake) ⇒ Object



6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
# File 'lib/lignite/ev3_ops.rb', line 6628

def output_step_sync(layer, nos, speed, turn, step, brake)
  logger.debug do
    args = [layer, nos, speed, turn, step, brake]
    "called output_step_sync with #{args.inspect}"
  end

  bytes = u8(0xB0)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(speed)
  bytes += param_simple(turn)
  bytes += param_simple(step)
  bytes += param_simple(brake)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_stop(layer, nos, brake) ⇒ Object

Stops the outputs



6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
# File 'lib/lignite/ev3_ops.rb', line 6361

def output_stop(layer, nos, brake)
  logger.debug do
    args = [layer, nos, brake]
    "called output_stop with #{args.inspect}"
  end

  bytes = u8(0xA3)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(brake)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_test(layer, nos, busy) ⇒ Object

Testing if output is not used



6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
# File 'lib/lignite/ev3_ops.rb', line 6469

def output_test(layer, nos, busy)
  logger.debug do
    args = [layer, nos, busy]
    "called output_test with #{args.inspect}"
  end

  bytes = u8(0xA9)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(busy)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_time_power(layer, nos, power, time1, time2, time3, brake) ⇒ Object

Set Ramp up, constant and rampdown steps and power of the outputs



6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
# File 'lib/lignite/ev3_ops.rb', line 6551

def output_time_power(layer, nos, power, time1, time2, time3, brake)
  logger.debug do
    args = [layer, nos, power, time1, time2, time3, brake]
    "called output_time_power with #{args.inspect}"
  end

  bytes = u8(0xAD)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(power)
  bytes += param_simple(time1)
  bytes += param_simple(time2)
  bytes += param_simple(time3)
  bytes += param_simple(brake)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_time_speed(layer, nos, speed, time1, time2, time3, brake) ⇒ Object

Set Ramp up, constant and rampdown steps and power of the outputs



6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
# File 'lib/lignite/ev3_ops.rb', line 6603

def output_time_speed(layer, nos, speed, time1, time2, time3, brake)
  logger.debug do
    args = [layer, nos, speed, time1, time2, time3, brake]
    "called output_time_speed with #{args.inspect}"
  end

  bytes = u8(0xAF)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(speed)
  bytes += param_simple(time1)
  bytes += param_simple(time2)
  bytes += param_simple(time3)
  bytes += param_simple(brake)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#output_time_sync(layer, nos, speed, turn, time, brake) ⇒ Object



6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
# File 'lib/lignite/ev3_ops.rb', line 6652

def output_time_sync(layer, nos, speed, turn, time, brake)
  logger.debug do
    args = [layer, nos, speed, turn, time, brake]
    "called output_time_sync with #{args.inspect}"
  end

  bytes = u8(0xB1)
  bytes += param_simple(layer)
  bytes += param_simple(nos)
  bytes += param_simple(speed)
  bytes += param_simple(turn)
  bytes += param_simple(time)
  bytes += param_simple(brake)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#port_cnv_input(portin, layer, portout) ⇒ Object

Convert encoded port to Layer and Port



1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
# File 'lib/lignite/ev3_ops.rb', line 1737

def port_cnv_input(portin, layer, portout)
  logger.debug do
    args = [portin, layer, portout]
    "called port_cnv_input with #{args.inspect}"
  end

  bytes = u8(0x62)
  bytes += param_simple(portin)
  bytes += param_simple(layer)
  bytes += param_simple(portout)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#port_cnv_output(portin, layer, bitfield, inverted) ⇒ Object

Convert encoded port to Layer and Bitfield



1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
# File 'lib/lignite/ev3_ops.rb', line 1718

def port_cnv_output(portin, layer, bitfield, inverted)
  logger.debug do
    args = [portin, layer, bitfield, inverted]
    "called port_cnv_output with #{args.inspect}"
  end

  bytes = u8(0x61)
  bytes += param_simple(portin)
  bytes += param_simple(layer)
  bytes += param_simple(bitfield)
  bytes += param_simple(inverted)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#probe(prgid, objid, offset, size) ⇒ Object

Display globals or object locals on terminal



328
329
330
331
332
333
334
335
336
337
338
339
340
341
# File 'lib/lignite/ev3_ops.rb', line 328

def probe(prgid, objid, offset, size)
  logger.debug do
    args = [prgid, objid, offset, size]
    "called probe with #{args.inspect}"
  end

  bytes = u8(0x0E)
  bytes += param_simple(prgid)
  bytes += param_simple(objid)
  bytes += param_simple(offset)
  bytes += param_simple(size)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_info(*args) ⇒ Object



314
315
316
317
318
319
# File 'lib/lignite/ev3_ops.rb', line 314

def program_info(*args)
  logger.debug "called program_info with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_PROGRAM_INFO.fetch(cvalue)
  __send__("program_info_#{csym}", *args)
end

#program_info_get_prgname(prgid, name) ⇒ Object



290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/lignite/ev3_ops.rb', line 290

def program_info_get_prgname(prgid, name)
  logger.debug do
    args = [prgid, name]
    "called program_info_get_prgname with #{args.inspect}"
  end

  bytes = u8(0x0C)
  bytes += param_simple(26)
  bytes += param_simple(prgid)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_info_get_prgresult(prgid, data) ⇒ Object



254
255
256
257
258
259
260
261
262
263
264
265
266
# File 'lib/lignite/ev3_ops.rb', line 254

def program_info_get_prgresult(prgid, data)
  logger.debug do
    args = [prgid, data]
    "called program_info_get_prgresult with #{args.inspect}"
  end

  bytes = u8(0x0C)
  bytes += param_simple(24)
  bytes += param_simple(prgid)
  bytes += param_simple(data)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_info_get_speed(prgid, data) ⇒ Object



235
236
237
238
239
240
241
242
243
244
245
246
247
# File 'lib/lignite/ev3_ops.rb', line 235

def program_info_get_speed(prgid, data)
  logger.debug do
    args = [prgid, data]
    "called program_info_get_speed with #{args.inspect}"
  end

  bytes = u8(0x0C)
  bytes += param_simple(23)
  bytes += param_simple(prgid)
  bytes += param_simple(data)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_info_get_status(prgid, data) ⇒ Object



216
217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/lignite/ev3_ops.rb', line 216

def program_info_get_status(prgid, data)
  logger.debug do
    args = [prgid, data]
    "called program_info_get_status with #{args.inspect}"
  end

  bytes = u8(0x0C)
  bytes += param_simple(22)
  bytes += param_simple(prgid)
  bytes += param_simple(data)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_info_obj_start(prgid, objid) ⇒ Object



197
198
199
200
201
202
203
204
205
206
207
208
209
# File 'lib/lignite/ev3_ops.rb', line 197

def program_info_obj_start(prgid, objid)
  logger.debug do
    args = [prgid, objid]
    "called program_info_obj_start with #{args.inspect}"
  end

  bytes = u8(0x0C)
  bytes += param_simple(4)
  bytes += param_simple(prgid)
  bytes += param_simple(objid)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_info_obj_stop(prgid, objid) ⇒ Object



178
179
180
181
182
183
184
185
186
187
188
189
190
# File 'lib/lignite/ev3_ops.rb', line 178

def program_info_obj_stop(prgid, objid)
  logger.debug do
    args = [prgid, objid]
    "called program_info_obj_stop with #{args.inspect}"
  end

  bytes = u8(0x0C)
  bytes += param_simple(0)
  bytes += param_simple(prgid)
  bytes += param_simple(objid)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_info_set_instr(prgid) ⇒ Object

Set number of instructions before VMThread change



272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/lignite/ev3_ops.rb', line 272

def program_info_set_instr(prgid)
  logger.debug do
    args = [prgid]
    "called program_info_set_instr with #{args.inspect}"
  end

  bytes = u8(0x0C)
  bytes += param_simple(25)
  bytes += param_simple(prgid)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_start(prgid, size, ip, debug) ⇒ Object

Start program id slot



49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/lignite/ev3_ops.rb', line 49

def program_start(prgid, size, ip, debug)
  logger.debug do
    args = [prgid, size, ip, debug]
    "called program_start with #{args.inspect}"
  end

  bytes = u8(0x03)
  bytes += param_simple(prgid)
  bytes += param_simple(size)
  bytes += param_simple(ip)
  bytes += param_simple(debug)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#program_stop(prgid) ⇒ Object

Stops specific program id slot



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/lignite/ev3_ops.rb', line 32

def program_stop(prgid)
  logger.debug do
    args = [prgid]
    "called program_stop with #{args.inspect}"
  end

  bytes = u8(0x02)
  bytes += param_simple(prgid)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#random(min, max, value) ⇒ Object

Get random value



5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
# File 'lib/lignite/ev3_ops.rb', line 5295

def random(min, max, value)
  logger.debug do
    args = [min, max, value]
    "called random with #{args.inspect}"
  end

  bytes = u8(0x8E)
  bytes += param_simple(min)
  bytes += param_simple(max)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#read16(source, index, destination) ⇒ Object

Read 16 bit value from SOURCE to DESTINATION



7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
# File 'lib/lignite/ev3_ops.rb', line 7982

def read16(source, index, destination)
  logger.debug do
    args = [source, index, destination]
    "called read16 with #{args.inspect}"
  end

  bytes = u8(0xC9)
  bytes += param_simple(source)
  bytes += param_simple(index)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#read32(source, index, destination) ⇒ Object

Read 32 bit value from SOURCE to DESTINATION



8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
# File 'lib/lignite/ev3_ops.rb', line 8000

def read32(source, index, destination)
  logger.debug do
    args = [source, index, destination]
    "called read32 with #{args.inspect}"
  end

  bytes = u8(0xCA)
  bytes += param_simple(source)
  bytes += param_simple(index)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#read8(source, index, destination) ⇒ Object

Read 8 bit value from SOURCE to DESTINATION



7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
# File 'lib/lignite/ev3_ops.rb', line 7964

def read8(source, index, destination)
  logger.debug do
    args = [source, index, destination]
    "called read8 with #{args.inspect}"
  end

  bytes = u8(0xC8)
  bytes += param_simple(source)
  bytes += param_simple(index)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#readf(source, index, destination) ⇒ Object

Read floating point value from SOURCE to DESTINATION



8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
# File 'lib/lignite/ev3_ops.rb', line 8018

def readf(source, index, destination)
  logger.debug do
    args = [source, index, destination]
    "called readf with #{args.inspect}"
  end

  bytes = u8(0xCB)
  bytes += param_simple(source)
  bytes += param_simple(index)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#returnObject

Return from byte code subroutine



121
122
123
124
125
126
127
128
129
130
# File 'lib/lignite/ev3_ops.rb', line 121

def return
  logger.debug do
    args = []
    "called return with #{args.inspect}"
  end

  bytes = u8(0x08)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#rl16(source1, source2, destination) ⇒ Object

Rotate left 16 bit value DESTINATION = SOURCE1 << SOURCE2



833
834
835
836
837
838
839
840
841
842
843
844
845
# File 'lib/lignite/ev3_ops.rb', line 833

def rl16(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called rl16 with #{args.inspect}"
  end

  bytes = u8(0x2D)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#rl32(source1, source2, destination) ⇒ Object

Rotate left 32 bit value DESTINATION = SOURCE1 << SOURCE2



851
852
853
854
855
856
857
858
859
860
861
862
863
# File 'lib/lignite/ev3_ops.rb', line 851

def rl32(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called rl32 with #{args.inspect}"
  end

  bytes = u8(0x2E)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#rl8(source1, source2, destination) ⇒ Object

Rotate left 8 bit value DESTINATION = SOURCE1 << SOURCE2



815
816
817
818
819
820
821
822
823
824
825
826
827
# File 'lib/lignite/ev3_ops.rb', line 815

def rl8(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called rl8 with #{args.inspect}"
  end

  bytes = u8(0x2C)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#select16(flag, source1, source2, result) ⇒ Object

If FLAG is set move SOURCE1 to RESULT else move SOURCE2 to RESULT



1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
# File 'lib/lignite/ev3_ops.rb', line 1642

def select16(flag, source1, source2, result)
  logger.debug do
    args = [flag, source1, source2, result]
    "called select16 with #{args.inspect}"
  end

  bytes = u8(0x5D)
  bytes += param_simple(flag)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#select32(flag, source1, source2, result) ⇒ Object

If FLAG is set move SOURCE1 to RESULT else move SOURCE2 to RESULT



1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
# File 'lib/lignite/ev3_ops.rb', line 1662

def select32(flag, source1, source2, result)
  logger.debug do
    args = [flag, source1, source2, result]
    "called select32 with #{args.inspect}"
  end

  bytes = u8(0x5E)
  bytes += param_simple(flag)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#select8(flag, source1, source2, result) ⇒ Object

If FLAG is set move SOURCE1 to RESULT else move SOURCE2 to RESULT



1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
# File 'lib/lignite/ev3_ops.rb', line 1622

def select8(flag, source1, source2, result)
  logger.debug do
    args = [flag, source1, source2, result]
    "called select8 with #{args.inspect}"
  end

  bytes = u8(0x5C)
  bytes += param_simple(flag)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#selectf(flag, source1, source2, result) ⇒ Object

If FLAG is set move SOURCE1 to RESULT else move SOURCE2 to RESULT



1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
# File 'lib/lignite/ev3_ops.rb', line 1682

def selectf(flag, source1, source2, result)
  logger.debug do
    args = [flag, source1, source2, result]
    "called selectf with #{args.inspect}"
  end

  bytes = u8(0x5F)
  bytes += param_simple(flag)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sleepObject

Breaks execution of current VMTHREAD



161
162
163
164
165
166
167
168
169
170
# File 'lib/lignite/ev3_ops.rb', line 161

def sleep
  logger.debug do
    args = []
    "called sleep with #{args.inspect}"
  end

  bytes = u8(0x0B)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sound(*args) ⇒ Object



5473
5474
5475
5476
5477
5478
# File 'lib/lignite/ev3_ops.rb', line 5473

def sound(*args)
  logger.debug "called sound with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_SOUND.fetch(cvalue)
  __send__("sound_#{csym}", *args)
end

#sound_breakObject



5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
# File 'lib/lignite/ev3_ops.rb', line 5409

def sound_break
  logger.debug do
    args = []
    "called sound_break with #{args.inspect}"
  end

  bytes = u8(0x94)
  bytes += param_simple(0)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sound_readyObject

Wait for sound ready (wait until sound finished)



5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
# File 'lib/lignite/ev3_ops.rb', line 5495

def sound_ready
  logger.debug do
    args = []
    "called sound_ready with #{args.inspect}"
  end

  bytes = u8(0x96)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sound_serviceObject



5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
# File 'lib/lignite/ev3_ops.rb', line 5453

def sound_service
  logger.debug do
    args = []
    "called sound_service with #{args.inspect}"
  end

  bytes = u8(0x94)
  bytes += param_simple(4)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sound_test(busy) ⇒ Object

Test if sound busy (playing file or tone



5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
# File 'lib/lignite/ev3_ops.rb', line 5482

def sound_test(busy)
  logger.debug do
    args = [busy]
    "called sound_test with #{args.inspect}"
  end

  bytes = u8(0x95)
  bytes += param_simple(busy)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sound_tone(volume, frequency, duration) ⇒ Object



5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
# File 'lib/lignite/ev3_ops.rb', line 5427

def sound_tone(volume, frequency, duration)
  logger.debug do
    args = [volume, frequency, duration]
    "called sound_tone with #{args.inspect}"
  end

  bytes = u8(0x94)
  bytes += param_simple(1)
  bytes += param_simple(volume)
  bytes += param_simple(frequency)
  bytes += param_simple(duration)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings(*args) ⇒ Object



2585
2586
2587
2588
2589
2590
# File 'lib/lignite/ev3_ops.rb', line 2585

def strings(*args)
  logger.debug "called strings with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_STRINGS.fetch(cvalue)
  __send__("strings_#{csym}", *args)
end

#strings_add(source1, source2, destination) ⇒ Object

Add two strings (SOURCE1 + SOURCE2 -> DESTINATION)



2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
# File 'lib/lignite/ev3_ops.rb', line 2366

def strings_add(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called strings_add with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(2)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_compare(source1, source2, result) ⇒ Object

Compare two strings



2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
# File 'lib/lignite/ev3_ops.rb', line 2387

def strings_compare(source1, source2, result)
  logger.debug do
    args = [source1, source2, result]
    "called strings_compare with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(3)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(result)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_duplicate(source1, destination) ⇒ Object

Duplicate a string (SOURCE1 -> DESTINATION)



2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
# File 'lib/lignite/ev3_ops.rb', line 2407

def strings_duplicate(source1, destination)
  logger.debug do
    args = [source1, destination]
    "called strings_duplicate with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(5)
  bytes += param_simple(source1)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_get_size(source1, size) ⇒ Object

Get size of string (not including zero termination)



2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
# File 'lib/lignite/ev3_ops.rb', line 2346

def strings_get_size(source1, size)
  logger.debug do
    args = [source1, size]
    "called strings_get_size with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(1)
  bytes += param_simple(source1)
  bytes += param_simple(size)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_number_formatted(value, format, size, destination) ⇒ Object

Convert integer number to a formatted string



2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
# File 'lib/lignite/ev3_ops.rb', line 2555

def strings_number_formatted(value, format, size, destination)
  logger.debug do
    args = [value, format, size, destination]
    "called strings_number_formatted with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(12)
  bytes += param_simple(value)
  bytes += param_simple(format)
  bytes += param_simple(size)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_number_to_string(value, figures, destination) ⇒ Object

Convert integer value to a string



2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
# File 'lib/lignite/ev3_ops.rb', line 2489

def strings_number_to_string(value, figures, destination)
  logger.debug do
    args = [value, figures, destination]
    "called strings_number_to_string with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(9)
  bytes += param_simple(value)
  bytes += param_simple(figures)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_string_to_value(source1, destination) ⇒ Object



2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
# File 'lib/lignite/ev3_ops.rb', line 2450

def strings_string_to_value(source1, destination)
  logger.debug do
    args = [source1, destination]
    "called strings_string_to_value with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(7)
  bytes += param_simple(source1)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_strip(source1, destination) ⇒ Object

Strip a string for spaces (SOURCE1 -> DESTINATION)



2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
# File 'lib/lignite/ev3_ops.rb', line 2469

def strings_strip(source1, destination)
  logger.debug do
    args = [source1, destination]
    "called strings_strip with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(8)
  bytes += param_simple(source1)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_sub(source1, source2, destination) ⇒ Object

Return DESTINATION: a substring from SOURCE1 that starts were SOURCE2 ends



2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
# File 'lib/lignite/ev3_ops.rb', line 2510

def strings_sub(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called strings_sub with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(10)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_value_formatted(value, format, size, destination) ⇒ Object

Convert floating point value to a formatted string



2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
# File 'lib/lignite/ev3_ops.rb', line 2532

def strings_value_formatted(value, format, size, destination)
  logger.debug do
    args = [value, format, size, destination]
    "called strings_value_formatted with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(11)
  bytes += param_simple(value)
  bytes += param_simple(format)
  bytes += param_simple(size)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#strings_value_to_string(value, figures, decimals, destination) ⇒ Object



2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
# File 'lib/lignite/ev3_ops.rb', line 2429

def strings_value_to_string(value, figures, decimals, destination)
  logger.debug do
    args = [value, figures, decimals, destination]
    "called strings_value_to_string with #{args.inspect}"
  end

  bytes = u8(0x7D)
  bytes += param_simple(6)
  bytes += param_simple(value)
  bytes += param_simple(figures)
  bytes += param_simple(decimals)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sub16(source1, source2, destination) ⇒ Object

Subtract two 16 bit values DESTINATION = SOURCE1 - SOURCE2



455
456
457
458
459
460
461
462
463
464
465
466
467
# File 'lib/lignite/ev3_ops.rb', line 455

def sub16(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called sub16 with #{args.inspect}"
  end

  bytes = u8(0x15)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sub32(source1, source2, destination) ⇒ Object

Subtract two 32 bit values DESTINATION = SOURCE1 - SOURCE2



473
474
475
476
477
478
479
480
481
482
483
484
485
# File 'lib/lignite/ev3_ops.rb', line 473

def sub32(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called sub32 with #{args.inspect}"
  end

  bytes = u8(0x16)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#sub8(source1, source2, destination) ⇒ Object

Subtract two 8 bit values DESTINATION = SOURCE1 - SOURCE2



437
438
439
440
441
442
443
444
445
446
447
448
449
# File 'lib/lignite/ev3_ops.rb', line 437

def sub8(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called sub8 with #{args.inspect}"
  end

  bytes = u8(0x14)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#subf(source1, source2, destination) ⇒ Object

Subtract two floating point values DESTINATION = SOURCE1 - SOURCE2



491
492
493
494
495
496
497
498
499
500
501
502
503
# File 'lib/lignite/ev3_ops.rb', line 491

def subf(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called subf with #{args.inspect}"
  end

  bytes = u8(0x17)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#system(command, status) ⇒ Object

Executes a system command



1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
# File 'lib/lignite/ev3_ops.rb', line 1700

def system(command, status)
  logger.debug do
    args = [command, status]
    "called system with #{args.inspect}"
  end

  bytes = u8(0x60)
  bytes += param_simple(command)
  bytes += param_simple(status)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#timer_read(time) ⇒ Object

Read free running timer [mS]



4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
# File 'lib/lignite/ev3_ops.rb', line 4770

def timer_read(time)
  logger.debug do
    args = [time]
    "called timer_read with #{args.inspect}"
  end

  bytes = u8(0x87)
  bytes += param_simple(time)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#timer_read_us(time) ⇒ Object

Read free running timer [uS]



5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
# File 'lib/lignite/ev3_ops.rb', line 5311

def timer_read_us(time)
  logger.debug do
    args = [time]
    "called timer_read_us with #{args.inspect}"
  end

  bytes = u8(0x8F)
  bytes += param_simple(time)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#timer_ready(timer) ⇒ Object

Wait for timer ready (wait for timeout)



4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
# File 'lib/lignite/ev3_ops.rb', line 4756

def timer_ready(timer)
  logger.debug do
    args = [timer]
    "called timer_ready with #{args.inspect}"
  end

  bytes = u8(0x86)
  bytes += param_simple(timer)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#timer_wait(time, timer) ⇒ Object

Setup timer to wait TIME mS



4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
# File 'lib/lignite/ev3_ops.rb', line 4741

def timer_wait(time, timer)
  logger.debug do
    args = [time, timer]
    "called timer_wait with #{args.inspect}"
  end

  bytes = u8(0x85)
  bytes += param_simple(time)
  bytes += param_simple(timer)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst(*args) ⇒ Object



9635
9636
9637
9638
9639
9640
# File 'lib/lignite/ev3_ops.rb', line 9635

def tst(*args)
  logger.debug "called tst with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_TST.fetch(cvalue)
  __send__("tst_#{csym}", *args)
end

#tst_tst_accu_switch(active) ⇒ Object

Read accu switch state



9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
# File 'lib/lignite/ev3_ops.rb', line 9541

def tst_tst_accu_switch(active)
  logger.debug do
    args = [active]
    "called tst_tst_accu_switch with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(19)
  bytes += param_simple(active)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_boot_mode2Object

Turn on mode2



9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
# File 'lib/lignite/ev3_ops.rb', line 9557

def tst_tst_boot_mode2
  logger.debug do
    args = []
    "called tst_tst_boot_mode2 with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(20)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_closeObject

Disables test byte codes



9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
# File 'lib/lignite/ev3_ops.rb', line 9389

def tst_tst_close
  logger.debug do
    args = []
    "called tst_tst_close with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(11)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_close_mode2Object

Closes mode2



9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
# File 'lib/lignite/ev3_ops.rb', line 9589

def tst_tst_close_mode2
  logger.debug do
    args = []
    "called tst_tst_close_mode2 with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(22)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_disable_uartObject

Disable all UARTs



9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
# File 'lib/lignite/ev3_ops.rb', line 9525

def tst_tst_disable_uart
  logger.debug do
    args = []
    "called tst_tst_disable_uart with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(18)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_enable_uart(bitrate) ⇒ Object

Enable all UARTs



9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
# File 'lib/lignite/ev3_ops.rb', line 9509

def tst_tst_enable_uart(bitrate)
  logger.debug do
    args = [bitrate]
    "called tst_tst_enable_uart with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(17)
  bytes += param_simple(bitrate)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_openObject

Enables test byte codes for 10 seconds



9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
# File 'lib/lignite/ev3_ops.rb', line 9374

def tst_tst_open
  logger.debug do
    args = []
    "called tst_tst_open with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(10)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_poll_mode2(status) ⇒ Object

Read mode2 status



9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
# File 'lib/lignite/ev3_ops.rb', line 9573

def tst_tst_poll_mode2(status)
  logger.debug do
    args = [status]
    "called tst_tst_poll_mode2 with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(21)
  bytes += param_simple(status)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_ram_check(status) ⇒ Object

Read RAM test status status



9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
# File 'lib/lignite/ev3_ops.rb', line 9605

def tst_tst_ram_check(status)
  logger.debug do
    args = [status]
    "called tst_tst_ram_check with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(23)
  bytes += param_simple(status)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_read_adc(index, value) ⇒ Object

Read raw count from ADC



9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
# File 'lib/lignite/ev3_ops.rb', line 9449

def tst_tst_read_adc(index, value)
  logger.debug do
    args = [index, value]
    "called tst_tst_read_adc with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(14)
  bytes += param_simple(index)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_read_pins(port, length, string) ⇒ Object

Read connector pin status



9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
# File 'lib/lignite/ev3_ops.rb', line 9407

def tst_tst_read_pins(port, length, string)
  logger.debug do
    args = [port, length, string]
    "called tst_tst_read_pins with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(12)
  bytes += param_simple(port)
  bytes += param_simple(length)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_read_uart(port, length, string) ⇒ Object

Read data from port through UART



9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
# File 'lib/lignite/ev3_ops.rb', line 9490

def tst_tst_read_uart(port, length, string)
  logger.debug do
    args = [port, length, string]
    "called tst_tst_read_uart with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(16)
  bytes += param_simple(port)
  bytes += param_simple(length)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_write_pins(port, length, string) ⇒ Object

Write to connector pin



9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
# File 'lib/lignite/ev3_ops.rb', line 9429

def tst_tst_write_pins(port, length, string)
  logger.debug do
    args = [port, length, string]
    "called tst_tst_write_pins with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(13)
  bytes += param_simple(port)
  bytes += param_simple(length)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#tst_tst_write_uart(port, length, string) ⇒ Object

Write data to port through UART



9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
# File 'lib/lignite/ev3_ops.rb', line 9469

def tst_tst_write_uart(port, length, string)
  logger.debug do
    args = [port, length, string]
    "called tst_tst_write_uart with #{args.inspect}"
  end

  bytes = u8(0xFF)
  bytes += param_simple(15)
  bytes += param_simple(port)
  bytes += param_simple(length)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button(*args) ⇒ Object



3865
3866
3867
3868
3869
3870
# File 'lib/lignite/ev3_ops.rb', line 3865

def ui_button(*args)
  logger.debug "called ui_button with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_UI_BUTTON.fetch(cvalue)
  __send__("ui_button_#{csym}", *args)
end

#ui_button_flushObject



3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
# File 'lib/lignite/ev3_ops.rb', line 3621

def ui_button_flush
  logger.debug do
    args = []
    "called ui_button_flush with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(4)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_get_back_block(blocked) ⇒ Object



3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
# File 'lib/lignite/ev3_ops.rb', line 3741

def ui_button_get_back_block(blocked)
  logger.debug do
    args = [blocked]
    "called ui_button_get_back_block with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(11)
  bytes += param_simple(blocked)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_get_bumbed(button, state) ⇒ Object



3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
# File 'lib/lignite/ev3_ops.rb', line 3797

def ui_button_get_bumbed(button, state)
  logger.debug do
    args = [button, state]
    "called ui_button_get_bumbed with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(14)
  bytes += param_simple(button)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_get_bumped(button, state) ⇒ Object



3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
# File 'lib/lignite/ev3_ops.rb', line 3816

def ui_button_get_bumped(button, state)
  logger.debug do
    args = [button, state]
    "called ui_button_get_bumped with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(14)
  bytes += param_simple(button)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_get_click(click) ⇒ Object

Get and clear click sound request (internal use only)



3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
# File 'lib/lignite/ev3_ops.rb', line 3834

def ui_button_get_click(click)
  logger.debug do
    args = [click]
    "called ui_button_get_click with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(15)
  bytes += param_simple(click)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_get_horz(value) ⇒ Object



3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
# File 'lib/lignite/ev3_ops.rb', line 3671

def ui_button_get_horz(value)
  logger.debug do
    args = [value]
    "called ui_button_get_horz with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(7)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_get_vert(value) ⇒ Object



3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
# File 'lib/lignite/ev3_ops.rb', line 3688

def ui_button_get_vert(value)
  logger.debug do
    args = [value]
    "called ui_button_get_vert with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(8)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_longpress(button, state) ⇒ Object



3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
# File 'lib/lignite/ev3_ops.rb', line 3589

def ui_button_longpress(button, state)
  logger.debug do
    args = [button, state]
    "called ui_button_longpress with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(2)
  bytes += param_simple(button)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_press(button) ⇒ Object



3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
# File 'lib/lignite/ev3_ops.rb', line 3637

def ui_button_press(button)
  logger.debug do
    args = [button]
    "called ui_button_press with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(5)
  bytes += param_simple(button)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_pressed(button, state) ⇒ Object



3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
# File 'lib/lignite/ev3_ops.rb', line 3706

def ui_button_pressed(button, state)
  logger.debug do
    args = [button, state]
    "called ui_button_pressed with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(9)
  bytes += param_simple(button)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_release(button) ⇒ Object



3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
# File 'lib/lignite/ev3_ops.rb', line 3654

def ui_button_release(button)
  logger.debug do
    args = [button]
    "called ui_button_release with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(6)
  bytes += param_simple(button)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_set_back_block(blocked) ⇒ Object



3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
# File 'lib/lignite/ev3_ops.rb', line 3724

def ui_button_set_back_block(blocked)
  logger.debug do
    args = [blocked]
    "called ui_button_set_back_block with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(10)
  bytes += param_simple(blocked)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_shortpress(button, state) ⇒ Object



3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
# File 'lib/lignite/ev3_ops.rb', line 3570

def ui_button_shortpress(button, state)
  logger.debug do
    args = [button, state]
    "called ui_button_shortpress with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(1)
  bytes += param_simple(button)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_testlongpress(button, state) ⇒ Object



3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
# File 'lib/lignite/ev3_ops.rb', line 3778

def ui_button_testlongpress(button, state)
  logger.debug do
    args = [button, state]
    "called ui_button_testlongpress with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(13)
  bytes += param_simple(button)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_testshortpress(button, state) ⇒ Object



3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
# File 'lib/lignite/ev3_ops.rb', line 3759

def ui_button_testshortpress(button, state)
  logger.debug do
    args = [button, state]
    "called ui_button_testshortpress with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(12)
  bytes += param_simple(button)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_button_wait_for_pressObject



3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
# File 'lib/lignite/ev3_ops.rb', line 3606

def ui_button_wait_for_press
  logger.debug do
    args = []
    "called ui_button_wait_for_press with #{args.inspect}"
  end

  bytes = u8(0x83)
  bytes += param_simple(3)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw(*args) ⇒ Object



4731
4732
4733
4734
4735
4736
# File 'lib/lignite/ev3_ops.rb', line 4731

def ui_draw(*args)
  logger.debug "called ui_draw with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_UI_DRAW.fetch(cvalue)
  __send__("ui_draw_#{csym}", *args)
end

#ui_draw_bmpfile(color, x0, y0, name) ⇒ Object



4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
# File 'lib/lignite/ev3_ops.rb', line 4574

def ui_draw_bmpfile(color, x0, y0, name)
  logger.debug do
    args = [color, x0, y0, name]
    "called ui_draw_bmpfile with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(28)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(name)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_browse(type, x0, y0, x1, y1, length, item_type, string) ⇒ Object



4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'lib/lignite/ev3_ops.rb', line 4251

def ui_draw_browse(type, x0, y0, x1, y1, length, item_type, string)
  logger.debug do
    args = [type, x0, y0, x1, y1, length, item_type, string]
    "called ui_draw_browse with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(14)
  bytes += param_simple(type)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1)
  bytes += param_simple(length)
  bytes += param_simple(item_type)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_circle(color, x0, y0, r) ⇒ Object



3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
# File 'lib/lignite/ev3_ops.rb', line 3956

def ui_draw_circle(color, x0, y0, r)
  logger.debug do
    args = [color, x0, y0, r]
    "called ui_draw_circle with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(4)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_cleanObject



3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
# File 'lib/lignite/ev3_ops.rb', line 3891

def ui_draw_clean
  logger.debug do
    args = []
    "called ui_draw_clean with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(1)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_dotline(color, x0, y0, x1, y1, on, off) ⇒ Object



4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
# File 'lib/lignite/ev3_ops.rb', line 4408

def ui_draw_dotline(color, x0, y0, x1, y1 , on , off )
  logger.debug do
    args = [color, x0, y0, x1, y1 , on , off ]
    "called ui_draw_dotline with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(21)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1 )
  bytes += param_simple(on )
  bytes += param_simple(off )
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_fillcircle(color, x0, y0, r) ⇒ Object



4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
# File 'lib/lignite/ev3_ops.rb', line 4492

def ui_draw_fillcircle(color, x0, y0, r)
  logger.debug do
    args = [color, x0, y0, r]
    "called ui_draw_fillcircle with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(24)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(r)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_fillrect(color, x0, y0, x1, y1) ⇒ Object



4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
# File 'lib/lignite/ev3_ops.rb', line 4078

def ui_draw_fillrect(color, x0, y0, x1, y1 )
  logger.debug do
    args = [color, x0, y0, x1, y1 ]
    "called ui_draw_fillrect with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(9)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1 )
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_fillwindow(color, y0, y1) ⇒ Object



4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
# File 'lib/lignite/ev3_ops.rb', line 4366

def ui_draw_fillwindow(color, y0, y1)
  logger.debug do
    args = [color, y0, y1]
    "called ui_draw_fillwindow with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(19)
  bytes += param_simple(color)
  bytes += param_simple(y0)
  bytes += param_simple(y1)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_graph_draw(view, actual, lowest, highest, average) ⇒ Object



4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
# File 'lib/lignite/ev3_ops.rb', line 4647

def ui_draw_graph_draw(view, actual, lowest, highest, average)
  logger.debug do
    args = [view, actual, lowest, highest, average]
    "called ui_draw_graph_draw with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(31)
  bytes += param_simple(view)
  bytes += param_simple(actual)
  bytes += param_simple(lowest)
  bytes += param_simple(highest)
  bytes += param_simple(average)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_graph_setup(x0, x1, items, offset, span, min, max, sample) ⇒ Object



4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
# File 'lib/lignite/ev3_ops.rb', line 4619

def ui_draw_graph_setup(x0, x1, items, offset, span, min, max, sample)
  logger.debug do
    args = [x0, x1, items, offset, span, min, max, sample]
    "called ui_draw_graph_setup with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(30)
  bytes += param_simple(x0)
  bytes += param_simple(x1)
  bytes += param_simple(items)
  bytes += param_simple(offset)
  bytes += param_simple(span)
  bytes += param_simple(min)
  bytes += param_simple(max)
  bytes += param_simple(sample)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_icon(color, x0, y0, type, no) ⇒ Object



4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
# File 'lib/lignite/ev3_ops.rb', line 4003

def ui_draw_icon(color, x0, y0, type, no)
  logger.debug do
    args = [color, x0, y0, type, no]
    "called ui_draw_icon with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(6)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(type)
  bytes += param_simple(no)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_icon_question(color, x0, y0, state, icons) ⇒ Object



4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
# File 'lib/lignite/ev3_ops.rb', line 4550

def ui_draw_icon_question(color, x0, y0, state, icons)
  logger.debug do
    args = [color, x0, y0, state, icons]
    "called ui_draw_icon_question with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(27)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(state)
  bytes += param_simple(icons)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_inverserect(x0, y0, x1, y1) ⇒ Object



4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
# File 'lib/lignite/ev3_ops.rb', line 4309

def ui_draw_inverserect(x0, y0, x1, y1 )
  logger.debug do
    args = [x0, y0, x1, y1 ]
    "called ui_draw_inverserect with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(16)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1 )
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_keyboard(color, x0, y0, icon, length, default, charset, string) ⇒ Object



4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
# File 'lib/lignite/ev3_ops.rb', line 4219

def ui_draw_keyboard(color, x0, y0, icon, length, default, charset, string)
  logger.debug do
    args = [color, x0, y0, icon, length, default, charset, string]
    "called ui_draw_keyboard with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(13)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(icon)
  bytes += param_simple(length)
  bytes += param_simple(default)
  bytes += param_simple(charset)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_line(color, x0, y0, x1, y1) ⇒ Object



3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
# File 'lib/lignite/ev3_ops.rb', line 3932

def ui_draw_line(color, x0, y0, x1, y1 )
  logger.debug do
    args = [color, x0, y0, x1, y1 ]
    "called ui_draw_line with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(3)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1 )
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_notification(color, x0, y0, icon1, icon2, icon3, string, state) ⇒ Object



4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
# File 'lib/lignite/ev3_ops.rb', line 4156

def ui_draw_notification(color, x0, y0, icon1, icon2, icon3, string, state)
  logger.debug do
    args = [color, x0, y0, icon1, icon2, icon3, string, state]
    "called ui_draw_notification with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(11)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(icon1)
  bytes += param_simple(icon2)
  bytes += param_simple(icon3)
  bytes += param_simple(string)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_picture(color, x0, y0, ip) ⇒ Object



4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
# File 'lib/lignite/ev3_ops.rb', line 4027

def ui_draw_picture(color, x0, y0, ip)
  logger.debug do
    args = [color, x0, y0, ip]
    "called ui_draw_picture with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(7)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(ip)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_pixel(color, x0, y0) ⇒ Object



3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
# File 'lib/lignite/ev3_ops.rb', line 3909

def ui_draw_pixel(color, x0, y0)
  logger.debug do
    args = [color, x0, y0]
    "called ui_draw_pixel with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(2)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_popup(open) ⇒ Object



4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
# File 'lib/lignite/ev3_ops.rb', line 4594

def ui_draw_popup(open)
  logger.debug do
    args = [open]
    "called ui_draw_popup with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(29)
  bytes += param_simple(open)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_question(color, x0, y0, icon1, icon2, string, state, ok) ⇒ Object



4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
# File 'lib/lignite/ev3_ops.rb', line 4187

def ui_draw_question(color, x0, y0, icon1, icon2, string, state, ok)
  logger.debug do
    args = [color, x0, y0, icon1, icon2, string, state, ok]
    "called ui_draw_question with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(12)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(icon1)
  bytes += param_simple(icon2)
  bytes += param_simple(string)
  bytes += param_simple(state)
  bytes += param_simple(ok)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_rect(color, x0, y0, x1, y1) ⇒ Object



4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
# File 'lib/lignite/ev3_ops.rb', line 4103

def ui_draw_rect(color, x0, y0, x1, y1 )
  logger.debug do
    args = [color, x0, y0, x1, y1 ]
    "called ui_draw_rect with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(10)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1 )
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_rectangle(color, x0, y0, x1, y1) ⇒ Object



4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
# File 'lib/lignite/ev3_ops.rb', line 4128

def ui_draw_rectangle(color, x0, y0, x1, y1 )
  logger.debug do
    args = [color, x0, y0, x1, y1 ]
    "called ui_draw_rectangle with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(10)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1 )
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_restore(no) ⇒ Object



4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
# File 'lib/lignite/ev3_ops.rb', line 4529

def ui_draw_restore(no)
  logger.debug do
    args = [no]
    "called ui_draw_restore with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(26)
  bytes += param_simple(no)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_scroll(y) ⇒ Object



4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
# File 'lib/lignite/ev3_ops.rb', line 4385

def ui_draw_scroll(y)
  logger.debug do
    args = [y]
    "called ui_draw_scroll with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(20)
  bytes += param_simple(y)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_select_font(type) ⇒ Object



4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
# File 'lib/lignite/ev3_ops.rb', line 4329

def ui_draw_select_font(type)
  logger.debug do
    args = [type]
    "called ui_draw_select_font with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(17)
  bytes += param_simple(type)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_store(no) ⇒ Object



4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
# File 'lib/lignite/ev3_ops.rb', line 4512

def ui_draw_store(no)
  logger.debug do
    args = [no]
    "called ui_draw_store with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(25)
  bytes += param_simple(no)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_text(color, x0, y0, string) ⇒ Object



3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
# File 'lib/lignite/ev3_ops.rb', line 3979

def ui_draw_text(color, x0, y0, string)
  logger.debug do
    args = [color, x0, y0, string]
    "called ui_draw_text with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(5)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_textbox(x0, y0, x1, y1, text, size, del, line) ⇒ Object



4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
# File 'lib/lignite/ev3_ops.rb', line 4675

def ui_draw_textbox(x0, y0, x1, y1, text, size, del, line)
  logger.debug do
    args = [x0, y0, x1, y1, text, size, del, line]
    "called ui_draw_textbox with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(32)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1)
  bytes += param_simple(text)
  bytes += param_simple(size)
  bytes += param_simple(del)
  bytes += param_simple(line)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_topline(enable) ⇒ Object



4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
# File 'lib/lignite/ev3_ops.rb', line 4346

def ui_draw_topline(enable)
  logger.debug do
    args = [enable]
    "called ui_draw_topline with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(18)
  bytes += param_simple(enable)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_updateObject



3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
# File 'lib/lignite/ev3_ops.rb', line 3876

def ui_draw_update
  logger.debug do
    args = []
    "called ui_draw_update with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(0)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_value(color, x0, y0, value, figures, decimals) ⇒ Object



4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
# File 'lib/lignite/ev3_ops.rb', line 4052

def ui_draw_value(color, x0, y0, value, figures, decimals)
  logger.debug do
    args = [color, x0, y0, value, figures, decimals]
    "called ui_draw_value with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(8)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(value)
  bytes += param_simple(figures)
  bytes += param_simple(decimals)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_vertbar(color, x0, y0, x1, y1, min, max, act) ⇒ Object



4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
# File 'lib/lignite/ev3_ops.rb', line 4282

def ui_draw_vertbar(color, x0, y0, x1, y1, min, max, act)
  logger.debug do
    args = [color, x0, y0, x1, y1, min, max, act]
    "called ui_draw_vertbar with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(15)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(x1)
  bytes += param_simple(y1)
  bytes += param_simple(min)
  bytes += param_simple(max)
  bytes += param_simple(act)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_view_unit(color, x0, y0, value, figures, decimals, length, string) ⇒ Object



4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
# File 'lib/lignite/ev3_ops.rb', line 4465

def ui_draw_view_unit(color, x0, y0, value, figures, decimals, length, string)
  logger.debug do
    args = [color, x0, y0, value, figures, decimals, length, string]
    "called ui_draw_view_unit with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(23)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(value)
  bytes += param_simple(figures)
  bytes += param_simple(decimals)
  bytes += param_simple(length)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_draw_view_value(color, x0, y0, value, figures, decimals) ⇒ Object



4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
# File 'lib/lignite/ev3_ops.rb', line 4436

def ui_draw_view_value(color, x0, y0, value, figures, decimals)
  logger.debug do
    args = [color, x0, y0, value, figures, decimals]
    "called ui_draw_view_value with #{args.inspect}"
  end

  bytes = u8(0x84)
  bytes += param_simple(22)
  bytes += param_simple(color)
  bytes += param_simple(x0)
  bytes += param_simple(y0)
  bytes += param_simple(value)
  bytes += param_simple(figures)
  bytes += param_simple(decimals)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_flushObject

User Interface flush buffers



2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
# File 'lib/lignite/ev3_ops.rb', line 2637

def ui_flush
  logger.debug do
    args = []
    "called ui_flush with #{args.inspect}"
  end

  bytes = u8(0x80)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read(*args) ⇒ Object



3130
3131
3132
3133
3134
3135
# File 'lib/lignite/ev3_ops.rb', line 3130

def ui_read(*args)
  logger.debug "called ui_read with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_UI_READ.fetch(cvalue)
  __send__("ui_read_#{csym}", *args)
end

#ui_read_get_address(value) ⇒ Object



2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
# File 'lib/lignite/ev3_ops.rb', line 2869

def ui_read_get_address(value)
  logger.debug do
    args = [value]
    "called ui_read_get_address with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(13)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_code(length, image, global, flag) ⇒ Object



2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
# File 'lib/lignite/ev3_ops.rb', line 2889

def ui_read_get_code(length, image, global, flag)
  logger.debug do
    args = [length, image, global, flag]
    "called ui_read_get_code with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(14)
  bytes += param_simple(length)
  bytes += param_simple(image)
  bytes += param_simple(global)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_event(event) ⇒ Object



2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
# File 'lib/lignite/ev3_ops.rb', line 2706

def ui_read_get_event(event)
  logger.debug do
    args = [event]
    "called ui_read_get_event with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(4)
  bytes += param_simple(event)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_fw_build(length, destination) ⇒ Object

Get firmware build string



2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
# File 'lib/lignite/ev3_ops.rb', line 2832

def ui_read_get_fw_build(length, destination)
  logger.debug do
    args = [length, destination]
    "called ui_read_get_fw_build with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(11)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_fw_vers(length, destination) ⇒ Object

Get firmware version string



2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
# File 'lib/lignite/ev3_ops.rb', line 2813

def ui_read_get_fw_vers(length, destination)
  logger.debug do
    args = [length, destination]
    "called ui_read_get_fw_vers with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(10)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_hw_vers(length, destination) ⇒ Object

Get hardware version string



2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
# File 'lib/lignite/ev3_ops.rb', line 2794

def ui_read_get_hw_vers(length, destination)
  logger.debug do
    args = [length, destination]
    "called ui_read_get_hw_vers with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(9)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_ibatt(value) ⇒ Object



2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
# File 'lib/lignite/ev3_ops.rb', line 2670

def ui_read_get_ibatt(value)
  logger.debug do
    args = [value]
    "called ui_read_get_ibatt with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(2)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_iint(iint) ⇒ Object



2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
# File 'lib/lignite/ev3_ops.rb', line 2740

def ui_read_get_iint(iint)
  logger.debug do
    args = [iint]
    "called ui_read_get_iint with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(6)
  bytes += param_simple(iint)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_imotor(value) ⇒ Object



2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
# File 'lib/lignite/ev3_ops.rb', line 2757

def ui_read_get_imotor(value)
  logger.debug do
    args = [value]
    "called ui_read_get_imotor with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(7)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_ip(length, destination) ⇒ Object

Get IP address string



3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
# File 'lib/lignite/ev3_ops.rb', line 3024

def ui_read_get_ip(length, destination)
  logger.debug do
    args = [length, destination]
    "called ui_read_get_ip with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(27)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_lbatt(pct) ⇒ Object

Get battery level in %



2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
# File 'lib/lignite/ev3_ops.rb', line 2960

def ui_read_get_lbatt(pct)
  logger.debug do
    args = [pct]
    "called ui_read_get_lbatt with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(18)
  bytes += param_simple(pct)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_os_build(length, destination) ⇒ Object

Get os build string



2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
# File 'lib/lignite/ev3_ops.rb', line 2851

def ui_read_get_os_build(length, destination)
  logger.debug do
    args = [length, destination]
    "called ui_read_get_os_build with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(12)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_os_vers(length, destination) ⇒ Object

Get os version string



2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
# File 'lib/lignite/ev3_ops.rb', line 2688

def ui_read_get_os_vers(length, destination)
  logger.debug do
    args = [length, destination]
    "called ui_read_get_os_vers with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(3)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_power(vbatt, ibatt, iint, imotor) ⇒ Object



3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
# File 'lib/lignite/ev3_ops.rb', line 3045

def ui_read_get_power(vbatt, ibatt, iint, imotor)
  logger.debug do
    args = [vbatt, ibatt, iint, imotor]
    "called ui_read_get_power with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(29)
  bytes += param_simple(vbatt)
  bytes += param_simple(ibatt)
  bytes += param_simple(iint)
  bytes += param_simple(imotor)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_sdcard(state, total, free) ⇒ Object



3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
# File 'lib/lignite/ev3_ops.rb', line 3067

def ui_read_get_sdcard(state, total, free)
  logger.debug do
    args = [state, total, free]
    "called ui_read_get_sdcard with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(30)
  bytes += param_simple(state)
  bytes += param_simple(total)
  bytes += param_simple(free)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_shutdown(flag) ⇒ Object



2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
# File 'lib/lignite/ev3_ops.rb', line 2926

def ui_read_get_shutdown(flag)
  logger.debug do
    args = [flag]
    "called ui_read_get_shutdown with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(16)
  bytes += param_simple(flag)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_string(length, destination) ⇒ Object

Get string from terminal



2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
# File 'lib/lignite/ev3_ops.rb', line 2775

def ui_read_get_string(length, destination)
  logger.debug do
    args = [length, destination]
    "called ui_read_get_string with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(8)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_tbatt(value) ⇒ Object



2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
# File 'lib/lignite/ev3_ops.rb', line 2723

def ui_read_get_tbatt(value)
  logger.debug do
    args = [value]
    "called ui_read_get_tbatt with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(5)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_usbstick(state, total, free) ⇒ Object



3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
# File 'lib/lignite/ev3_ops.rb', line 3088

def ui_read_get_usbstick(state, total, free)
  logger.debug do
    args = [state, total, free]
    "called ui_read_get_usbstick with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(31)
  bytes += param_simple(state)
  bytes += param_simple(total)
  bytes += param_simple(free)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_vbatt(value) ⇒ Object



2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
# File 'lib/lignite/ev3_ops.rb', line 2653

def ui_read_get_vbatt(value)
  logger.debug do
    args = [value]
    "called ui_read_get_vbatt with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(1)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_version(length, destination) ⇒ Object

Get version string



3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
# File 'lib/lignite/ev3_ops.rb', line 3005

def ui_read_get_version(length, destination)
  logger.debug do
    args = [length, destination]
    "called ui_read_get_version with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(26)
  bytes += param_simple(length)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_get_warning(warnings) ⇒ Object



2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
# File 'lib/lignite/ev3_ops.rb', line 2943

def ui_read_get_warning(warnings)
  logger.debug do
    args = [warnings]
    "called ui_read_get_warning with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(17)
  bytes += param_simple(warnings)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_key(value) ⇒ Object



2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
# File 'lib/lignite/ev3_ops.rb', line 2909

def ui_read_key(value)
  logger.debug do
    args = [value]
    "called ui_read_key with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(15)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_read_textbox_read(text, size, del, length, line, destination) ⇒ Object



2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
# File 'lib/lignite/ev3_ops.rb', line 2982

def ui_read_textbox_read(text, size, del, length, line, destination)
  logger.debug do
    args = [text, size, del, length, line, destination]
    "called ui_read_textbox_read with #{args.inspect}"
  end

  bytes = u8(0x81)
  bytes += param_simple(21)
  bytes += param_simple(text)
  bytes += param_simple(size)
  bytes += param_simple(del)
  bytes += param_simple(length)
  bytes += param_simple(line)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write(*args) ⇒ Object



3557
3558
3559
3560
3561
3562
# File 'lib/lignite/ev3_ops.rb', line 3557

def ui_write(*args)
  logger.debug "called ui_write with #{args.inspect}"
  cvalue = args.shift
  csym = MULTIPLEX_UI_WRITE.fetch(cvalue)
  __send__("ui_write_#{csym}", *args)
end

#ui_write_address(value) ⇒ Object



3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
# File 'lib/lignite/ev3_ops.rb', line 3280

def ui_write_address(value)
  logger.debug do
    args = [value]
    "called ui_write_address with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(13)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_allow_pulse(value) ⇒ Object



3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
# File 'lib/lignite/ev3_ops.rb', line 3348

def ui_write_allow_pulse(value)
  logger.debug do
    args = [value]
    "called ui_write_allow_pulse with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(17)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_code(array, length) ⇒ Object



3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
# File 'lib/lignite/ev3_ops.rb', line 3298

def ui_write_code(array, length)
  logger.debug do
    args = [array, length]
    "called ui_write_code with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(14)
  bytes += param_simple(array)
  bytes += param_simple(length)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_download_endObject

Send to brick when file down load is completed (plays sound and updates the UI browser)



3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
# File 'lib/lignite/ev3_ops.rb', line 3315

def ui_write_download_end
  logger.debug do
    args = []
    "called ui_write_download_end with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(15)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_floatvalue(value, figures, decimals) ⇒ Object



3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
# File 'lib/lignite/ev3_ops.rb', line 3159

def ui_write_floatvalue(value, figures, decimals)
  logger.debug do
    args = [value, figures, decimals]
    "called ui_write_floatvalue with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(2)
  bytes += param_simple(value)
  bytes += param_simple(figures)
  bytes += param_simple(decimals)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_graph_sampleObject

Update tick to scroll graph horizontally in memory when drawing graph in “scope” mode



3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
# File 'lib/lignite/ev3_ops.rb', line 3502

def ui_write_graph_sample
  logger.debug do
    args = []
    "called ui_write_graph_sample with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(30)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_init_runObject

Start the “Mindstorms” “run” screen



3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
# File 'lib/lignite/ev3_ops.rb', line 3438

def ui_write_init_run
  logger.debug do
    args = []
    "called ui_write_init_run with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(25)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_led(pattern) ⇒ Object



3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
# File 'lib/lignite/ev3_ops.rb', line 3469

def ui_write_led(pattern)
  logger.debug do
    args = [pattern]
    "called ui_write_led with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(27)
  bytes += param_simple(pattern)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_power(value) ⇒ Object



3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
# File 'lib/lignite/ev3_ops.rb', line 3486

def ui_write_power(value)
  logger.debug do
    args = [value]
    "called ui_write_power with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(29)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_put_string(string) ⇒ Object



3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
# File 'lib/lignite/ev3_ops.rb', line 3195

def ui_write_put_string(string)
  logger.debug do
    args = [string]
    "called ui_write_put_string with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(8)
  bytes += param_simple(string)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_screen_block(status) ⇒ Object

Set or clear screen block status (if screen blocked - all graphical screen action are disabled)



3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
# File 'lib/lignite/ev3_ops.rb', line 3331

def ui_write_screen_block(status)
  logger.debug do
    args = [status]
    "called ui_write_screen_block with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(16)
  bytes += param_simple(status)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_set_busy(value) ⇒ Object



3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
# File 'lib/lignite/ev3_ops.rb', line 3405

def ui_write_set_busy(value)
  logger.debug do
    args = [value]
    "called ui_write_set_busy with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(22)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_set_pulse(value) ⇒ Object



3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
# File 'lib/lignite/ev3_ops.rb', line 3365

def ui_write_set_pulse(value)
  logger.debug do
    args = [value]
    "called ui_write_set_pulse with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(18)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_set_testpin(state) ⇒ Object



3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
# File 'lib/lignite/ev3_ops.rb', line 3422

def ui_write_set_testpin(state)
  logger.debug do
    args = [state]
    "called ui_write_set_testpin with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(24)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_stamp(value) ⇒ Object



3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
# File 'lib/lignite/ev3_ops.rb', line 3178

def ui_write_stamp(value)
  logger.debug do
    args = [value]
    "called ui_write_stamp with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(3)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_terminal(state) ⇒ Object



3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
# File 'lib/lignite/ev3_ops.rb', line 3518

def ui_write_terminal(state)
  logger.debug do
    args = [state]
    "called ui_write_terminal with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(31)
  bytes += param_simple(state)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_textbox_append(text, size, del, source) ⇒ Object

Append line of text at the bottom of a text box



3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
# File 'lib/lignite/ev3_ops.rb', line 3385

def ui_write_textbox_append(text, size, del, source)
  logger.debug do
    args = [text, size, del, source]
    "called ui_write_textbox_append with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(21)
  bytes += param_simple(text)
  bytes += param_simple(size)
  bytes += param_simple(del)
  bytes += param_simple(source)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_update_runObject



3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
# File 'lib/lignite/ev3_ops.rb', line 3453

def ui_write_update_run
  logger.debug do
    args = []
    "called ui_write_update_run with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(26)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_value16(value) ⇒ Object



3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
# File 'lib/lignite/ev3_ops.rb', line 3229

def ui_write_value16(value)
  logger.debug do
    args = [value]
    "called ui_write_value16 with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(10)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_value32(value) ⇒ Object



3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
# File 'lib/lignite/ev3_ops.rb', line 3246

def ui_write_value32(value)
  logger.debug do
    args = [value]
    "called ui_write_value32 with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(11)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_value8(value) ⇒ Object



3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
# File 'lib/lignite/ev3_ops.rb', line 3212

def ui_write_value8(value)
  logger.debug do
    args = [value]
    "called ui_write_value8 with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(9)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_valuef(value) ⇒ Object



3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
# File 'lib/lignite/ev3_ops.rb', line 3263

def ui_write_valuef(value)
  logger.debug do
    args = [value]
    "called ui_write_valuef with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(12)
  bytes += param_simple(value)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#ui_write_write_flushObject



3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
# File 'lib/lignite/ev3_ops.rb', line 3141

def ui_write_write_flush
  logger.debug do
    args = []
    "called ui_write_write_flush with #{args.inspect}"
  end

  bytes = u8(0x82)
  bytes += param_simple(1)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#write16(source, index, destination) ⇒ Object

Write 16 bit value from SOURCE to DESTINATION



8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
# File 'lib/lignite/ev3_ops.rb', line 8054

def write16(source, index, destination)
  logger.debug do
    args = [source, index, destination]
    "called write16 with #{args.inspect}"
  end

  bytes = u8(0xCD)
  bytes += param_simple(source)
  bytes += param_simple(index)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#write32(source, index, destination) ⇒ Object

Write 32 bit value from SOURCE to DESTINATION



8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
# File 'lib/lignite/ev3_ops.rb', line 8072

def write32(source, index, destination)
  logger.debug do
    args = [source, index, destination]
    "called write32 with #{args.inspect}"
  end

  bytes = u8(0xCE)
  bytes += param_simple(source)
  bytes += param_simple(index)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#write8(source, index, destination) ⇒ Object

Write 8 bit value from SOURCE to DESTINATION



8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
# File 'lib/lignite/ev3_ops.rb', line 8036

def write8(source, index, destination)
  logger.debug do
    args = [source, index, destination]
    "called write8 with #{args.inspect}"
  end

  bytes = u8(0xCC)
  bytes += param_simple(source)
  bytes += param_simple(index)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#writef(source, index, destination) ⇒ Object

Write floating point value from SOURCE to DESTINATION



8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
# File 'lib/lignite/ev3_ops.rb', line 8090

def writef(source, index, destination)
  logger.debug do
    args = [source, index, destination]
    "called writef with #{args.inspect}"
  end

  bytes = u8(0xCF)
  bytes += param_simple(source)
  bytes += param_simple(index)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#xor16(source1, source2, destination) ⇒ Object

Exclusive or two 16 bit values DESTINATION = SOURCE1 ^ SOURCE2



779
780
781
782
783
784
785
786
787
788
789
790
791
# File 'lib/lignite/ev3_ops.rb', line 779

def xor16(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called xor16 with #{args.inspect}"
  end

  bytes = u8(0x29)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#xor32(source1, source2, destination) ⇒ Object

Exclusive or two 32 bit values DESTINATION = SOURCE1 ^ SOURCE2



797
798
799
800
801
802
803
804
805
806
807
808
809
# File 'lib/lignite/ev3_ops.rb', line 797

def xor32(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called xor32 with #{args.inspect}"
  end

  bytes = u8(0x2A)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end

#xor8(source1, source2, destination) ⇒ Object

Exclusive or two 8 bit values DESTINATION = SOURCE1 ^ SOURCE2



761
762
763
764
765
766
767
768
769
770
771
772
773
# File 'lib/lignite/ev3_ops.rb', line 761

def xor8(source1, source2, destination)
  logger.debug do
    args = [source1, source2, destination]
    "called xor8 with #{args.inspect}"
  end

  bytes = u8(0x28)
  bytes += param_simple(source1)
  bytes += param_simple(source2)
  bytes += param_simple(destination)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end