MityDSP Documentation Index
tcDspBankSelect

Introduction

The tcDspBankSelect class may be used to change banks of a flash device. In general, these operations should be left to the control of tcDspFlash objects. When using this class directly, extreme care should be take when writing to bank zero of the boot flash. Doing so may render the MityDSP board inoperative, and prevent the bootloader from downloading new firmware and software images.

See also:
MityDSP::tcDspBankSelect Class Reference
MityDSP::tcDspFlash Class Reference

Example

This is a simple example of tcDspBankSelect creation and usage:

{
// Initialize the tcDspBankSelector object for the flash device
tcDspBankSelect* mpBankSel = new tcDspBankSelect((void*)BANK_SEL_ADDR);
// Use the factory to obtain a base class pointer to the flash device
tcDspFlash* mpFlash = new tcDspFlash((void *)FLASH_ADDR, mpBankSel);
:
:
}

  
Generated on Mon Apr 22 2013 11:33:02 for MityDSP Core by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.