ChibiOS/HAL  6.1.0
hal_ioblock.h File Reference

I/O block devices access. More...

Go to the source code of this file.

Data Structures

struct  BlockDeviceInfo
 Block device info. More...
 
struct  BaseBlockDeviceVMT
 BaseBlockDevice virtual methods table. More...
 
struct  BaseBlockDevice
 Base block device class. More...
 

Macros

#define _base_block_device_methods
 BaseBlockDevice specific methods. More...
 
#define _base_block_device_data
 BaseBlockDevice specific data. More...
 
Macro Functions (BaseBlockDevice)
#define blkGetDriverState(ip)   ((ip)->state)
 Returns the driver state. More...
 
#define blkIsTransferring(ip)
 Determines if the device is transferring data. More...
 
#define blkIsInserted(ip)   ((ip)->vmt->is_inserted(ip))
 Returns the media insertion status. More...
 
#define blkIsWriteProtected(ip)   ((ip)->vmt->is_protected(ip))
 Returns the media write protection status. More...
 
#define blkConnect(ip)   ((ip)->vmt->connect(ip))
 Performs the initialization procedure on the block device. More...
 
#define blkDisconnect(ip)   ((ip)->vmt->disconnect(ip))
 Terminates operations on the block device. More...
 
#define blkRead(ip, startblk, buf, n)   ((ip)->vmt->read(ip, startblk, buf, n))
 Reads one or more blocks. More...
 
#define blkWrite(ip, startblk, buf, n)   ((ip)->vmt->write(ip, startblk, buf, n))
 Writes one or more blocks. More...
 
#define blkSync(ip)   ((ip)->vmt->sync(ip))
 Ensures write synchronization. More...
 
#define blkGetInfo(ip, bdip)   ((ip)->vmt->get_info(ip, bdip))
 Returns a media information structure. More...
 

Enumerations

Detailed Description

I/O block devices access.

This header defines an abstract interface useful to access generic I/O block devices in a standardized way.

Definition in file hal_ioblock.h.