HomeCore 0.1.3 (07b5544)
Bare-metal personal computer firmware for Cortex-M
Loading...
Searching...
No Matches
block_ops_t Struct Reference

Operations a block driver provides; every one is required. More...

#include <homecore/drivers/block.h>

Data Fields

int(* read )(void *device, uint32_t sector, void *buf, uint32_t count)
 Read count sectors starting at sector into buf.
 
int(* write )(void *device, uint32_t sector, const void *buf, uint32_t count)
 Write count sectors starting at sector from buf.
 
int(* sync )(void *device)
 Finish every pending write.
 
uint32_t(* sector_count )(void *device)
 Return the device size in sectors.
 

Detailed Description

Operations a block driver provides; every one is required.


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