AxiIICΒΆ
The AxiIIC class provides methods to read from , and write to an AXI IIC controller IP.
The send()
and receive()
methods are used to read and write data.
send(address, data, length, option=0)
address
is the address of the IIC peripheraldata
is an array of bytes to be sent to the IPlength
is the number of bytes to be transferredoption
allows an IIC repeated start
receive(address, data, length, option=0)
address
is the address of the IIC peripheraldata
is an array of bytes to receive data from the IPlength
is the number of bytes to be receivedoption
allows an IIC repeated start
More information about the AxiIIC module and the API for reading, writing and waiting can be found in the pynq.lib.iic Module sections.