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.
9.6 EApiGPIOSetLevel<br />
9.6.1 Description<br />
Write to GPIO ports. Depending on the hardware implementation writing multiple GPIO ports with the<br />
bit mask option does not guarantee a time synchronous change of the output levels.<br />
9.6.2 Parameters<br />
Id<br />
uint32_t<br />
EAPI_CALLTYPE<br />
EApiGPIOSetLevel(<br />
__IN uint32_t Id , /* GPIO Id */<br />
__IN uint32_t Bitmask , /* Bit mask of Affected<br />
* Bits<br />
*/<br />
__IN uint32_t Level /* Level */<br />
);<br />
FUNC_DEF 25: EApiGPIOSetLevel<br />
__IN See '9.1.1 GPIO Ids' on page 47<br />
Bitmask<br />
__IN Value for a bit mask. Only selected bits are changed. Unselected bits remain unchanged.<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 examples 'Single port addressing' and 'Bank addressing' on page 47.<br />
Level<br />
__IN Input level of the selected GPIO port. Output for single ports is on a bit level.<br />
Value<br />
EAPI_GPIO_LOW<br />
EAPI_GPIO_HIGH<br />
Description<br />
Set selected GPIO port to low.<br />
Set selected GPIO port to high.<br />
9.6.3 Return Status Codes<br />
Condition<br />
Return Value<br />
Library Uninitialized<br />
EAPI_STATUS_NOT_INITIALIZED<br />
Bitmask==0<br />
EAPI_STATUS_INVALID_PARAMETER<br />
Unsupported ID<br />
EAPI_STATUS_UNSUPPORTED<br />
(Bitmask&~(pInputs|pOutputs))<br />
EAPI_STATUS_INVALID_BITMASK<br />
... see 2.3 Status Codes on page 16<br />
Success<br />
EAPI_STATUS_SUCCESS<br />
PICMG® EAPI R1.0, August 8, 2010 page 53 of 83