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.
9.3.1 Description<br />
Reads the current configuration of the selected GPIO ports.<br />
9.3.2 Parameters<br />
Id<br />
uint32_t<br />
EAPI_CALLTYPE<br />
EApiGPIOGetDirection(<br />
__IN uint32_t Id , /* GPIO Id */<br />
__IN uint32_t Bitmask , /* Bit mask of Affected<br />
* Bits<br />
*/<br />
__OUT uint32_t *pDirection /* Current Direction */<br />
);<br />
FUNC_DEF 22: EApiGPIOGetDirection<br />
__IN See '9.1.1 GPIO Ids' on page 47<br />
Bitmask<br />
__IN Bit mask.<br />
Value<br />
EAPI_GPIO_BITMASK_NOSELECT<br />
EAPI_GPIO_BITMASK_SELECT<br />
Description<br />
Do not use the selected GPIO port for this operation.<br />
Use the selected GPIO port for this operation.<br />
See also 'Bitmask' on page 52.<br />
pDirection<br />
__OUT Pointer to a buffer that receives the direction of the selected GPIO ports.<br />
Value<br />
EAPI_GPIO_INPUT<br />
EAPI_GPIO_OUTPUT<br />
Description<br />
Selected GPIO port is an input.<br />
Selected GPIO port is an output.<br />
9.3.3 Return Status Codes<br />
Condition<br />
Library Uninitialized<br />
Bitmask==0<br />
Unsupported ID<br />
(Bitmask&~(pInputs|pOutputs))<br />
Success<br />
Return Value<br />
EAPI_STATUS_NOT_INITIALIZED<br />
EAPI_STATUS_INVALID_PARAMETER<br />
EAPI_STATUS_UNSUPPORTED<br />
EAPI_STATUS_INVALID_BITMASK<br />
EAPI_STATUS_SUCCESS<br />
See also '2.3 Status Codes' on page 16.<br />
PICMG® EAPI R1.0, August 8, 2010 page 50 of 83