MCPcopy Index your code
hub / github.com/FrameworkComputer/framework-system / get_silicon_id

Method get_silicon_id

framework_lib/src/ccgx/device.rs:278–282  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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)> {

Callers 2

print_single_pd_detailsFunction · 0.80
selftestFunction · 0.80

Calls 2

assert_win_lenFunction · 0.85
ccgx_readMethod · 0.80

Tested by

no test coverage detected