Zephyr Project API  3.4.0
A Scalable Open Source RTOS
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
73int disk_access_read(const char *pdrv, uint8_t *data_buf,
74 uint32_t start_sector, uint32_t num_sector);
75
88int disk_access_write(const char *pdrv, const uint8_t *data_buf,
89 uint32_t start_sector, uint32_t num_sector);
90
102int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buff);
103
104#ifdef __cplusplus
105}
106#endif
107
112#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
uint8_t data_buf[16]
Definition: targets.c:14