Our offices are closed from August 1, 2020 to August 16, 2020. No orders will be shipped during this time.
Call external drivers
To call the driver Xadc from the driver Laser:
ctx.get in the driver Laser constructor
public: Laser(Context& ctx) : ctl(ctx.mm.get<mem::control>()) , sts(ctx.mm.get<mem::status>()) , xadc(ctx.get<Xadc>())
private: Memory<mem::control>& ctl; Memory<mem::status>& sts; Xadc& xadc;
Be careful not to introduce circular dependencies in the constructors.