GPIO Pin Vector Class PinVector is a template instantiation of the _PinVector class, allowing for minimal storage requirements for potentially large vectors, without heavy code duplication due to template copies. More...
#include <cpu_pins.h>
Inherits _PinVector.
Public Member Functions | |
PinVector () | |
Bare constructor for a PinVector, where the bit configurations will be made later. | |
PinVector (PinIO *initpins, uint32_t pinCount) | |
PinVector Constructor, where pin configurations will be made at the time of construction. More... | |
uint32_t | operator= (uint32_t val) |
Assign a value to the PinVector Bus. More... | |
![]() | |
uint32_t | operator= (uint32_t val) |
Assign a value to the _PinVector Bus. More... | |
PinIO | operator[] (int idx) |
Access the PinIO for a specific bit position in the _PinVector. More... | |
void | config (uint32_t idx, PinIO cfg) |
Set the PinIO that will be used for a given bit position in the _PinVector. More... | |
void | config (PinIO *pinCfgs, uint32_t count) |
Configure the _PinVector based on an array of PinIOs. The index of the PinIO in the configuration array will determine the bit position within the _PinVector that that PinIO represents. More... | |
operator uint32_t () const | |
Read the line state of the _PinVector bus. More... | |
GPIO Pin Vector Class PinVector is a template instantiation of the _PinVector class, allowing for minimal storage requirements for potentially large vectors, without heavy code duplication due to template copies.
|
inline |
Assign a value to the PinVector Bus.
val | The value to assign to the bus. |