NUTBLOCKIO Struct Reference
[Block Devices]

Generic block I/O device interface structure. More...

Data Fields

void * blkio_info
 Device specific information.
uint32_t blkio_blk_cnt
 Total number of blocks on this device.
uint32_t blkio_blk_siz
 Number of bytes per block.
uint32_t blkio_vol_bot
 First block for file system mount.
uint32_t blkio_vol_top
 Number of blocks reserved on top of file system mount.
int(* blkio_read )(NUTDEVICE *, uint32_t, void *, int)
 Read from block I/O device, starting at the specified block.
int(* blkio_write )(NUTDEVICE *, uint32_t, CONST void *, int)
 Write to block I/O device, starting at the specified block.
int(* blkio_write_P )(NUTDEVICE *, uint32_t, PGM_P, int)
 Write program memory to block I/O device, starting at the specified block.
int(* blkio_ioctl )(NUTDEVICE *, int, void *)
 Control functions.

Detailed Description

Generic block I/O device interface structure.

Generic block I/O device interface structure type.

This is a virtual structure, used by the generic block I/O device driver.

Note:
Any real implementation must start with the same layout. If this structure is changed, we must update all implementations.

Definition at line 119 of file blockdev.h.


Field Documentation

void* NUTBLOCKIO::blkio_info

Device specific information.

Definition at line 123 of file blockdev.h.

uint32_t NUTBLOCKIO::blkio_blk_cnt

Total number of blocks on this device.

Definition at line 128 of file blockdev.h.

uint32_t NUTBLOCKIO::blkio_blk_siz

Number of bytes per block.

Definition at line 133 of file blockdev.h.

uint32_t NUTBLOCKIO::blkio_vol_bot

First block for file system mount.

Definition at line 138 of file blockdev.h.

uint32_t NUTBLOCKIO::blkio_vol_top

Number of blocks reserved on top of file system mount.

Definition at line 143 of file blockdev.h.

int(* NUTBLOCKIO::blkio_read)(NUTDEVICE *, uint32_t, void *, int)

Read from block I/O device, starting at the specified block.

Definition at line 148 of file blockdev.h.

int(* NUTBLOCKIO::blkio_write)(NUTDEVICE *, uint32_t, CONST void *, int)

Write to block I/O device, starting at the specified block.

Definition at line 153 of file blockdev.h.

int(* NUTBLOCKIO::blkio_write_P)(NUTDEVICE *, uint32_t, PGM_P, int)

Write program memory to block I/O device, starting at the specified block.

Definition at line 159 of file blockdev.h.

int(* NUTBLOCKIO::blkio_ioctl)(NUTDEVICE *, int, void *)

Control functions.

Definition at line 165 of file blockdev.h.


The documentation for this struct was generated from the following file:

© 2000-2010 by contributors - visit http://www.ethernut.de/