WINC3400 Peripherals Application Interface. More...
Go to the source code of this file.
Classes | |
struct | tstrI2cMasterInitParam |
I2C master configuration parameters. More... | |
struct | tstrPerphInitParam |
Peripheral module initialization parameters. More... | |
Functions | |
NMI_API sint8 | m2m_periph_gpio_get_val (uint8 u8GpioNum, uint8 *pu8GpioVal) |
Read an NMC1500 GPIO input level. More... | |
NMI_API sint8 | m2m_periph_gpio_set_dir (uint8 u8GpioNum, uint8 u8GpioDir) |
Configure a specific NMC1500 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 NMC1500 GPIO output level high or low. More... | |
NMI_API sint8 | m2m_periph_init (tstrPerphInitParam *param) |
Initialize the NMC1500 peripheral driver module. More... | |
NMI_API sint8 | m2m_periph_pullup_ctrl (uint32 pinmask, uint8 enable) |
Control the programmable pull-up resistor on the chip pads . More... | |
WINC3400 Peripherals Application Interface.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
Definition in file m2m_periph.h.
enum tenuGpioNum |
A list of GPIO numbers configurable through the m2m_periph module.
Enumerator | |
---|---|
M2M_PERIPH_GPIO15 | GPIO15 pad |
M2M_PERIPH_GPIO16 | GPIO16 pad |
M2M_PERIPH_GPIO18 | GPIO18 pad |
M2M_PERIPH_GPIO_MAX |
Definition at line 74 of file m2m_periph.h.
enum tenuI2cMasterFlags |
Bitwise-ORed flags for use in m2m_periph_i2c_master_write and m2m_periph_i2c_master_read.
Definition at line 141 of file m2m_periph.h.
Allowed pin multiplexing options for I2C master SCL signal.
Definition at line 89 of file m2m_periph.h.
Allowed pin multiplexing options for I2C master SDA signal.
Definition at line 105 of file m2m_periph.h.
Definition at line 160 of file m2m_periph.h.
Definition at line 175 of file m2m_periph.h.
Read an NMC1500 GPIO input level.
[in] | u8GpioNum | GPIO number. Allowed values are defined in tenuGpioNum. |
[out] | pu8GpioVal | GPIO input value. Zero = low, non-zero = high. |
Configure a specific NMC1500 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. |
Set an NMC1500 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. |
NMI_API sint8 m2m_periph_init | ( | tstrPerphInitParam * | param | ) |
Initialize the NMC1500 peripheral driver module.
[in] | param | Peripheral module initialization structure. See members of tstrPerphInitParam. |
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. |