whiskers
0.4.0
RP2350 BadUSB Tool
Toggle main menu visibility
Loading...
Searching...
No Matches
disk.h
Go to the documentation of this file.
1
/* Copyright (c) 2026 Zane A. Maples
2
Licensed under the MIT license. See LICENSE in the main repository for more information. */
3
55
56
#ifndef W_HAL_DISK_H
57
#define W_HAL_DISK_H
58
59
#include "
shared.h
"
60
61
68
void
disk_init
(_DISK_INFO *di);
79
bool
disk_mount
(_DISK_INFO *di);
86
bool
disk_umount
(_DISK_INFO *di);
95
bool
disk_format_ff
(_DISK_INFO *di);
104
bool
disk_is_physically_mounted
();
109
_DISK_INFO *
get_sd_ref
();
110
#endif
disk_mount
bool disk_mount(_DISK_INFO *di)
Mounts the disk and checks for a FatFS.
disk_umount
bool disk_umount(_DISK_INFO *di)
Unmounts the disk regardless of filesystem status.
disk_format_ff
bool disk_format_ff(_DISK_INFO *di)
Creates a FatFS on the disk.
disk_init
void disk_init(_DISK_INFO *di)
Sets all the variables required for the disk and then initializes the SD library.
get_sd_ref
_DISK_INFO * get_sd_ref()
Gets the internal reference to the _DISK_INFO object holding the SD card.
disk_is_physically_mounted
bool disk_is_physically_mounted()
Checks if a SD card is currently present in the device.
shared.h
Shared structs, error codes, and functions for all HAL files.
code
hal
disk.h
Generated by
1.18.0