Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
disk_access.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14#ifndef ZEPHYR_INCLUDE_STORAGE_DISK_ACCESS_H_
15#define ZEPHYR_INCLUDE_STORAGE_DISK_ACCESS_H_
16
32#include <zephyr/drivers/disk.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
48int disk_access_init(const char *pdrv);
49
59int disk_access_status(const char *pdrv);
60
76int disk_access_read(const char *pdrv, uint8_t *data_buf,
77 uint32_t start_sector, uint32_t num_sector);
78
94int disk_access_write(const char *pdrv, const uint8_t *data_buf,
95 uint32_t start_sector, uint32_t num_sector);
96
108int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buff);
109
110#ifdef __cplusplus
111}
112#endif
113
118#endif /* ZEPHYR_INCLUDE_STORAGE_DISK_ACCESS_H_ */
Disk Driver Interface.
int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buff)
Get/Configure disk parameters.
int disk_access_read(const char *pdrv, uint8_t *data_buf, uint32_t start_sector, uint32_t num_sector)
read data from disk
int disk_access_write(const char *pdrv, const uint8_t *data_buf, uint32_t start_sector, uint32_t num_sector)
write data to disk
int disk_access_init(const char *pdrv)
perform any initialization
int disk_access_status(const char *pdrv)
Get the status of disk.
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition: ft8xx_reference_api.h:153
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88