Nut/OS  4.10.3
API Reference
Block Devices

Mass storage block device driver. More...

Collaboration diagram for Block Devices:

Data Structures

struct  _BLKPAR_SEEK
 Block seek parameter structure. More...
struct  _BLKPAR_INFO
 Device information parameter structure. More...
struct  _NUTBLOCKIO
 Generic block I/O device interface structure. More...

Modules

 Multimedia Card Driver
 

Block device driver for MM/SD Cards.


 Bit-banging MMC Driver
 

Block device driver for MM/SD Cards.


 NPL Multimedia Card Support
 

Support routines for MM/SD Cards.


 Low Level MMC Interface
 

Bit banging SPI for MMC.


Typedefs

typedef struct _BLKPAR_SEEK BLKPAR_SEEK
 Block seek parameter structure.
typedef struct _BLKPAR_INFO BLKPAR_INFO
 Device information parameter structure.
typedef struct _NUTBLOCKIO NUTBLOCKIO
 Generic block I/O device interface structure type.

Control Codes

#define NUTBLKDEV_MEDIAAVAIL   0x1200
 Query for media change.
#define NUTBLKDEV_MEDIACHANGE   0x1201
 Query for media change.
#define NUTBLKDEV_INFO   0x1202
 Retrieve device information.
#define NUTBLKDEV_SEEK   0x1203
 Block seek request.

Detailed Description

Mass storage block device driver.


Define Documentation

#define NUTBLKDEV_MEDIAAVAIL   0x1200

Query for media change.

Definition at line 76 of file blockdev.h.

Referenced by MmCardIOCtl(), SpiAt45dIOCtl(), and SpiMmcIOCtl().

#define NUTBLKDEV_MEDIACHANGE   0x1201

Query for media change.

Definition at line 78 of file blockdev.h.

Referenced by MmCardIOCtl(), SpiAt45dIOCtl(), and SpiMmcIOCtl().

#define NUTBLKDEV_INFO   0x1202

Retrieve device information.

Definition at line 80 of file blockdev.h.

Referenced by MmCardIOCtl(), NutBlockDeviceIOCtl(), PhatVolMount(), RawFsMount(), and SpiMmcIOCtl().

#define NUTBLKDEV_SEEK   0x1203

Block seek request.

Definition at line 82 of file blockdev.h.

Referenced by MmCardIOCtl(), NutBlockDeviceIOCtl(), PhatSectorFlush(), PhatSectorRead(), and SpiMmcIOCtl().


Typedef Documentation

typedef struct _BLKPAR_SEEK BLKPAR_SEEK

Block seek parameter structure.

Used with NUTBLKDEV_SEEK ioctl.

typedef struct _BLKPAR_INFO BLKPAR_INFO

Device information parameter structure.

Used with NUTBLKDEV_INFO ioctl.

typedef struct _NUTBLOCKIO NUTBLOCKIO

Generic block I/O device interface structure type.

Definition at line 109 of file blockdev.h.