Bare Metal Programming Tool Kit
|
one out_pin that represents any number of pin_out's More...
#include <pins.h>
Additional Inherited Members | |
Public Types inherited from bmptk::hardware::pin_out | |
enum | { type = type_pin_out } |
identify this type as a type_pin_out | |
enum | { features = has_none } |
this type has no additional fatures | |
Static Public Member Functions inherited from bmptk::hardware::pin_out | |
static void | init () |
initialize the pin as output | |
static void | set (bool x) |
set the current level on the pin | |
one out_pin that represents any number of pin_out's
This class template is used to construct a single out_pin class from any number of specified downstream out_pin classes, or from all pins in an out_port. Calling init() or set() on the tee class causes the corresponding method to be called for all downstream out_pin classes (or for the underlying out_port). Hence the effect is that one out_pin can represent a bunch of out_pin's, as if they were fitted together using tee fittings.
A tee with zero parameters is a kind of dummy point: you can cann init() and set() on it, but to no effect at all.
The typename template arguments must be classes that are descendants of pin_out, or a single class that is a decendant of port_out.
Example (examples/db103/wiggle/main.cpp):