ChibiOS/HAL 9.0.0
|
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. | |
#define | _base_block_device_data |
BaseBlockDevice specific data. | |
Macro Functions (BaseBlockDevice) | |
#define | blkGetDriverState(ip) |
Returns the driver state. | |
#define | blkIsTransferring(ip) |
Determines if the device is transferring data. | |
#define | blkIsInserted(ip) |
Returns the media insertion status. | |
#define | blkIsWriteProtected(ip) |
Returns the media write protection status. | |
#define | blkConnect(ip) |
Performs the initialization procedure on the block device. | |
#define | blkDisconnect(ip) |
Terminates operations on the block device. | |
#define | blkRead(ip, startblk, buf, n) |
Reads one or more blocks. | |
#define | blkWrite(ip, startblk, buf, n) |
Writes one or more blocks. | |
#define | blkSync(ip) |
Ensures write synchronization. | |
#define | blkGetInfo(ip, bdip) |
Returns a media information structure. |
Enumerations | |
enum | blkstate_t { BLK_UNINIT = 0 , BLK_STOP = 1 , BLK_ACTIVE = 2 , BLK_CONNECTING = 3 , BLK_DISCONNECTING = 4 , BLK_READY = 5 , BLK_READING = 6 , BLK_WRITING = 7 , BLK_SYNCING = 8 } |
Driver state machine possible states. More... |
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.