Logo Search packages:      
Sourcecode: u3-tool version File versions  Download package

u3_scsi.h File Reference

Detailed Description

u3_tool - U3 USB stick manager Copyright (C) 2007 Daviedev, daviedev@users.sourceforge.net

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Declare some helper functions to provide a subsystem independent way of sending SCSI commands to a U3 device.

Definition in file u3_scsi.h.

#include "u3.h"

Go to the source code of this file.


#define U3_CMD_LEN   12


enum  { U3_DATA_NONE = 0, U3_DATA_TO_DEV = 1, U3_DATA_FROM_DEV = 2 }


void u3_close (u3_handle_t *device)
int u3_open (u3_handle_t *device, const char *which)
int u3_send_cmd (u3_handle_t *device, uint8_t cmd[U3_CMD_LEN], int dxfer_direction, int dxfer_length, uint8_t *dxfer_data, uint8_t *status)

Generated by  Doxygen 1.6.0   Back to index