This repository has been archived by the owner on Jun 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 223
CPU GPIO APIs
Steve Maillet edited this page Feb 27, 2016
·
1 revision
BOOL CPU_GPIO_Initialize();
BOOL CPU_GPIO_Uninitialize();
UINT32 CPU_GPIO_Attributes( GPIO_PIN Pin );
void CPU_GPIO_DisablePin( GPIO_PIN Pin, GPIO_RESISTOR ResistorState, UINT32 Direction, GPIO_ALT_MODE AltFunction );
void CPU_GPIO_EnableOutputPin( GPIO_PIN Pin, BOOL InitialState );
BOOL CPU_GPIO_EnableInputPin ( GPIO_PIN Pin, BOOL GlitchFilterEnable, GPIO_INTERRUPT_SERVICE_ROUTINE PIN_ISR, GPIO_INT_EDGE IntEdge, GPIO_RESISTOR ResistorState );
BOOL CPU_GPIO_EnableInputPin2( GPIO_PIN Pin, BOOL GlitchFilterEnable, GPIO_INTERRUPT_SERVICE_ROUTINE PIN_ISR, void* ISR_Param, GPIO_INT_EDGE IntEdge, GPIO_RESISTOR ResistorState );
BOOL CPU_GPIO_GetPinState( GPIO_PIN Pin );
void CPU_GPIO_SetPinState( GPIO_PIN Pin, BOOL PinState );
BOOL CPU_GPIO_PinIsBusy( GPIO_PIN Pin );
BOOL CPU_GPIO_ReservePin( GPIO_PIN Pin, BOOL fReserve );
UINT32 CPU_GPIO_GetDebounce();
BOOL CPU_GPIO_SetDebounce( INT64 debounceTimeMilliseconds );
INT32 CPU_GPIO_GetPinCount();
void CPU_GPIO_GetPinsMap( UINT8* pins, size_t size );
UINT8 CPU_GPIO_GetSupportedResistorModes(GPIO_PIN pin );
UINT8 CPU_GPIO_GetSupportedInterruptModes(GPIO_PIN pin );
UINT32 CPU_GPIO_GetPinDebounce( GPIO_PIN Pin );
BOOL CPU_GPIO_SetPinDebounce( GPIO_PIN Pin, INT64 debounceTimeMilliseconds );
Declared in: CPU_GPIO_decl.h