Embedded Application Programming Interface - picmg
Embedded Application Programming Interface - picmg
Embedded Application Programming Interface - picmg
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
7.8.3 Return Status Codes<br />
Condition<br />
Library Uninitialized<br />
pBuffer==NULL<br />
ByteCnt=0<br />
unknown Id<br />
ByteCnt+(overhead)>pMaxBlkLen<br />
Bus Busy SDA/SDC low<br />
Arbitration Error/Collision Error<br />
On Write 1 write cycle<br />
SDA Remains low<br />
Timeout due to clock stretching<br />
startNak<br />
startNak<br />
startAckNak<br />
startAckNak<br />
startAckNak<br />
Return Value<br />
EAPI_STATUS_NOT_INITIALIZED<br />
EAPI_STATUS_INVALID_PARAMETER<br />
EAPI_STATUS_INVALID_PARAMETER<br />
EAPI_STATUS_UNSUPPORTED<br />
EAPI_STATUS_INVALID_BLOCK_LENGTH<br />
EAPI_STATUS_BUSY_COLLISION<br />
EAPI_STATUS_BUSY_COLLISION<br />
EAPI_STATUS_HW_TIMEOUT<br />
EAPI_STATUS_NOT_FOUND<br />
EAPI_STATUS_NOT_FOUND<br />
EAPI_STATUS_WRITE_ERROR Or<br />
EAPI_STATUS_NOT_FOUND<br />
EAPI_STATUS_WRITE_ERROR<br />
EAPI_STATUS_WRITE_ERROR<br />
... see 2.3 Status Codes on page 16<br />
Success<br />
EAPI_STATUS_SUCCESS<br />
7.9 EApiI2CProbeDevice<br />
uint32_t<br />
EAPI_CALLTYPE<br />
EApiI2CProbeDevice(<br />
__IN uint32_t Id , /* I2C Bus Id */<br />
__IN uint32_t Addr /* Encoded 7/10Bit<br />
* I2C Device Address<br />
*/<br />
);<br />
FUNC_DEF 16: EApiI2CProbeDevice<br />
7.9.1 Description<br />
Probes I2C address to test I2C Device present.<br />
7.9.2 Parameters<br />
Id<br />
__IN See '7.1.1 I2C Bus Ids' on page 32<br />
Addr<br />
__IN Encoded 7/10 Bit I2C Device Address.<br />
PICMG® EAPI R1.0, August 8, 2010 page 41 of 83