File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ use crate::{
37
37
target:: Chip ,
38
38
} ;
39
39
40
- pub mod reset;
40
+ pub ( crate ) mod reset;
41
41
42
42
pub use reset:: { ResetAfterOperation , ResetBeforeOperation } ;
43
43
Original file line number Diff line number Diff line change @@ -30,25 +30,20 @@ const EXTRA_RESET_DELAY: u64 = 500; // ms
30
30
31
31
/// Reset strategies for resetting a target device.
32
32
pub trait ResetStrategy {
33
- /// Resets the target device.
34
33
fn reset ( & self , serial_port : & mut Port ) -> Result < ( ) , Error > ;
35
34
36
- /// Sets DTR (data terminal ready) to a specified level.
37
35
fn set_dtr ( & self , serial_port : & mut Port , level : bool ) -> Result < ( ) , Error > {
38
36
serial_port. write_data_terminal_ready ( level) ?;
39
37
40
38
Ok ( ( ) )
41
39
}
42
40
43
- /// Sets RTS (request to send) to a specified level.
44
41
fn set_rts ( & self , serial_port : & mut Port , level : bool ) -> Result < ( ) , Error > {
45
42
serial_port. write_request_to_send ( level) ?;
46
43
47
44
Ok ( ( ) )
48
45
}
49
46
50
- /// Sets RTS (request to send) and DTS (data termina lready) to specified
51
- /// levels.
52
47
#[ cfg( unix) ]
53
48
fn set_dtr_rts (
54
49
& self ,
You can’t perform that action at this time.
0 commit comments