13 Commits

Author SHA1 Message Date
Ian Douglas Scott
84d5c6b79d tool: Make Access require Send and 'static
This allows the Configurator to send a `Ec<Box<dyn Access>>` through a
channel to a background thread. This could be done differently, but
presumably there's no reason to have an `Access` implementation this
doesn't apply to.
2021-04-13 11:04:51 -06:00
Ian Douglas Scott
301eef6f21 tool: Fix and CI test with redox_hwio 2021-03-04 13:51:19 -07:00
Ian Douglas Scott
325762d4d8 tool: Fix building without std feature 2021-03-04 13:51:19 -07:00
Jeremy Soller
73a5d8b8a1
ectool 0.3.1: Implement read_debug for Box<dyn Access> 2021-02-23 09:45:55 -07:00
Tim Crawford
3e154d7f00 Add missing SPDX identifiers 2021-02-22 14:02:18 -07:00
Ian Douglas Scott
e30779ab8d tool: Accesor method for HidDevice 2021-02-22 08:08:49 -07:00
Ian Douglas Scott
2768925ec6 tool: Support downcasting generic Ec
Removes the `impl Access for &mut dyn Access` I added earlier. But that
hasn't proven too useful.
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
504284bf72 tool: Move read_debug to trait so generic code can use it
Returns error for backends that don't support it.
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
0c1584385c tool: Support for owned and unowned generic Ec 2021-02-22 08:08:49 -07:00
Ian Douglas Scott
42f1b4863f Add AccessLpcSim for communicating with ecsim
Probably the duplicated logic in `access/lpc/*` should be factored out
in some way, but it's a bit awkward to do so without defining a trait
that would be part of the public API...
2020-12-08 13:46:35 -07:00
Ian Douglas Scott
802bf417cc tool: Use From<T> for slightly neater error handling 2020-12-08 13:46:35 -07:00
Jeremy Soller
726a0e0837 ectool version 0.2.1:
- Add hidapi feature
- Add redox_hwio feature
- Add feature documentation
2020-10-02 09:05:25 -07:00
Jeremy Soller
eff4caa752 Refactor SMFI interface and ectool 2020-10-01 19:35:34 -07:00