Skip to content
Permalink
93de31d2cc
Go to file
 
 
Cannot retrieve contributors at this time
75 lines (75 sloc) 1.83 KB
do return
{ module_name = 'ER-301'
, manufacturer = 'Orthogonal Devices'
, i2c_address = 0x31
, lua_name = 'er301' -- NB: must match the file name. er301.lua -> 'er301'
, commands =
{ { name = 'tr'
, cmd = 1
, get = false
, docs = 'Set TR *port* to *value* (0/1)'
, args = { { 'port', u8 }
, { 'value', s16 }
}
}
, { name = 'tr_tog'
, cmd = 2
, get = false
, docs = 'Toggle TR *port*'
, args = { 'port', u8 }
}
, { name = 'tr_pulse'
, cmd = 3
, get = false
, docs = 'Pulse TR *port* using TO.TR.TIME/S/M as an interval'
, args = { 'port', u8 }
}
, { name = 'tr_time'
, cmd = 4
, get = false
, docs = 'Time for TR.PULSE *port* in *value* milliseconds'
, args = { { 'port', u8 }
, { 'value', s16 }
}
}
, { name = 'tr_pol'
, cmd = 5
, get = false
, docs = 'Polarity for TO.TR.PULSE *port* set to *value* (0/1)'
, args = { { 'port', u8 }
, { 'value', s16 }
}
}
, { name = 'cv'
, cmd = 6
, get = false
, docs = 'Set *port* CV to *value* (bipolar), following SLEW time'
, args = { { 'port', u8 }
, { 'value', s16 }
}
}
, { name = 'cv_slew'
, cmd = 7
, get = false
, docs = 'CV *port* slew time in *value* milliseconds'
, args = { { 'port', u8 }
, { 'value', s16 }
}
}
, { name = 'cv_set'
, cmd = 8
, get = false
, docs = 'Set CV *port* to *value* (bipolar), ignoring SLEW time'
, args = { { 'port', u8 }
, { 'value', s16 }
}
}
, { name = 'cv_off'
, cmd = 9
, get = false
, docs = 'CV *port* offset, *value* added at final stage'
, args = { { 'port', u8 }
, { 'value', s16 }
}
}
end