PX_RW_SEQ

code: 503

# set
<module-index>/<port-index> PX_RW_SEQ [<page>, <address>, <byte_count>] <value>

# get
<module-index>/<port-index> PX_RW_SEQ [<page>, <address>, <byte_count>] ?

Description

I2C sequential access to a transceiver’s register. When invoked, the <byte_count> number of bytes will be read or written in one I2C transaction, in which the <value> is read or written with only a single register address setup. A subsequent invocation will perform a second I2C transaction in the same manner.

  • <byte_count> number of bytes will be read or written in one I2C transaction

  • <page>: the transceiver page address, integer, 0x00 - 0xFF (0-255).

  • <address>: the address within the page, integer, 0x00 - 0xFF (0-255).

If <address> < 128, the page index <page> is ignored by the server. The server will read from page 0 without writing 0 into byte 127.

If <address> >=128, the page index <page> will be written into byte 127.

Actions

set, get

Parameters

  1. value: hex list, the bytes to be read or written in one I2C transaction. The number of bytes in the <value> equals <byte_count>.

Example

# set
input: 0/1 PX_RW_SEQ [0x00,0x14,0x0A] 0x00001111222200001111
output: <OK>

input: 0/1 PX_RW_SEQ [0,20,10] 0x00001111222200001111
output: <OK>

# get
input:  0/1 PX_RW_SEQ [0x00,0x14,0x0A] ?
output: 0/1 PX_RW_SEQ [0x00,0x14,0x0A] 0x00001111222200001111

input:  0/1 PX_RW_SEQ [0,20,10] ?
output: 0/1 PX_RW_SEQ [0,20,10] 0x00001111222200001111