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

bool K3bDevice::Device::modeSelect ( unsigned char *  page,
int  pageLen,
bool  pf,
bool  sp 
) const

Parameters:
pf If false all fields in the descriptor data is vendor specific. Default should be true.

Definition at line 654 of file k3bdevice_mmc.cpp.

{
  page[0] = 0;
  page[1] = 0;
  page[4] = 0;
  page[5] = 0;

  // we do not support Block Descriptors here
  page[6] = 0;
  page[7] = 0;

  // PS bit reserved
  page[8] &= 0x3F;

  ScsiCommand cmd( this );
  cmd[0] = MMC_MODE_SELECT;
  cmd[1] = ( sp ? 1 : 0 ) | ( pf ? 0x10 : 0 );
  cmd[7] = pageLen>>8;
  cmd[8] = pageLen;
  cmd[9] = 0;
  return( cmd.transport( TR_DIR_WRITE, page, pageLen ) == 0 );
}


Generated by  Doxygen 1.6.0   Back to index