(&self)
| 276 | } |
| 277 | |
| 278 | pub fn get_silicon_id(&self) -> EcResult<u16> { |
| 279 | let data = self.ccgx_read(ControlRegisters::SiliconId, 2)?; |
| 280 | assert_win_len(data.len(), 2); |
| 281 | Ok(u16::from_le_bytes([data[0], data[1]])) |
| 282 | } |
| 283 | |
| 284 | /// Get device info (fw_mode, flash_row_size) |
| 285 | pub fn get_device_info(&self) -> EcResult<(FwMode, u16)> { |
no test coverage detected