#include <Banks/Bank.hpp>
Inheritance diagram for OutputBank:
Collaboration diagram for OutputBank:Public Member Functions | |
| OutputBank (uint8_t tracksPerBank=1, setting_t initialSelection=0, int8_t selectionOffset=0) | |
| Create a new OutputBank object. | |
| void | select (setting_t setting) |
| Select the given bank setting. | |
| setting_t | getSelection () const |
| Get the current bank setting (zero-based). | |
| int8_t | getSelectionOffset () const |
| Get the offset of the bank setting. | |
| uint8_t | getTracksPerBank () const |
| Get the number of tracks per bank. | |
| int8_t | getOffsetOfSetting (setting_t s) const |
| The same as getOffset, but for a given setting. | |
| int8_t | getOffset () const |
| Get the address offset (number of banks times the index of the selected bank after applying the offset) | |
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 |