Login
1 branch 0 tags
Ben (Desktop/Arch) Much smoother rendering f0d75c6 1 month ago 75 Commits
moon / esp32 / main / usb_msc.h
#pragma once
#include <stdbool.h>

// Initialize TinyUSB MSC with the SD card (call after storage_init)
void usb_msc_init(void);

// Returns true once when a USB host has connected (consumes the event)
bool usb_msc_host_connected(void);

// Returns true once when the USB host has disconnected (consumes the event)
bool usb_msc_host_disconnected(void);

// Returns true while a USB host is connected
bool usb_msc_is_connected(void);