WINC Peripherals Application Interface.
Copyright (c) 2016-2021 Microchip Technology Inc. and its subsidiaries.
Functions | |
NMI_API sint8 | m2m_periph_gpio_get_val (uint8 u8GpioNum, uint8 *pu8GpioVal) |
Read an WINC15x0 GPIO input level. More... | |
NMI_API sint8 | m2m_periph_gpio_set_dir (uint8 u8GpioNum, uint8 u8GpioDir) |
Configure a specific WINC15x0 pad as a GPIO and sets its direction (input or output). More... | |
NMI_API sint8 | m2m_periph_gpio_set_val (uint8 u8GpioNum, uint8 u8GpioVal) |
Set an WINC15x0 GPIO output level high or low. More... | |
NMI_API sint8 | m2m_periph_pullup_ctrl (uint32 pinmask, uint8 enable) |
Control the programmable pull-up resistor on the chip pads . More... | |
enum tenuGpioNum |
enum tenuPullupMask |
Bitwise-ORed flags for use in m2m_periph_pullup_ctrl.
Read an WINC15x0 GPIO input level.
[in] | u8GpioNum | GPIO number. Allowed values are defined in tenuGpioNum. |
[out] | pu8GpioVal | GPIO input value. Zero = low, non-zero = high. |
References gpio_ioctl(), and GPIO_OP_GET.
Configure a specific WINC15x0 pad as a GPIO and sets its direction (input or output).
[in] | u8GpioNum | GPIO number. Allowed values are defined in tenuGpioNum. |
[in] | u8GpioDir | GPIO direction: Zero = input. Non-zero = output. |
References gpio_ioctl(), GPIO_OP_DIR, and NULL.
Set an WINC15x0 GPIO output level high or low.
[in] | u8GpioNum | GPIO number. Allowed values are defined in tenuGpioNum. |
[in] | u8GpioVal | GPIO output value. Zero = low, non-zero = high. |
References gpio_ioctl(), GPIO_OP_SET, and NULL.
Control the programmable pull-up resistor on the chip pads .
[in] | pinmask | Write operation bitwise-ORed mask for which pads to control. Allowed values are defined in tenuPullupMask. |
[in] | enable | Set to 0 to disable pull-up resistor. Non-zero will enable the pull-up. |
References pullup_ctrl().
Referenced by disable_pullups().