whiskers 0.2.0
RP2350 BadUSB Tool
Loading...
Searching...
No Matches
pub_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
13#ifndef W_PUBDISK_H
14#define W_PUBDISK_H
15#include "../../hal/file.h"
16#include "../../hal/shared.h"
17
18/* This piece of code creates a "fake" disk to show to the host */
19
20#define PUBDISK_FILENAME "pubdisk.vdisk"
35bool create_pubdisk(_DISK_INFO *di, uint32_t sector_size, uint32_t sector_count);
36
37#endif
HAL file functions.
bool create_pubdisk(_DISK_INFO *di, uint32_t sector_size, uint32_t sector_count)
Creates a pubdisk _DISK_INFO object and creates the file if it doesn't already exist.
Definition pub_disk.c:29
Shared structs, error codes, and functions for all HAL files.