Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableIRQ ¶
func IRQEnabled ¶
Types ¶
type Chan ¶
type Chan int8
Chan represents GPIOTE channel. There are 4 channels (8 in nRF52) numbered from 0 to 3 (7 in nRF52).
type Config ¶
type Config uint32
const ( ModeDiscon Config = 0 // Disconnect pin from GPIOTE module. ModeEvent Config = 1 // Pin generates IN event. ModeTask Config = 3 // Pin controlled by OUT, SET, CLR task. PolarityNone Config = 0 << 16 // No task on pin, no event from pin. PolarityLoToHi Config = 1 << 16 // OUT sets pin, IN when rising edge. PolarityHiToLo Config = 2 << 16 // OUT clears pin, IN when falling edge. PolarityToggle Config = 3 << 16 // OUT toggles pin, IN when any change. OutInitLow Config = 0 // Low initial output value. OutInitHigh Config = 1 << 20 // High initial output value. )
Click to show internal directories.
Click to hide internal directories.