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.5 EapiI2CGetBusCap<br />
7.5.1 Description<br />
Returns the capabilities of the selected I2C bus.<br />
7.5.2 Parameters<br />
Id<br />
uint32_t<br />
EAPI_CALLTYPE<br />
EApiI2CGetBusCap(<br />
__IN See '7.1.1 I2C Bus Ids' on page 32<br />
pMaxBlkLen<br />
__OUT size in bytes, Pointer to a buffer that receives the maximum transfer block length for the given<br />
interface. Please note care must be taken when using in combination with EapiI2CWriteTransfer as<br />
the maximum data payload length is then pMaxBlkLen-(write overhead). So for example a 10 Bit<br />
Addressed device with Extended command has a write overhead of 3 bytes. Address Byte 2 and 2<br />
byte command.<br />
7.5.3 Return Status Codes<br />
Condition<br />
Library Uninitialized<br />
pMaxBlkLen==NULL<br />
unknown Id<br />
Return Value<br />
EAPI_STATUS_NOT_INITIALIZED<br />
EAPI_STATUS_INVALID_PARAMETER<br />
EAPI_STATUS_UNSUPPORTED<br />
... see 2.3 Status Codes on page 16<br />
Success<br />
__IN uint32_t Id , /* I2C Bus Id */<br />
__OUT uint32_t *pMaxBlkLen /* Max Block Length<br />
* Supported on this<br />
* interface<br />
*/<br />
);<br />
FUNC_DEF 12: EApiI2CGetBusCap<br />
EAPI_STATUS_SUCCESS<br />
7.6 EapiI2CWriteReadRaw<br />
PICMG® EAPI R1.0, August 8, 2010 page 36 of 83