mirror of
https://github.com/trussed-dev/usbd-ccid.git
synced 2026-06-20 04:16:20 -07:00
Fix visibility
All the internals of the crate were public. This patch makes a lot more private to allow evolution without everything being a breaking change
This commit is contained in:
committed by
Robin Krahl
parent
d2af0efeff
commit
1c4c9fda5c
+5
-3
@@ -11,11 +11,13 @@ pub const SUBCLASS_NONE: u8 = 0x0;
|
||||
|
||||
#[repr(u8)]
|
||||
pub enum TransferMode {
|
||||
// bulk transfers, optional interrupt IN
|
||||
/// bulk transfers, optional interrupt IN
|
||||
Bulk = 0,
|
||||
// control transfers, no interrupt IN
|
||||
/// control transfers, no interrupt IN
|
||||
#[allow(unused)]
|
||||
ControlA = 1,
|
||||
// control transfers, optional interrupt IN
|
||||
/// control transfers, optional interrupt IN
|
||||
#[allow(unused)]
|
||||
ControlB = 2,
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ extern crate delog;
|
||||
generate_macros!();
|
||||
|
||||
pub mod class;
|
||||
pub mod constants;
|
||||
pub mod pipe;
|
||||
mod constants;
|
||||
mod pipe;
|
||||
pub mod types;
|
||||
|
||||
// pub mod piv;
|
||||
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
use embedded_time::duration::Milliseconds;
|
||||
|
||||
// pub mod apdu;
|
||||
pub mod packet;
|
||||
pub(crate) mod packet;
|
||||
|
||||
// pub type MessageBuffer = apdu_dispatch::interchanges::Data;
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||||
pub enum ClassRequest {
|
||||
pub(crate) enum ClassRequest {
|
||||
Abort = 1,
|
||||
GetClockFrequencies = 2,
|
||||
GetDataRates = 3,
|
||||
|
||||
Reference in New Issue
Block a user