## CMSIS GPIO Driver Function Documentation

### GPIO_GetVersion

ARM_DRIVER_VERSION GPIO_GetVersion()

Get driver version.

Location: Driver_GPIO.c:21

Return

ARM_DRIVER_VERSION

### GPIO_Initialize

int32_t GPIO_Initialize(GPIO_SignalEvent_t cb)

Initialize the GPIO driver.

Location: Driver_GPIO.c:22

Parameters

Direction | Name | Description
--- | --- | ---
in | cb | Pointer to GPIO_SignalEvent

Return

execution_status

### GPIO_Configure

int32_t GPIO_Configure(const GPIO_CFG_t * cfg)

Configure common GPIO settings.

Location: Driver_GPIO.c:23

Parameters

Direction | Name | Description
--- | --- | ---
in | cfg | Pointer to GPIO_CFG_t

Return

execution_status

### GPIO_ConfigurePad

int32_t GPIO_ConfigurePad(GPIO_SEL_t sel, const GPIO_PAD_CFG_t * cfg)

Configure the GPIO pad.

Location: Driver_GPIO.c:24

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | Pad selection GPIO_SEL_t
in | cfg | Pointer to GPIO_PAD_CFG_t

Return

execution_status

### GPIO_ConfigureInterrupt

int32_t GPIO_ConfigureInterrupt(GPIO_INT_SEL_t sel, const GPIO_INT_CFG_t * cfg)

Configure the GPIO interrupt.

Location: Driver_GPIO.c:25

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | Interrupt selection GPIO_INT_SEL_t
in | cfg | Pointer to GPIO_INT_CFG_t

Return

execution_status

### GPIO_SetInterruptPriority

int32_t GPIO_SetInterruptPriority(GPIO_INT_SEL_t sel, const GPIO_PRI_CFG_t * cfg)

Configure GPIO interrupt priority.

Location: Driver_GPIO.c:26

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | Interrupt selection GPIO_INT_SEL_t
in | cfg | Pointer to GPIO_PRI_CFG_t

Return

execution_status

### GPIO_ConfigureJTAG

int32_t GPIO_ConfigureJTAG(const GPIO_JTAG_SW_CFG_t * cfg)

Configure the GPIO JTAG mode.

Location: Driver_GPIO.c:27

Parameters

Direction | Name | Description
--- | --- | ---
in | cfg | Pointer to GPIO_JTAG_SW_CFG_t

Return

execution_status

### GPIO_SetHigh

void GPIO_SetHigh(GPIO_SEL_t sel)

Set particular GPIO pad.

Location: Driver_GPIO.c:29

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | Pad selection GPIO_SEL_t

Return

None

### GPIO_ToggleValue

void GPIO_ToggleValue(GPIO_SEL_t sel)

Toggle particular GPIO pad.

Location: Driver_GPIO.c:30

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | Pad selection GPIO_SEL_t

Return

None

### GPIO_SetLow

void GPIO_SetLow(GPIO_SEL_t sel)

Reset particular GPIO pad.

Location: Driver_GPIO.c:31

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | Pad selection GPIO_SEL_t

Return

None

### GPIO_ReadValue

uint32_t GPIO_ReadValue(GPIO_SEL_t sel)

Returns the selected GPIO pad value.

Location: Driver_GPIO.c:32

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | Pad selection GPIO_SEL_t

Return

GPIO pad value

### GPIO_ResetAltFuncRegister

int32_t GPIO_ResetAltFuncRegister(GPIO_FUNC_REGISTERS_t reg)

Reset the particular alternative function register.

Location: Driver_GPIO.c:33

Parameters

Direction | Name | Description
--- | --- | ---
in | reg | Register selection GPIO_FUNC_REGISTERS_t

Return

execution_status

### GPIO_SignalEvent

void GPIO_SignalEvent(uint32_t event)

Signal GPIO events.

Location: Driver_GPIO.c:35

Parameters

Direction | Name | Description
--- | --- | ---
in | event | notification mask

Return

None