Epics@GSI Webhome

HadCon Multipurpose Controls Protocol Cmnd I2 C

Introduction

Command description of the API command I2C for HadCon2 . With the help of the I2C command, we could configure, write and read all I2C peripheria. i2c-address.png
Fig. 1 Example, how it looks one I2C address

I2C cmnd

Form:
I2C <0|1> <I2C address> <data length> <byte1 ... byte8>

<0|1> : used to execute write or read operation. This is the Least Significant Bit (LSB) from the I2C address byte.

<I2C address> : Here has to be written the hexadecimal value on the address byte, which is shifted to right with one bit. The reason for the right shift is because, the lsb bit ist already used in the first field, where the working operation is choosen.

<data length> : data length

<byte1 ... byte8> : data

Example command:
send: I2C 0 70 1 08
receive: RECV I2C 0 70 01 08 -OK-


-- PeterZumbruch - 28 Sep 2015

-- PeterZumbruch - 2021-03-15
Topic revision: r5 - 2021-03-15, PeterZumbruch - This page was cached on 2024-10-31 - 23:56.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)