Logo Search packages:      
Sourcecode: odyssey version File versions

bool Device::progress ( unsigned long  addr  )  [protected, inherited]

Calls the progress callback, if it has been defined. The percent completed will be calculated from the progress_counter and progress_total members.

Parameters:
addr The address currently being accessed. Passed verbatim to the progress callback.
Returns:
A boolean value indicating if the current operation should continue.

Definition at line 89 of file Device.cxx.

References Device::progress_cb, Device::progress_cb_data, Device::progress_count, and Device::progress_total.

Referenced by Pic16Device::program(), Pic16Device::read(), Pic18Device::read_config_memory(), Pic18Device::read_data_memory(), Pic16Device::read_data_memory(), Pic16Device::read_id_memory(), Pic18Device::read_memory(), Pic16Device::read_program_memory(), Pic18Device::write_config_memory(), Pic18Device::write_data_memory(), Pic16Device::write_data_memory(), Pic18Device::write_id_memory(), Pic16Device::write_id_memory(), Pic18Device::write_program_memory(), Pic16f87xADevice::write_program_memory(), and Pic16Device::write_program_memory().

                                        {
      if(this->progress_cb) {
            return this->progress_cb(this->progress_cb_data, addr,
              (100*this->progress_count)/this->progress_total);
      }
      return true;
}


Generated by  Doxygen 1.6.0   Back to index