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.
6.3.3 Return Status Codes<br />
Condition<br />
Return Value<br />
Library Uninitialized<br />
EAPI_STATUS_NOT_INITIALIZED<br />
pBuffer==NULL<br />
EAPI_STATUS_INVALID_PARAMETER<br />
ByteCnt==0<br />
EAPI_STATUS_INVALID_PARAMETER<br />
BufLen==0<br />
EAPI_STATUS_INVALID_PARAMETER<br />
unknown Id<br />
EAPI_STATUS_UNSUPPORTED<br />
Offset+ByteCnt>pStorageSize EAPI_STATUS_INVALID_BLOCK_LENGTH<br />
Read Error<br />
EAPI_STATUS_READ_ERROR<br />
ByteCnt>BufLen<br />
EAPI_STATUS_MORE_DATA<br />
... see 2.3 Status Codes on page 16<br />
Success<br />
EAPI_STATUS_SUCCESS<br />
6.4 EApiStorageAreaWrite<br />
6.4.1 Description<br />
Writes data to the selected user data area.<br />
6.4.2 Parameters<br />
Id<br />
uint32_t<br />
EAPI_CALLTYPE<br />
EApiStorageAreaWrite(<br />
__IN uint32_t Id , /* Storage Area Id */<br />
__IN uint32_t Offset , /* Byte Offset */<br />
__IN void *pBuffer , /* Pointer to Data pBuffer */<br />
__IN uint32_t ByteCnt /* Number of bytes to write*/<br />
);<br />
FUNC_DEF 11: EApiStorageAreaWrite<br />
__IN See '6.1.1 Storage Ids' on page 28<br />
Offset<br />
__IN Storage area start address offset in bytes. This value must be a multiple of *pBlockLength.<br />
pBuffer<br />
__IN Pointer to a buffer containing the data to be stored.<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 30 of 83