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

Main

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 O 70 1 08
receive: RECV I2C 0 70 01 08 -OK-


-- PeterZumbruch - 28 Sep 2015

-- MartinMitkov - 2015-09-29

Topic attachments
I Attachment Action Size Date Who CommentSorted ascending
i2c-address.pngpng i2c-address.png manage 4.1 K 2015-09-29 - 07:28 MartinMitkov  
This topic: Epics > WebHome > EpicsProjectsAndActivities > HardwarePlatforms > HadCon2 > HadCon2MultipurposeControlsApi > HadConMultipurposeControlsProtocol > HadConMultipurposeControlsProtocolCmndI2C
Topic revision: 2015-09-29, MartinMitkov
 
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
Imprint (in German)
Privacy Policy (in German)