| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Disk Access APIs. More...
Functions | |
| int | disk_access_init (const char *pdrv) | 
| perform any initialization  More... | |
| int | disk_access_status (const char *pdrv) | 
| Get the status of disk.  More... | |
| int | disk_access_read (const char *pdrv, uint8_t *data_buf, uint32_t start_sector, uint32_t num_sector) | 
| read data from disk  More... | |
| int | disk_access_write (const char *pdrv, const uint8_t *data_buf, uint32_t start_sector, uint32_t num_sector) | 
| write data to disk  More... | |
| int | disk_access_ioctl (const char *pdrv, uint8_t cmd, void *buff) | 
| Get/Configure disk parameters.  More... | |
Disk Access APIs.
| int disk_access_init | ( | const char * | pdrv | ) | 
#include <include/zephyr/storage/disk_access.h>
perform any initialization
This call is made by the consumer before doing any IO calls so that the disk or the backing device can do any initialization.
| [in] | pdrv | Disk name | 
| int disk_access_ioctl | ( | const char * | pdrv, | 
| uint8_t | cmd, | ||
| void * | buff | ||
| ) | 
#include <include/zephyr/storage/disk_access.h>
Get/Configure disk parameters.
Function to get disk parameters and make any special device requests.
| [in] | pdrv | Disk name | 
| [in] | cmd | DISK_IOCTL_* code describing the request | 
| [in] | buff | Command data buffer | 
| int disk_access_read | ( | const char * | pdrv, | 
| uint8_t * | data_buf, | ||
| uint32_t | start_sector, | ||
| uint32_t | num_sector | ||
| ) | 
#include <include/zephyr/storage/disk_access.h>
read data from disk
Function to read data from disk to a memory buffer.
| [in] | pdrv | Disk name | 
| [in] | data_buf | Pointer to the memory buffer to put data. | 
| [in] | start_sector | Start disk sector to read from | 
| [in] | num_sector | Number of disk sectors to read | 
| int disk_access_status | ( | const char * | pdrv | ) | 
#include <include/zephyr/storage/disk_access.h>
Get the status of disk.
This call is used to get the status of the disk
| [in] | pdrv | Disk name | 
| int disk_access_write | ( | const char * | pdrv, | 
| const uint8_t * | data_buf, | ||
| uint32_t | start_sector, | ||
| uint32_t | num_sector | ||
| ) | 
#include <include/zephyr/storage/disk_access.h>
write data to disk
Function write data from memory buffer to disk.
| [in] | pdrv | Disk name | 
| [in] | data_buf | Pointer to the memory buffer | 
| [in] | start_sector | Start disk sector to write to | 
| [in] | num_sector | Number of disk sectors to write |