whiskers 0.2.0
RP2350 BadUSB Tool
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
68void disk_init(_DISK_INFO *di);
79bool disk_mount(_DISK_INFO *di);
86bool disk_umount(_DISK_INFO *di);
95bool disk_format_ff(_DISK_INFO *di);
105#endif
bool disk_mount(_DISK_INFO *di)
Mounts the disk and checks for a FatFS.
bool disk_umount(_DISK_INFO *di)
Unmounts the disk regardless of filesystem status.
bool disk_format_ff(_DISK_INFO *di)
Creates a FatFS on the disk.
void disk_init(_DISK_INFO *di)
Sets all the variables required for the disk and then initializes the SD library.
bool disk_is_physically_mounted()
Checks if a SD card is currently present in the device.
Shared structs, error codes, and functions for all HAL files.