System.GPIO.Monad

GPIO types

data Pin

pinNumber

data PinInputMode

data PinOutputMode

data PinCapabilities

data PinDirection

data PinActiveLevel

data PinValue

data PinInterruptMode

MonadGpio class

class MonadGpio h m

withPin

Safer types

data InputPin h

withInputPin

readInputPin

getInputPinInputMode

getInputPinActiveLevel

setInputPinActiveLevel

toggleInputPinActiveLevel

data InterruptPin h

withInterruptPin

readInterruptPin

pollInterruptPin

pollInterruptPinTimeout

getInterruptPinInputMode

getInterruptPinInterruptMode

setInterruptPinInterruptMode

getInterruptPinActiveLevel

setInterruptPinActiveLevel

toggleInterruptPinActiveLevel

data OutputPin h

withOutputPin

writeOutputPin

toggleOutputPin

readOutputPin

getOutputPinOutputMode

getOutputPinActiveLevel

setOutputPinActiveLevel

toggleOutputPinActiveLevel

The GPIO exception hierarchy

data SomeGpioException

gpioExceptionToException

gpioExceptionFromException