Class GPIOWiced

Inheritance Relationships

Base Type

  • public GPIO

Class Documentation

class GPIOWiced : public virtual GPIO

Public Functions

GPIOWiced()

GPIO WICED default constructor.

GPIOWiced(wiced_gpio_t pin, wiced_gpio_config_t config, VLogic_t logic)

GPIO WICED default constructor.

~GPIOWiced()

GPIO WICED destructor.

inline Error_t init()

Initializes the WICED GPIO.

Return values:
  • OK – if success

  • INTF_ERROR – if initialization error

Returns:

GPIO error code

inline Error_t deinit()

Initializes the WICED GPIO.

Return values:
  • OK – if success

  • INTF_ERROR – if deinitialization error

Returns:

GPIO error code

inline VLevel_t read()

Reads the WICED GPIO voltage level.

Return values:
  • GPIO_LOW – if voltage low

  • GPIO_HIGH – if voltage high

Returns:

GPIO voltage level

inline Error_t write(VLevel_t level)

Writes the WICED GPIO output voltage level.

Parameters:

level[in] Voltage level

Return values:
  • OK – if success

  • INTF_ERROR – if error

Returns:

GPIO error code

inline Error_t enable()

Enables the WICED output according to the GPIO logic.

  • Low if negative

  • High if positive

Return values:
  • OK – if success

  • INTF_ERROR – if error

Returns:

GPIO interrupt event

inline Error_t disable()

Disables the WICED output according to the GPIO logic.

  • Low if positive

  • High if negative

Return values:
  • OK – if success

  • INTF_ERROR – if error

Returns:

GPIO error code