Embedded Application Programming Interface - picmg
Embedded Application Programming Interface - picmg
Embedded Application Programming Interface - picmg
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
#define EAPI_STATUS_WRITE_ERROR<br />
EAPI_UINT32_C(0xFFFFFAFE)<br />
/* Description<br />
* The amount of available data exceeds the buffer size.<br />
* Storage buffer overflow was prevented. Read count was larger then<br />
* the defined buffer length.<br />
* Read Count > Buffer Length<br />
* Actions<br />
* Either increase the buffer size or reduce the block length.<br />
*/<br />
#define EAPI_STATUS_MORE_DATA<br />
EAPI_UINT32_C(0xFFFFF9FF)<br />
/* Description<br />
* Generic error message. No further error details are available.<br />
* Actions<br />
* none.<br />
*/<br />
#define EAPI_STATUS_ERROR<br />
EAPI_UINT32_C(0xFFFFF0FF)<br />
/* Description<br />
* The operation was successful.<br />
* Actions<br />
* none.<br />
*/<br />
#define EAPI_STATUS_SUCCESS<br />
#define EAPI_TEST_SUCCESS(x)<br />
EAPI_UINT32_C(0)<br />
(!(x))<br />
/* Library */<br />
/*<br />
* EApiLibInitialize<br />
*<br />
* Condition | Return Values<br />
* ---------------------------------------+------------------------------<br />
* Library Already initialized | EAPI_STATUS_INITIALIZED<br />
* Common Error | Common Error Code<br />
* Else | EAPI_STATUS_SUCCESS<br />
*/<br />
EApiStatus_t<br />
EAPI_CALLTYPE<br />
EApiLibInitialize(void)<br />
; /* Should be called before<br />
* calling any other API<br />
* function is called<br />
*/<br />
/*<br />
* EApiLibUnInitialize<br />
*<br />
* Condition | Return Values<br />
* ---------------------------------------+------------------------------<br />
* Library Uninitialized | EAPI_STATUS_NOT_INITIALIZED<br />
* Common Error | Common Error Code<br />
* Else | EAPI_STATUS_SUCCESS<br />
*/<br />
EApiStatus_t<br />
EAPI_CALLTYPE<br />
EApiLibUnInitialize(void) ; /* Should be called before<br />
* program exit<br />
*/<br />
/*<br />
*<br />
* Plug and Play Identifiers<br />
*<br />
*<br />
*<br />
*/<br />
/*<br />
* The following MACROS are for Creating OEM IDs<br />
* OEM ID macros should be named<br />
* EAPI_[PNPID]_ID_[TYPE]_[NAME]<br />
* E.G.<br />
* EAPI_PMG_ID_BOARD_CUSTOMERID<br />
*/<br />
#define EAPI_BYTE_SWAP_W(a) EAPI_UINT16_C(\<br />
(((a)8)&0x00FF) \<br />
PICMG® EAPI R1.0, August 8, 2010 page 58 of 83