|
|
|
# init
|
|
|
|
# Register init values
|
|
|
|
## Interupt mask
|
|
|
|
INTERRUPT_MASK_REG 0x01
|
|
|
|
### teltonika
|
| ... | ... | @@ -18,6 +18,8 @@ value 0xff |
|
|
|
## POE class detection
|
|
|
|
DETECT_CLASS_EN_REG 0x19
|
|
|
|
value 0xff # ?
|
|
|
|
bit 0 - 3 detect enable port 1 - 4
|
|
|
|
bit 4 - 7 class enable port 1 - 4
|
|
|
|
## T limit
|
|
|
|
undokumented T limit?
|
|
|
|
PORT12_TLIM_REG 0x1e
|
| ... | ... | @@ -27,6 +29,19 @@ value 0x0 |
|
|
|
### x-wrt
|
|
|
|
value 0x77
|
|
|
|
|
|
|
|
# prozess
|
|
|
|
## init_start()
|
|
|
|
OPER_MODE_REG 0xaa
|
|
|
|
POWER_EN_REG 0x0f # switch on all ports
|
|
|
|
## port_enable() port2
|
|
|
|
DETECT_CLASS_EN_REG 0x22
|
|
|
|
## port_disable() port3
|
|
|
|
POWER_EN_REG 0x40
|
|
|
|
## init_stop()
|
|
|
|
OPER_MODE_REG 0xaa
|
|
|
|
POWER_EN_REG 0x0f # switch on all ports
|
|
|
|
|
|
|
|
# Documents
|
|
|
|
|
|
|
|
[XS2184-DEMO.pdf](uploads/ea22d64c63ba9191c4d91d12e70fd25e/XS2184-DEMO.pdf)
|
|
|
|
|
| ... | ... | |