You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The receive function of the test_usart class always returns 0xAA.
I think this limits the use cases of this class, because it isn't really possible to test the processing of usart messages of a module. I think it would be more useful to be able to prepare a message in the bus and let the module receive that message thru the usart library, a bit like the mock-bus of the internal communication library.
It would than look a bit like this in the test code, this is of course just an example:
test_usart_c usart; // initialize test usart
usart.prepare_message({0xAA, 0xFF, 0x67, some_more_bytes}); // add a message to the usart to be processed by the module// run code to be tested
module_to_test_c module(usart);
module.proces_uart();
// check stuff
for sending you could do something simular of course.
The text was updated successfully, but these errors were encountered:
The receive function of the test_usart class always returns 0xAA.
I think this limits the use cases of this class, because it isn't really possible to test the processing of usart messages of a module. I think it would be more useful to be able to prepare a message in the bus and let the module receive that message thru the usart library, a bit like the mock-bus of the internal communication library.
It would than look a bit like this in the test code, this is of course just an example:
for sending you could do something simular of course.
The text was updated successfully, but these errors were encountered: