The tcDspBankSelect class is used to change the currently selected Flash bank. More...
#include <core/DspBankSelect.h>
Public Member Functions | |
tcDspBankSelect (void *apBaseAddr) | |
This constructor is used to create an instance of tcDspBankSelect. | |
~tcDspBankSelect () | |
Default destructor. | |
bool | setBank (int anBank) |
This routine sets the flash bank as commanded. | |
int | getBank (void) |
This routine returns the last bank accessed. | |
int | computeBank (void *apAddr) |
This routine computes the bank associated with the given flash offset address. |
The tcDspBankSelect class is used to change the currently selected Flash bank.
In general, it should be created and passed to tcDspFlash for use internally. Access to Bank 0 of the device is blocked unless BOOTLOADER is defined in order to prevent accidental erase of the bootloader code (which could leave the board in an unusable state).
tcDspBankSelect::tcDspBankSelect | ( | void * | apBaseAddr | ) |
This constructor is used to create an instance of tcDspBankSelect.
[in] | apBaseAddr | The base address of the flash device. |
tcDspBankSelect::~tcDspBankSelect | ( | ) |
Default destructor.
bool tcDspBankSelect::setBank | ( | int | anBank | ) |
This routine sets the flash bank as commanded.
[in] | anBank | The desired flash bank. |
int tcDspBankSelect::getBank | ( | void | ) |
This routine returns the last bank accessed.
int tcDspBankSelect::computeBank | ( | void * | apAddr | ) |
This routine computes the bank associated with the given flash offset address.
[in] | apAddr | The provided offset address in the flash device. |