24.05.2014 Views

Embedded Application Programming Interface - picmg

Embedded Application Programming Interface - picmg

Embedded Application Programming Interface - picmg

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.8 EapiI2CWriteTransfer<br />

7.8.1 Description<br />

Write to a specific register in the selected I2C device.<br />

Writes to an I2C device at the I2C address Addr the amount of ByteCnt bytes from the buffer<br />

*pBuffer while using the device specific command Cmd. Depending on the addressed I2C device<br />

Cmd can be a specific command or a byte offset.<br />

7.8.2 Parameters<br />

Id<br />

uint32_t<br />

EAPI_CALLTYPE<br />

EApiI2CWriteTransfer(<br />

__IN uint32_t Id , /* I2C Bus Id */<br />

__IN uint32_t Addr<br />

__IN See '7.1.1 I2C Bus Ids' on page 32<br />

, /* Encoded 7/10Bit I2C<br />

* Device Address<br />

*/<br />

__IN uint32_t Cmd , /* I2C Command/Offset */<br />

__IN void *pBuffer , /* Transfer Data pBuffer */<br />

__IN uint32_t ByteCnt /* Byte Count to write */<br />

);<br />

FUNC_DEF 15: EApiI2CWriteTransfer<br />

Addr<br />

Cmd<br />

__IN Encoded 7/10 Bit I2C Device Address.<br />

__IN Encoded I2C Device Command / Index.<br />

pBuffer<br />

__IN Pointer to a buffer containing the data to be transferred.<br />

ByteCnt<br />

__IN Size, in bytes, of the information pointed to by the pBuffer parameter<br />

PICMG® EAPI R1.0, August 8, 2010 page 40 of 83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!