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.
6 Storage Functions<br />
The EAPI defines one user storage area with a minimal size of 32 Byte.<br />
6.1 Common Parameters<br />
6.1.1 Storage Ids<br />
The EAPI only defines one user storage area. Additional vendor specific IDs are possible (see section<br />
11 'Vendor Specific IDs' on page 76)<br />
Id<br />
EAPI_ID_STORAGE_STD<br />
Description<br />
Standard Storage Area >=32Bytes for read/write access<br />
6.2 EApiStorageCap<br />
6.2.1 Description<br />
Get the capabilities of the selected storage area.<br />
6.2.2 Parameters<br />
Id<br />
uint32_t<br />
EAPI_CALLTYPE<br />
EApiStorageCap(<br />
__IN uint32_t Id , /* Storage Area Id */<br />
__OUT uint32_t *pStorageSize , /* Total */<br />
__OUT uint32_t *pBlockLength<br />
);<br />
FUNC_DEF 9: EApiStorageCap<br />
__IN See '6.1.1 Storage Ids' on page 28<br />
/* Write Block Length<br />
* & Alignment<br />
*/<br />
pStorageSize<br />
__OUTOPT Pointer to a buffer that receives storage area size. This parameter can be NULL if the<br />
data is not required.<br />
pBlockLength<br />
__OUTOPT Pointer to a buffer that receives the the storage areas alignment/Block size. This<br />
parameter can be NULL if the data is not required. The value must be used to calculate write block<br />
alignment and size.<br />
PICMG® EAPI R1.0, August 8, 2010 page 28 of 83