|
MHAA Serial Core v1.0.0
Nonblocking framed serial communication
|
The example configures nine data bits at 9600 baud with no parity and one stop symbol. The facade accepts 0x155 as one frame. The program checks that the fake accepted it. The behavior test also uses a wider synchronous implementation and exercises receive busy, corrupt-frame handling and completion.
The program uses the local fake to demonstrate injection. A concrete Adapter implementing the same Contract can be supplied to the same facade.
Build from this repository root. Set contract_include to the matching Contract's include/ directory. The value below applies to the MHAA development workspace. Both programs exit with status 0 on success and print no output. On Windows execute example.exe and behavior.exe.
See the behavior test for the additional cases described above.