mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-22 09:23:16 +00:00
add vendoring notice and original copyright to all files vendored in.
This commit is contained in:
parent
1a00e3cc2f
commit
55b1addf59
79 changed files with 474 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Unsigned, U0, U1, U2, U3, U4, U5, U6, U7, U8,
|
Unsigned, U0, U1, U2, U3, U4, U5, U6, U7, U8,
|
||||||
IsLess,
|
IsLess,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Bit,
|
Bit,
|
||||||
Endian,
|
Endian,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Bit,
|
Bit,
|
||||||
Endian,
|
Endian,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::Bit;
|
use crate::Bit;
|
||||||
|
|
||||||
mod little;
|
mod little;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use core::convert::Infallible;
|
use core::convert::Infallible;
|
||||||
|
|
||||||
/// Enum of possible errors returned from packing functions
|
/// Enum of possible errors returned from packing functions
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
pub use typenum::{
|
pub use typenum::{
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::Endian;
|
use crate::Endian;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
mod bool_pack;
|
mod bool_pack;
|
||||||
pub use bool_pack::*;
|
pub use bool_pack::*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Endian,
|
Endian,
|
||||||
PackedBytes,
|
PackedBytes,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
|
|
||||||
#![cfg_attr(feature = "diagnostic-notes", feature(proc_macro_diagnostic))]
|
#![cfg_attr(feature = "diagnostic-notes", feature(proc_macro_diagnostic))]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
use quickcheck::{ Arbitrary, Gen };
|
use quickcheck::{ Arbitrary, Gen };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::*;
|
use packing::*;
|
||||||
|
|
||||||
mod fuzz_endian;
|
mod fuzz_endian;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use usb_device::class_prelude::*;
|
use usb_device::class_prelude::*;
|
||||||
use usb_device::{
|
use usb_device::{
|
||||||
Result as UsbResult,
|
Result as UsbResult,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
use super::Direction;
|
use super::Direction;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
/// The status of a command
|
/// The status of a command
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use super::CommandStatus;
|
use super::CommandStatus;
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
/// The direction of a data transfer
|
/// The direction of a data transfer
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
mod direction;
|
mod direction;
|
||||||
pub use direction::*;
|
pub use direction::*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
mod bulk_only_transport;
|
mod bulk_only_transport;
|
||||||
|
|
||||||
pub use bulk_only_transport::{
|
pub use bulk_only_transport::{
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
//! USB interface protocol
|
//! USB interface protocol
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
//! USB interface subclass
|
//! USB interface subclass
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
//!
|
//!
|
||||||
//! # Glossary
|
//! # Glossary
|
||||||
//!
|
//!
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use usb_device::{
|
use usb_device::{
|
||||||
class_prelude::*,
|
class_prelude::*,
|
||||||
Result,
|
Result,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub enum BlockDeviceError {
|
pub enum BlockDeviceError {
|
||||||
/// Hardware didn't behave as expected, unrecoverable
|
/// Hardware didn't behave as expected, unrecoverable
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
mod scsi;
|
mod scsi;
|
||||||
pub use scsi::*;
|
pub use scsi::*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
use usbd_bulk_only_transport::CommandBlockWrapper as CommandBlockWrapper_NEW;
|
use usbd_bulk_only_transport::CommandBlockWrapper as CommandBlockWrapper_NEW;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
|
||||||
pub enum CommandLength {
|
pub enum CommandLength {
|
||||||
C6,
|
C6,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
/// This is the last byte on all commands
|
/// This is the last byte on all commands
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::{
|
use packing::{
|
||||||
Packed,
|
Packed,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
mod command;
|
mod command;
|
||||||
pub use command::*;
|
pub use command::*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::{
|
use packing::{
|
||||||
Packed,
|
Packed,
|
||||||
PackedSize,
|
PackedSize,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
use crate::scsi::{
|
use crate::scsi::{
|
||||||
packing::ParsePackedStruct,
|
packing::ParsePackedStruct,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
// There are many more variants (see asc-num.txt) but these are the ones the scsi code
|
// There are many more variants (see asc-num.txt) but these are the ones the scsi code
|
||||||
// currently uses
|
// currently uses
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
mod op_code;
|
mod op_code;
|
||||||
pub use op_code::*;
|
pub use op_code::*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
/// SCSI op codes as defined by SPC-3
|
/// SCSI op codes as defined by SPC-3
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Error as PackingError;
|
use packing::Error as PackingError;
|
||||||
use usbd_bulk_only_transport::Error as BulkOnlyTransportError;
|
use usbd_bulk_only_transport::Error as BulkOnlyTransportError;
|
||||||
use usb_device::UsbError;
|
use usb_device::UsbError;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
mod commands;
|
mod commands;
|
||||||
mod responses;
|
mod responses;
|
||||||
mod enums;
|
mod enums;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
use crate::scsi::Error;
|
use crate::scsi::Error;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::{
|
use packing::{
|
||||||
Packed,
|
Packed,
|
||||||
PackedSize,
|
PackedSize,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
mod read_capacity;
|
mod read_capacity;
|
||||||
pub use read_capacity::*;
|
pub use read_capacity::*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::{
|
use packing::{
|
||||||
Packed,
|
Packed,
|
||||||
PackedSize,
|
PackedSize,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Vendored from https://github.com/stm32-rs/stm32-usbd tag v0.6.0
|
||||||
|
// Original copyright (c) 2021 Matti Virkkunen <mvirkkunen@gmail.com>, Vadim Kaushan <admin@disasm.info>,
|
||||||
|
// Nicolas Stalder <n@stalder.io>", Jonas Martin <lichtfeind@gmail.com>
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
// SPDX-LIcense-Identifier: Apache 2.0
|
||||||
|
|
||||||
use packing::{
|
use packing::{
|
||||||
Packed,
|
Packed,
|
||||||
PackedSize,
|
PackedSize,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue