Functions | |
__STATIC_INLINE uint32_t | Cy_GPIO_GetInterruptStatus (const GPIO_PRT_Type *base, uint32_t pinNum) |
Returns the current unmasked interrupt state of the pin. More... | |
__STATIC_INLINE void | Cy_GPIO_ClearInterrupt (GPIO_PRT_Type *base, uint32_t pinNum) |
Clears the triggered pin interrupt. More... | |
__STATIC_INLINE void | Cy_GPIO_SetInterruptEdge (GPIO_PRT_Type *base, uint32_t pinNum, uint32_t value) |
Configures the type of edge that will trigger a pin interrupt. More... | |
__STATIC_INLINE uint32_t | Cy_GPIO_GetInterruptEdge (const GPIO_PRT_Type *base, uint32_t pinNum) |
Returns the current pin interrupt edge type. More... | |
__STATIC_INLINE void | Cy_GPIO_SetFilter (GPIO_PRT_Type *base, uint32_t value) |
Configures which pin on the port connects to the port-specific glitch filter. More... | |
__STATIC_INLINE uint32_t | Cy_GPIO_GetFilter (const GPIO_PRT_Type *base) |
Returns which pin is currently configured to connect to the port-specific glitch filter. More... | |
__STATIC_INLINE uint32_t | Cy_GPIO_GetInterruptCause (void) |
Returns the interrupt status for ports 0 to 31. More... | |
__STATIC_INLINE void | Cy_GPIO_AmuxPumpEnable (void) |
Enables the AMUXBUS charge pump. More... | |
__STATIC_INLINE void | Cy_GPIO_AmuxPumpDisable (void) |
Disables the AMUXBUS charge pump. | |
__STATIC_INLINE bool | Cy_GPIO_AmuxPumpIsEnabled (void) |
Gets the AMUXBUS charge pump enable state. More... | |
__STATIC_INLINE uint32_t Cy_GPIO_GetInterruptStatus | ( | const GPIO_PRT_Type * | base, |
uint32_t | pinNum | ||
) |
Returns the current unmasked interrupt state of the pin.
The core processor's NVIC is triggered by the masked interrupt bits. This function allows reading the unmasked interrupt state. Whether the bit positions actually trigger the interrupt are defined by the interrupt mask bits.
base | Pointer to the pin's port register base address |
pinNum | Position of the pin bit-field within the port register Bit position 8 is the routed pin through the port glitch filter. |
__STATIC_INLINE void Cy_GPIO_ClearInterrupt | ( | GPIO_PRT_Type * | base, |
uint32_t | pinNum | ||
) |
Clears the triggered pin interrupt.
base | Pointer to the pin's port register base address |
pinNum | Position of the pin bit-field within the port register Bit position 8 is the routed pin through the port glitch filter. |
__STATIC_INLINE void Cy_GPIO_SetInterruptEdge | ( | GPIO_PRT_Type * | base, |
uint32_t | pinNum, | ||
uint32_t | value | ||
) |
Configures the type of edge that will trigger a pin interrupt.
base | Pointer to the pin's port register base address |
pinNum | Position of the pin bit-field within the port register. Bit position 8 is the routed pin through the port glitch filter. |
value | Pin interrupt mode. Options are detailed in Interrupt trigger type macros |
__STATIC_INLINE uint32_t Cy_GPIO_GetInterruptEdge | ( | const GPIO_PRT_Type * | base, |
uint32_t | pinNum | ||
) |
Returns the current pin interrupt edge type.
base | Pointer to the pin's port register base address |
pinNum | Position of the pin bit-field within the port register. Bit position 8 is the routed pin through the port glitch filter. |
__STATIC_INLINE void Cy_GPIO_SetFilter | ( | GPIO_PRT_Type * | base, |
uint32_t | value | ||
) |
Configures which pin on the port connects to the port-specific glitch filter.
Each port contains a single 50ns glitch filter. Any of the pins on the port can be routed to this filter such that the input signal is filtered before reaching the edge-detect interrupt circuitry. The state of the filtered pin can also be read by calling the Cy_GPIO_Read() function.
base | Pointer to the pin's port register base address |
value | The number of the port pin to route to the port filter (0...7) |
__STATIC_INLINE uint32_t Cy_GPIO_GetFilter | ( | const GPIO_PRT_Type * | base | ) |
Returns which pin is currently configured to connect to the port-specific glitch filter.
Each port contains a single 50ns glitch filter. Any of the pins on the port can be routed to this filter such that the input signal is filtered before reaching the edge-detect interrupt circuitry. The state of the filtered pin can also be read by calling the Cy_GPIO_Read() function.
base | Pointer to the pin's port register base address |
__STATIC_INLINE uint32_t Cy_GPIO_GetInterruptCause | ( | void | ) |
Returns the interrupt status for ports 0 to 31.
__STATIC_INLINE void Cy_GPIO_AmuxPumpEnable | ( | void | ) |
Enables the AMUXBUS charge pump.
The pump clock source shall be configured with Cy_SysClk_ClkPumpSetSource() before enabling the pump.
__STATIC_INLINE bool Cy_GPIO_AmuxPumpIsEnabled | ( | void | ) |
Gets the AMUXBUS charge pump enable state.