Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
DynamicPinList Class Reference

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...
 

Detailed Description

Definition at line 24 of file DynamicPinList.h.

Constructor & Destructor Documentation

Create an empty pin list.

DynamicPinList ( const PinList pin_list)

Create a pin list with the given contents.

Parameters
pin_listList of pins to create this list from
DynamicPinList ( const DynamicPinList other)

Create a copy of another list.

Parameters
otherOther object to copy contruct this from

Member Function Documentation

void add ( PinName  pin)

Add a pin to the pin list.

Parameters
pinPin to add to this pin list
void clear ( )

Empty this pin list.

uint32_t count ( ) const

Return the number of pins in this list.

Returns
Elements in this list
PinName get ( uint32_t  index) const

Get the pin at the given index.

Returns
Pin at this position
bool has_pin ( PinName  pin) const

Check if the given pin is in this list.

Parameters
pinPin to check for in the list
Returns
true if the pin is in the list, false otherwise
int index ( PinName  pin) const

Get the location of the given pin.

Parameters
pinPin to get the index of
Returns
pin index or -1 if pin is not in the list
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.