|
ELEC-C7222
Libraries for ELEC C7222 Course Work
|
Board-level convenience wrapper for the C7222 Pico W board. More...
#include <c7222_pico_w_board.hpp>


Public Types | |
| enum class | LedId : uint8_t { LED1_RED = 21 , LED1_GREEN = 20 , LED2_RED = 19 , LED2_GREEN = 18 , LED3_RED = 17 , LED3_GREEN = 16 } |
| Logical LED identifiers mapped to GPIO pins. More... | |
| enum class | ButtonId : uint8_t { BUTTON_B1 = 2 , BUTTON_B2 = 3 , BUTTON_B3 = 4 , BUTTON_B4 = 5 } |
| Logical button identifiers mapped to GPIO pins. More... | |
Public Member Functions | |
| bool | IsInitialized () const |
| Return true if construction-time initialization has completed. | |
| Led & | GetLed (LedId id) |
| Retrieve a board LED by logical ID. | |
| Button & | GetButton (ButtonId id) |
| Retrieve a board button by logical ID. | |
Public Member Functions inherited from c7222::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
| NonCopyable (NonCopyable &&)=default | |
| NonCopyable & | operator= (NonCopyable &&)=default |
Public Member Functions inherited from c7222::NonMovable | |
| NonMovable (const NonMovable &)=default | |
| NonMovable & | operator= (const NonMovable &)=default |
| NonMovable (NonMovable &&)=delete | |
| NonMovable & | operator= (NonMovable &&)=delete |
Static Public Member Functions | |
| static PicoWBoard * | GetInstance () |
| Access the singleton instance (if used). | |
Static Public Attributes | |
| static constexpr size_t | kLedCount = 6 |
| Number of board LEDs exposed by this API. | |
| static constexpr size_t | kButtonCount = 4 |
| Number of board buttons exposed by this API. | |
Additional Inherited Members | |
Protected Member Functions inherited from c7222::NonCopyableNonMovable | |
| NonCopyableNonMovable ()=default | |
| ~NonCopyableNonMovable ()=default | |
Protected Member Functions inherited from c7222::NonCopyable | |
| NonCopyable ()=default | |
| ~NonCopyable ()=default | |
Protected Member Functions inherited from c7222::NonMovable | |
| NonMovable ()=default | |
| ~NonMovable ()=default | |
Board-level convenience wrapper for the C7222 Pico W board.
Construct the board to initialize IO objects, then access them by logical ID. This avoids scattering GPIO pin numbers through application code and keeps beginner code readable.
|
strong |
|
strong |
Retrieve a board button by logical ID.

|
static |
Access the singleton instance (if used).

Retrieve a board LED by logical ID.

|
inline |
Return true if construction-time initialization has completed.
|
staticconstexpr |
Number of board buttons exposed by this API.
|
staticconstexpr |
Number of board LEDs exposed by this API.