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.

* Arbitration Error/Collision Error<br />

| EAPI_STATUS_BUSY_COLLISION<br />

* On Write 1 write cycle |<br />

* SDA Remains low |<br />

* Time-out due to clock stretching | EAPI_STATUS_TIMEOUT<br />

* |<br />

* 7Bit Address |<br />

* startNak | EAPI_STATUS_NOT_FOUND<br />

* |<br />

* 10Bit Address |<br />

* startNak | EAPI_STATUS_NOT_FOUND<br />

* startAckNak | EAPI_STATUS_NOT_FOUND<br />

* |<br />

* Common Error | Common Error Code<br />

* Else | EAPI_STATUS_SUCCESS<br />

*/<br />

EApiStatus_t<br />

EAPI_CALLTYPE<br />

EApiI2CProbeDevice(<br />

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

__IN uint32_t Addr /* Encoded 7/10Bit<br />

* I2C Device Address<br />

*/<br />

);<br />

/*<br />

*<br />

* W A T C H D O G<br />

*<br />

*/<br />

/*<br />

*<br />

* After EApiWDogStart<br />

*<br />

* ||||<br />

* A-----------B-------------------C-------------------D<br />

*<br />

*<br />

* After EApiWDogTrigger<br />

*<br />

* |||<br />

* E-------------------F-------------------G<br />

*<br />

*<br />

* Stage A<br />

* Watchdog is started.<br />

*<br />

* Stage B<br />

* Initial Delay Period is exhausted.<br />

*<br />

* Stage C/F<br />

* Event is triggered, NMI, IRQ, or PIN is Triggered.<br />

* To Allow for possible Software Recovery.<br />

*<br />

* Stage D/G<br />

* System is reset.<br />

*<br />

* Stage E<br />

* Watchdog is Triggered.<br />

*<br />

* EApiWDogTrigger/EApiWDogStop Must be called before Stage C/F<br />

* to prevent event from being generated.<br />

*<br />

* EApiWDogTrigger/EApiWDogStop Must be called before Stage D/G<br />

* to prevent The system from being reset.<br />

*<br />

*/<br />

/*<br />

* EApiWDogGetCap<br />

*<br />

* Condition | Return Values<br />

* ---------------------------------------+------------------------------<br />

* Library Uninitialized | EAPI_STATUS_NOT_INITIALIZED<br />

* Unsupported | EAPI_STATUS_UNSUPPORTED<br />

* pMaxDelay==NULL&& |<br />

* pMaxResetTimeout==NULL&& |<br />

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

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

Saved successfully!

Ooh no, something went wrong!