|
blink1-lib
1.0.0
|
#include <PlayState.hpp>
Public Member Functions | |
| PlayState () noexcept=default | |
| PlayState (const bool _playing, const std::uint8_t _playStart, const std::uint8_t _playEnd, const std::uint8_t _playCount, const std::uint8_t _playPos) noexcept | |
| bool | operator== (const PlayState &other) const noexcept |
| bool | operator!= (const PlayState &other) const noexcept |
Public Attributes | |
| bool | playing {false} |
| std::uint8_t | playStart {0} |
| std::uint8_t | playEnd {0} |
| std::uint8_t | playCount {0} |
| std::uint8_t | playPos {0} |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const PlayState &playState) |
The state of the blink1 devive playing patterns
|
defaultnoexcept |
Default constructor
Initializes all values to 0
|
noexcept |
| _playing | Whether a pattern is currently playing |
| _playStart | The index in the pattern where the play/loop started |
| _playEnd | The index in the pattern where the play/loop will end |
| _playCount | The number of repetitions left in the loop |
| _playPos | The current index in the pattern |
|
noexcept |
Inequality operator
| other | Object to compare to |
|
noexcept |
Equality operator
| other | Object to compare to |
|
friend |
Output operator
| os | Output stream |
| playState | PlayState to output |
| std::uint8_t blink1_lib::PlayState::playCount {0} |
Number of repetitions left in a loop
| std::uint8_t blink1_lib::PlayState::playEnd {0} |
The index in the pattern where the play/loop will end
| bool blink1_lib::PlayState::playing {false} |
Whether a pattern is currently playing
| std::uint8_t blink1_lib::PlayState::playPos {0} |
The current index in the pattern
| std::uint8_t blink1_lib::PlayState::playStart {0} |
The index in the pattern where the play/loop started