View Source Wafer.Guards (wafer v1.1.0)
Handy guards which you can use in your code to assert correct values.
Summary
Functions
Byte sizes are non negative integers
An integer between 0
and 0x7F
One of :none
, :rising
, :falling
or :both
Either :in
or :out
Pin numbers are non negative integers
One of :not_set
, :none
, :pull_up
or :pull_down
Either 0
or 1
Register addresses are non negative integers usually only one byte, but we don't enforce that here
Functions
Byte sizes are non negative integers
An integer between 0
and 0x7F
One of :none
, :rising
, :falling
or :both
Either :in
or :out
Pin numbers are non negative integers
One of :not_set
, :none
, :pull_up
or :pull_down
Either 0
or 1
Register addresses are non negative integers usually only one byte, but we don't enforce that here