CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
usb_msc_backend_t Struct Reference

Block-device backend for the single USB Mass Storage LUN. More...

#include <usb_msc.h>

Public Attributes

bool(* read )(uint32_t lba, uint32_t offset, void *buf, uint32_t len)
bool(* write )(uint32_t lba, uint32_t offset, const void *buf, uint32_t len)
uint64_t(* total_bytes )(void)
uint16_t(* block_size )(void)
void(* set_host_active )(bool active)

Detailed Description

Block-device backend for the single USB Mass Storage LUN.

Definition at line 20 of file usb_msc.h.

Member Data Documentation

◆ block_size

uint16_t(* usb_msc_backend_t::block_size) (void)

Definition at line 24 of file usb_msc.h.

◆ read

bool(* usb_msc_backend_t::read) (uint32_t lba, uint32_t offset, void *buf, uint32_t len)

Definition at line 21 of file usb_msc.h.

◆ set_host_active

void(* usb_msc_backend_t::set_host_active) (bool active)

Definition at line 25 of file usb_msc.h.

◆ total_bytes

uint64_t(* usb_msc_backend_t::total_bytes) (void)

Definition at line 23 of file usb_msc.h.

◆ write

bool(* usb_msc_backend_t::write) (uint32_t lba, uint32_t offset, const void *buf, uint32_t len)

Definition at line 22 of file usb_msc.h.


The documentation for this struct was generated from the following file:
  • components/usb_badge/include/usb_badge/usb_msc.h