Documentation ¶
Overview ¶
Package exti provides an interface to the External Interrupt/event controller.
All functions in this package except Connect support concurrent access to different EXTI lines.
Index ¶
- type Lines
- func (li Lines) ClearPending()
- func (li Lines) Connect(port *gpio.Port)
- func (li Lines) DisableEvent()
- func (li Lines) DisableFallTrig()
- func (li Lines) DisableIRQ()
- func (li Lines) DisableRiseTrig()
- func (li Lines) EnableEvent()
- func (li Lines) EnableFallTrig()
- func (li Lines) EnableIRQ()
- func (li Lines) EnableRiseTrig()
- func (li Lines) Trigger()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lines ¶
type Lines lines
Lines is bitmask that represents EXTI input lines.
func EventEnabled ¶
func EventEnabled() Lines
EventEnabled returns lines that have event generation enabled.
func FallTrigEnabled ¶
func FallTrigEnabled() Lines
FallTrigEnabled returns lines that have falling edge detection enabled.
func IRQEnabled ¶
func IRQEnabled() Lines
IRQEnabled returns lines that have IRQ generation enabled.
func RiseTrigEnabled ¶
func RiseTrigEnabled() Lines
RiseTrigEnabled returns lines that have rising edge detection enabled.
func (Lines) ClearPending ¶
func (li Lines) ClearPending()
ClearPending clears pending interrupt flag for lines.
func (Lines) Connect ¶
Connect connects lines to corresponding pins of GPIO port. After reset lines 0..15 are connected to GPIO port A.
Connect enables AFIO/SYSCFG clock before configuration and disables it before return. It can not be called concurently with any other function (including itself) that enables/disables AFIO/SYSCFG.
func (Lines) DisableEvent ¶
func (li Lines) DisableEvent()
DisableEvent disable event generation by lines.
func (Lines) DisableFallTrig ¶
func (li Lines) DisableFallTrig()
DisableFallTrig disables falling edge detection for lines.
func (Lines) DisableRiseTrig ¶
func (li Lines) DisableRiseTrig()
DisableRiseTrig disables rising edge detection for lines.
func (Lines) EnableEvent ¶
func (li Lines) EnableEvent()
EnableEvent enables event generation by lines.
func (Lines) EnableFallTrig ¶
func (li Lines) EnableFallTrig()
EnableFallTrig enables falling edge detection for lines.
func (Lines) EnableRiseTrig ¶
func (li Lines) EnableRiseTrig()
EnableRiseTrig enables rising edge detection for lines.