TODO: add header dependencies
swd-adapter: simplify API