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.
4 EAPI Information Functions<br />
4.1 EApiBoardGetStringA<br />
4.1.1 Description:<br />
Text information about the hardware platform.<br />
4.1.2 Parameters<br />
Id<br />
uint32_t<br />
EAPI_CALLTYPE<br />
EApiBoardGetStringA(<br />
__IN uint32_t Id , /* Name Id */<br />
__OUT char *pBuffer , /* Destination pBuffer */<br />
__INOUT uint32_t *pBufLen /* pBuffer Length */<br />
);<br />
FUNC_DEF 3: EApiBoardGetStringA<br />
__IN Selects the Get String Sub function Id.<br />
Id Description Example<br />
EAPI_ID_BOARD_MANUFACTURER_STR Board Manufacturer Name PICMG<br />
EAPI_ID_BOARD_NAME_STR Board Name SAMPLE API<br />
EAPI_ID_BOARD_SERIAL_STR Serial Number Sample Serial<br />
Number<br />
EAPI_ID_BOARD_BIOS_REVISION_STR Board BIOS Revision PICMGR2.0<br />
EAPI_ID_BOARD_PLATFORM_TYPE_STR<br />
Platform ID See 'Platform<br />
Specification' on page 22<br />
COMExpress<br />
pBuffer<br />
__OUT Pointer to a buffer that receives the value's data. This parameter can be NULL if the data is<br />
not required<br />
pBufLen<br />
____INOUT Pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the<br />
pBuffer parameter. When the function returns, this variable contains the size of the data copied to<br />
pBuffer including the terminating null character.<br />
If the buffer specified by pBuffer parameter is not large enough to hold the data, the function returns<br />
the value EAPI_STATUS_MORE_DATA and stores the required buffer size, in bytes, into the variable<br />
pointed to by pBufLen.<br />
If pBuffer is NULL, and pBufLen is non-NULL, the function returns EAPI_STATUS_MORE_DATA,<br />
and stores the size of the data, in bytes, in the variable pointed to by pBufLen. This lets an<br />
application determine the best way to allocate a buffer for the value's data.<br />
Find more details refer to the platform specific header files. The Platform ID is defined by the<br />
specification and is “COMExpress” for COM Express.<br />
PICMG® EAPI R1.0, August 8, 2010 page 21 of 83