1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Oxxius LaserBoxx (LBX/LCX/LMX) laser controller adapter.
//!
//! Protocol (text, `\n` line ending, response terminated by `\r\n`):
//!
//! | Command | Response | Meaning |
//! |----------------|------------------|--------------------------------------|
//! | `inf?\n` | model string | Get model info e.g. "LBX-473-100-CSB"|
//! | `hid?\n` | serial number | Get hardware ID |
//! | `?sv\n` | version string | Get software version |
//! | `?sta\n` | integer 1-7 | Get status (3=emission on) |
//! | `dl 1\n` | (no response) | Turn emission on |
//! | `dl 0\n` | (no response) | Turn emission off |
//! | `p <mW>\n` | (no response) | Set power setpoint (mW) |
//! | `?p\n` | float | Get power readback (mW) |
//! | `?hh\n` | float | Get usage hours |
//! | `?f\n` | integer | Get fault code (0=none) |
//! | `?int\n` | 0 or 1 | Get interlock (1=closed/safe) |
pub use LaserBoxx;
use crate;
use crateDeviceType;
pub const DEVICE_NAME_LASERBOXX: &str = "Oxxius LaserBoxx LBX or LMX or LCX";
static DEVICE_LIST: & = &;
;