13 m1966_gpio_signal_direction, 14 m1966_gpio_intr_polarity, M1966_gpio_signal_direction – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual
Page 60: M1966_gpio_intr_polarity

73M1866B/73M1966B FXOAPI User Guide
UG_1x66B_046
60
Rev. 2.1
4.13 M1966_GPIO_SIGNAL_DIRECTION
Description
GPIO pin signal direction. This control bit is used to designate the GPIO pin as either input or output.
Prototype
typedef enum {
M1966_GPIO_DIR_INPUT = 0, /* GPIO pin signal direction – INPUT */
M1966_GPIO_DIR_OUTPUT = 1 /* GPIO pin signal direction - OUTPUT */
}
M1966_GPIO_SIGNAL_DIRECTION;
Parameters
Name
Value
Description
M1966_GPIO_DIR_INPUT
0
GPIO pin signal direction – INPUT
M1966_GPIO_DIR_OUTPUT
1
GPIO pin signal direction - OUTPUT
4.14 M1966_GPIO_INTR_POLARITY
Description
GPIO Interrupt signal transition edge selection. The defines the interrupt source as being either on a
rising or a falling edge of the corresponding GPIO pin. If configured as M1966_GPIO_POL_RISING a
rising edge will trigger an interrupt from the corresponding GPIO pin. If configured as
M1966_GPIO_POL_FALLING
a falling edge will trigger an interrupt from the corresponding GPIO pin.
Prototype
typedef enum {
M1966_GPIO_POL_RISING = 0, /* Sig transition edge polarity - RISING */
M1966_GPIO_POL_FALLING = 1 /* Sig transition edge polarity - FALLING */
}
M1966_GPIO_INTR_POLARITY;
Parameters
Name
Value
Description
M1966_GPIO_POL_RISING
0
Interrupt edge selection - RISING
M1966_GPIO_POL_FALLING
1
Interrupt edge selection - FALLING