blob: 7848f4acf0e90e95a6adf91ecf6bffa7233b1afe (
plain)
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
|
Shows configuration and status registers of the ISL58303 (triple laser diode driver IC).
lhtx> isl58303
ISL58303() {
CHIP_ID: 0xE2 ( CHIP_ID:0x38 )
SERIAL_CTRL: 0x00 ( PAGE_SELECT:0x0 )
STATUS: 0x09 ( POWER_GOOD:1 )
SDIO: 0x00 ( SDIO_VOLTAGE:0 )
ENABLE: 0x81 ( CHIP_EN:1 ADC_EN:0 IOUT2_PMOS_EN:0 REGULATOR_EN:1 )
IOUT1_THRESHOLD_SCALE: 0x40
IOUT1_COLOR_SCALE: 0x50
IOUT1_THRESHOLD_DAC: 0x0F
IOUT1_COLOR_DAC: 0x7D
IOUT2_THRESHOLD_SCALE: 0x40
IOUT2_COLOR_SCALE: 0x50
IOUT2_THRESHOLD_DAC: 0x0B
IOUT2_COLOR_DAC: 0x7C
IOUT3_THRESHOLD_SCALE: 0x00
IOUT3_COLOR_SCALE: 0x00
IOUT3_THRESHOLD_DAC: 0x00
IOUT3_COLOR_DAC: 0x00
ADC_SELECT: 0x00 ( IOUT_SELECT:0x0 CODE_SELECT:0 )
ADC_RESULT: 0x00
ADC_CTRL_1: 0x00 ( INPUT_SELECT:0x0 CLOCK_SELECT:0x0 ADC_EN:0 START:0 )
ADC_CTRL_2: 0x00 ( PEAK_EN:0 PEAK_POLARITY:0 SAMPLE_VSO:0 ATTN_BYPASS:0 ATE_TEST:0 )
}
```
Individual registers can be read with `isl58303 [address]`. There is also a command for writing registers but without proper documentation (which is not publicly available) doing that should be avoided!
(I have no doubt that the driver can destroy the laser diodes with ease.)
|