Wafer.Guards (wafer v0.1.6)
Handy guards which you can use in your code to assert correct values.
Link to this section 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
Link to this section 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