Logo Search packages:      
Sourcecode: k9copy version File versions  Download package

bool K3bDevice::Device::setSpeed ( unsigned int  readingSpeed,
unsigned int  writingSpeed,
bool  cav = false 
) const

SET SPEED command

Parameters:
readingSpeed The preferred reading speed (0x0000-0xFFFE). 0xFFFF requests fot the logical unit to select the optimal speed.
writingSpeed The preferred writing speed (0x0000-0xFFFE). 0xFFFF requests fot the logical unit to select the optimal speed.
cav Is the speed pure CAV?

Definition at line 221 of file k3bdevice_mmc.cpp.

{
  ScsiCommand cmd( this );
  cmd[0] = MMC_SET_SPEED;
  cmd[1] = ( cav ? 0x1 : 0x0 );
  cmd[2] = readingSpeed >> 8;
  cmd[3] = readingSpeed;
  cmd[4] = writingSpeed >> 8;
  cmd[5] = writingSpeed;
  return ( cmd.transport( TR_DIR_WRITE ) == 0 );
}


Generated by  Doxygen 1.6.0   Back to index