Library for accessing System76 ECs
First, construct an access method, using an object implementing the Access trait. Next, an Ec
object can be contructed, which exposes the command interface.
There are some differences between targets and features that are listed below:
AccessHidrequires thehidapifeature. Only functional on USB ECs.AccessLpcDirectrequires theredox_hwiofeature and a nightly compiler. This method is only recommended for use in firmware with LPC ECs, as mutual exclusion is not guaranteed.AccessLpcLinuxrequires thestdfeature andlinuxtarget_os. Recommended for LPC ECs, as this method can utilize mutual exclusion.EcLegacy,Pmc, andSuperIoall require theredox_hwiofeature and a nightly compiler. It is only recommended to use these in firmware, as mutual exclusion is not guaranteed.