#include <Banks/Bank.hpp>
Public Member Functions | |
OutputBank (uint8_t tracksPerBank=1, setting_t initialSelection=0, int8_t selectionOffset=0) | |
Create a new OutputBank object. More... | |
void | select (setting_t setting) |
Select the given bank setting. More... | |
setting_t | getSelection () const |
Get the current bank setting (zero-based). More... | |
int8_t | getSelectionOffset () const |
Get the offset of the bank setting. More... | |
uint8_t | getTracksPerBank () const |
Get the number of tracks per bank. More... | |
int8_t | getOffsetOfSetting (setting_t s) const |
The same as getOffset, but for a given setting. More... | |
int8_t | getOffset () const |
Get the address offset (number of banks times the index of the selected bank after applying the offset) More... | |
Private Attributes | |
uint8_t | tracksPerBank |
setting_t | bankSetting |
int8_t | selectionOffset |
|
inline |
Create a new OutputBank object.
tracksPerBank | The number of addresses/tracks to skip for each bank setting. Must be strictly positive. |
initialSelection | The initial bank setting. |
selectionOffset | The offset added to the bank setting before computing the actual address offset. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |