A while ago my brother Allard Krijger asked me if I wanted to write the firmware for a new instrument he was designing. The instrument is called the Melancholytron: a book about melancholy and an instrument that can play it. Most of what I have to tell is about the firmware.
Directly connected glue skips the generated foreign component skeleton and the registration, and connects the handwritten code to the provided ports of the top level system instead. With the implementation, the tests and the trade-offs.
A motor implementation in Dezyne, built on the MotorGlue from the previous part, with error handling and an asynchronous protocol, the mocks, and the tests that check it.
Handwritten code is the most error prone part of a Dezyne project. This is the glue between the Dezyne models and a motor HAL, and how to test it with GoogleTest and gMock.
Sometimes a synchronous interface has to be converted into an asynchronous one, and Dezyne has changed the way to do it over the years: dzn.async, defer and the Async interface. Two interfaces show what each way costs.
An introduction to Dezyne from two interfaces and a component, then implicit interface constraints from 2.17 and shared interface state from 2.18, and what both change in an implementation.