pub fn read_command(&self, command: Command, response: &mut [u8]) -> Result<(), Error> {
        match command {
            //TODO verify this list of commands
            Command::Read
            | Command::QuadRead
            | Command::ReadId
            | Command::ReadStatus
            | Command::ReadStatus2 => (),
            _ => return Err(Error::CommandFunctionMismatch),
        }

        let tfm = TransferMode {
            data_enable: true,
            instruction_enable: true,
            ..TransferMode::default()
        };
        unsafe {
            self.run_read_instruction(command, tfm, 0, response, true);
        }
        Ok(())
    }
/// Run one of the read commands
Run one of the read commands
Run one of the read commands
pub fn read_command(&self, command: Command, response: &mut [u8]) -> Result<(), Error> {
        match command {
            //TODO verify this list of commands
            Command::Read
            | Command::QuadRead
            | Command::ReadId
            | Command::ReadStatus
            | Command::ReadStatus2 => (),
            _ => return Err(Error::CommandFunctionMismatch),
        }
        let tfm = TransferMode {
            data_enable: true,
            instruction_enable: true,
            ..TransferMode::default()
        };
        unsafe {
            self.run_read_instruction(command, tfm, 0, response, true);
        }
        Ok(())
    }
pub fn read_command ( & self , command : Command , response : & mut [ u8 ] ) -> Result < ( ) , Error > { match command { //TODO verify this list of commands Command :: Read | Command :: QuadRead | Command :: ReadId | Command :: ReadStatus | Command :: ReadStatus2 => ( ) , _ => return Err ( Error :: CommandFunctionMismatch ) , } let tfm = TransferMode { data_enable : true , instruction_enable : true , .. TransferMode :: default ( ) } ; unsafe { self . run_read_instruction ( command , tfm , 0 , response , true ) ; } Ok ( ( ) ) }
Run one of the read commands
Run one of the read commands
&self
command
Command
response
&mut [u8]
&self
command
Command
response
&mut [u8]