Public Member Functions | |
DynamicPinList () | |
Create an empty pin list. More... | |
DynamicPinList (const PinList *pin_list) | |
Create a pin list with the given contents. More... | |
DynamicPinList (const DynamicPinList &other) | |
Create a copy of another list. More... | |
void | add (PinName pin) |
Add a pin to the pin list. More... | |
bool | has_pin (PinName pin) const |
Check if the given pin is in this list. More... | |
void | clear () |
Empty this pin list. More... | |
uint32_t | count () const |
Return the number of pins in this list. More... | |
PinName | get (uint32_t index) const |
Get the pin at the given index. More... | |
int | index (PinName pin) const |
Get the location of the given pin. More... | |
Definition at line 24 of file DynamicPinList.h.
DynamicPinList | ( | ) |
Create an empty pin list.
DynamicPinList | ( | const PinList * | pin_list | ) |
Create a pin list with the given contents.
pin_list | List of pins to create this list from |
DynamicPinList | ( | const DynamicPinList & | other | ) |
Create a copy of another list.
other | Other object to copy contruct this from |
void add | ( | PinName | pin | ) |
Add a pin to the pin list.
pin | Pin to add to this pin list |
void clear | ( | ) |
Empty this pin list.
uint32_t count | ( | ) | const |
Return the number of pins in this list.
PinName get | ( | uint32_t | index | ) | const |
Get the pin at the given index.
bool has_pin | ( | PinName | pin | ) | const |
Check if the given pin is in this list.
pin | Pin to check for in the list |
int index | ( | PinName | pin | ) | const |
Get the location of the given pin.
pin | Pin to get the index of |