This function parses a tring of the form “10 ms” or “115.2 kHz” returning the clock period as
a Duration
.
This function parses the main string argument to opentitantool gpio dac-bang
, producing a
list of DacBangEntry
corresponding to the parsed instructions. The slices in the entries
will refer to the “accumulator vector” provided by the caller, which this function will clear
out and resize according to need.
This function parses the main string argument to opentitantool gpio bit-bang
, producing a
list of BitbangEntry
corresponding to the parsed instructions. The slices in the entries
will refer to one of the two “accumulator vectors” provided by the caller, which this function
will clear out and resize according to need.