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

u3_commands.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.

This file declares the functions for controlling the U3 device.

Definition in file u3_commands.h.

#include "u3.h"

Go to the source code of this file.

Classes

struct  chip_info
struct  dpart_info
struct  part_info
struct  property_03
struct  property_0C
struct  property_header

Defines

#define U3_MAX_CHIP_MANUFACTURER_LEN   16
#define U3_MAX_CHIP_REVISION_LEN   8
#define U3_MAX_SERIAL_LEN   16

Enumerations

enum  round_dir { round_down = 0, round_up = 1 }

Functions

int u3_cd_write (u3_handle_t *device, uint32_t block_num, uint8_t *block)
int u3_change_password (u3_handle_t *device, const char *old_password, const char *new_password, int *result)
int u3_chip_info (u3_handle_t *device, struct chip_info *info)
int u3_data_partition_info (u3_handle_t *device, struct dpart_info *info)
int u3_disable_security (u3_handle_t *device, const char *password, int *result)
int u3_enable_security (u3_handle_t *device, const char *password)
int u3_partition (u3_handle_t *device, uint32_t cd_size)
int u3_partition_info (u3_handle_t *device, struct part_info *info)
int u3_partition_sector_round (u3_handle_t *device, enum round_dir direction, uint32_t *size)
int u3_read_device_property (u3_handle_t *device, uint16_t property_id, uint8_t *buffer, uint16_t buffer_length)
int u3_reset (u3_handle_t *device)
int u3_security_sector_round (u3_handle_t *device, enum round_dir direction, uint32_t *size)
int u3_unlock (u3_handle_t *device, const char *password, int *result)

Variables

struct property_header packed


Generated by  Doxygen 1.6.0   Back to index