We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9c7dc commit cdf538dCopy full SHA for cdf538d
framework_lib/src/ccgx/device.rs
@@ -23,6 +23,7 @@ const HPI_RESET_DEV_CMD: u8 = 1;
23
const _HPI_FLASH_READ_CMD: u8 = 0;
24
const _HPI_FLASH_WRITE_CMD: u8 = 1;
25
26
+#[derive(Debug, Copy, Clone)]
27
enum ControlRegisters {
28
DeviceMode = 0,
29
SiliconId = 2, // Two bytes long, First LSB, then MSB
@@ -40,7 +41,7 @@ enum ControlRegisters {
40
41
_FlashRwMem = 0x0200,
42
}
43
-#[derive(Debug)]
44
+#[derive(Debug, PartialEq, Clone, Copy)]
45
pub enum PdPort {
46
Left01,
47
Right23,
@@ -148,7 +149,7 @@ pub struct PdController {
148
149
ec: CrosEc,
150
151
-#[derive(Debug, PartialEq)]
152
153
pub enum FwMode {
154
BootLoader = 0,
155
/// Backup CCGX firmware (No 1)
0 commit comments