WIZlib Library API  ver 1.0
WIZlib Library API User Menual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions

Platform independent GPIO driver. More...

Collaboration diagram for GPIO Driver:

Enumerations

enum  wizpf_gpio_mode {
  WIZ_GPIO_IN_FLOAT, WIZ_GPIO_IN_PULLUP, WIZ_GPIO_IN_PULLDOWN, WIZ_GPIO_OUT_PUSHPULL,
  WIZ_GPIO_OUT_OPENDRAIN
}
 Indicate the GPIO mode. More...
 

Functions

int8 wizpf_gpio_init (GPIO_TypeDef *GPIOx, uint16 GPIO_Pin, wizpf_gpio_mode mode)
 GPIO configuration. More...
 
int8 wizpf_gpio_set (GPIO_TypeDef *GPIOx, uint16 GPIO_Pin, int8 value)
 GPIO Set. More...
 
int8 wizpf_gpio_get (GPIO_TypeDef *GPIOx, uint16 GPIO_Pin)
 GPIO Get. More...
 

Detailed Description

Platform independent GPIO driver.

Enumeration Type Documentation

Indicate the GPIO mode.

Enumerator
WIZ_GPIO_IN_FLOAT 

Indicate Floating Input.

WIZ_GPIO_IN_PULLUP 

Indicate Pulled up Input.

WIZ_GPIO_IN_PULLDOWN 

Indicate Pulled down Input.

WIZ_GPIO_OUT_PUSHPULL 

Indicate Push-Pull Output.

WIZ_GPIO_OUT_OPENDRAIN 

Indicate Open-Drain Output.

Definition at line 43 of file wizplatform.h.

Function Documentation

int8 wizpf_gpio_get ( GPIO_TypeDef *  GPIOx,
uint16  GPIO_Pin 
)

GPIO Get.

Warning
Not implemented yet
Parameters
GPIOxGPIO The GPIO struct to get (Ref. platform specific header file)
GPIO_PinThe Pin number to get (Ref. platform specific header file)
Returns
VAL_HIGH: Current GPIO value is 'High'
VAL_LOW: Current GPIO value is 'Low'
RET_NOK: Error

Definition at line 178 of file WIZ_W5200/wizplatform.c.

int8 wizpf_gpio_init ( GPIO_TypeDef *  GPIOx,
uint16  GPIO_Pin,
wizpf_gpio_mode  mode 
)

GPIO configuration.

Parameters
GPIOxGPIO The GPIO struct to configure (Ref. platform specific header file)
GPIO_PinThe Pin number to configure (Ref. platform specific header file)
modeThe mode to configure (wizpf_gpio_mode)
Returns
RET_OK: Success
RET_NOK: Error

Definition at line 141 of file WIZ_W5200/wizplatform.c.

int8 wizpf_gpio_set ( GPIO_TypeDef *  GPIOx,
uint16  GPIO_Pin,
int8  value 
)

GPIO Set.

Warning
Not implemented yet
Parameters
GPIOxGPIO The GPIO struct to set (Ref. platform specific header file)
GPIO_PinThe Pin number to set (Ref. platform specific header file)
valueThe value to set
Returns
RET_OK: Success
RET_NOK: Error

Definition at line 173 of file WIZ_W5200/wizplatform.c.