Contiki-Inga 3.x
Data Structures | Macros | Functions
diskio.h File Reference

    DiskIO Layer definitions
More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  diskio_device_info
 Stores the necessary information to identify a device using the diskio-Library. More...
 

Macros

#define DISKIO_DEVICE_TYPE_NOT_RECOGNIZED   0
 Allows raw access to disks, used by the MBR-Subsystem.
 
#define DISKIO_MAX_SECTOR_SIZE   512
 Bigger sectors then this are not supported. More...
 
#define DISKIO_DEVICE_TYPE_MASK   0x7f
 Mask used to ignore modifiers like the PARTITION flag.
 

Functions

void diskio_print_device_info (struct diskio_device_info *dev)
 Prints information about the specified device. More...
 
int diskio_read_block (struct diskio_device_info *dev, uint32_t block_address, uint8_t *buffer)
 Reads one block from the specified device and stores it in buffer. More...
 
int diskio_read_blocks (struct diskio_device_info *dev, uint32_t block_start_address, uint32_t num_blocks, uint8_t *buffer)
 Reads multiple blocks from the specified device. More...
 
int diskio_write_block (struct diskio_device_info *dev, uint32_t block_address, uint8_t *buffer)
 Writes a single block to the specified device. More...
 
int diskio_write_blocks_start (struct diskio_device_info *dev, uint32_t block_start_address, uint32_t num_blocks)
 Start writing multiple blocks to the specified device. More...
 
int diskio_write_blocks_next (struct diskio_device_info *dev, uint8_t *buffer)
 Write next of multiple blocks to the specified device. More...
 
int diskio_write_blocks_done (struct diskio_device_info *dev)
 Start writing multiple blocks to the specified device. More...
 
struct diskio_device_infodiskio_devices ()
 Returns the device-Database. More...
 
int diskio_detect_devices ()
 Creates the internal database of available devices. More...
 
void diskio_set_default_device (struct diskio_device_info *dev)
 Sets the default operation device. More...
 

Detailed Description

    DiskIO Layer definitions
Author
Original Source Code: Christoph Peltz peltz.nosp@m.@ibr.nosp@m..cs.t.nosp@m.u-bs.nosp@m..de

Definition in file diskio.h.