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"
35
bool
create_pubdisk
(_DISK_INFO *di, uint32_t sector_size, uint32_t sector_count);
36
37
#endif
file.h
HAL file functions.
create_pubdisk
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.h
Shared structs, error codes, and functions for all HAL files.
code
src
usb
pub_disk.h
Generated by
1.16.1