Zephyr API Documentation 4.0.0
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
54int disk_access_init(const char *pdrv);
55
65int disk_access_status(const char *pdrv);
66
82int disk_access_read(const char *pdrv, uint8_t *data_buf,
83 uint32_t start_sector, uint32_t num_sector);
84
100int disk_access_write(const char *pdrv, const uint8_t *data_buf,
101 uint32_t start_sector, uint32_t num_sector);
102
114int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buff);
115
116#ifdef __cplusplus
117}
118#endif
119
124#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