File tree Expand file tree Collapse file tree 2 files changed +414
-117
lines changed Expand file tree Collapse file tree 2 files changed +414
-117
lines changed Original file line number Diff line number Diff line change 55use core:: marker:: PhantomData ;
66
77/// Input mode (type state)
8+ #[ derive( Debug ) ]
89pub struct Input < MODE > {
910 _mode : PhantomData < MODE > ,
1011}
1112
1213/// Floating input (type state)
14+ #[ derive( Debug ) ]
1315pub struct Floating ;
1416/// Pulled down input (type state)
17+ #[ derive( Debug ) ]
1518pub struct PullDown ;
1619/// Pulled up input (type state)
20+ #[ derive( Debug ) ]
1721pub struct PullUp ;
1822
1923/// Output mode (type state)
24+ #[ derive( Debug ) ]
2025pub struct Output < MODE > {
2126 _mode : PhantomData < MODE > ,
2227}
2328
2429/// Push pull output (type state)
30+ #[ derive( Debug ) ]
2531pub struct PushPull ;
2632/// Open drain output (type state)
33+ #[ derive( Debug ) ]
2734pub struct OpenDrain ;
2835
2936// /// Alternate function
@@ -43,6 +50,7 @@ pub enum Level {
4350// across all of the possible pins
4451// ===============================================================
4552/// Generic $PX pin
53+ #[ derive( Debug ) ]
4654pub struct Pin < MODE > {
4755 pub pin : u8 ,
4856 #[ cfg( feature = "52840" ) ]
You can’t perform that action at this time.
0 commit comments