File can.hpp
FileList > include > libhal-mock > can.hpp
Go to the source code of this file
#include "testing.hpp"
#include <libhal/can.hpp>
#include <libhal/functional.hpp>
Namespaces
Type | Name |
---|---|
namespace | hal The foundation of libhal containing, interfaces, utilities and soft drivers. |
namespace | mock |
Classes
Type | Name |
---|---|
struct | can Mock can implementation for use in unit tests and simulations. |
Public Functions
Type | Name |
---|---|
std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > & p_ostream, const hal::can::message_t & p_message) print can::message_t type using ostreams |
Public Functions Documentation
function operator<<
print can::message_t type using ostreams
template<class CharT class CharT, class Traits class Traits>
std::basic_ostream< CharT, Traits > & operator<< (
std::basic_ostream< CharT, Traits > & p_ostream,
const hal::can::message_t & p_message
)
Meant for unit testing, testing and simulation purposes C++ streams, in general, should not be used for any embedded project that will ever have to be used on an MCU due to its memory cost.
Template parameters:
CharT
- character typeTraits
- ostream traits type
Parameters:
p_ostream
- the ostreamp_message
- object to convert to a string
Returns:
std::basic_ostream<CharT, Traits>& - reference to the ostream
The documentation for this class was generated from the following file libraries/include/libhal-mock/can.hpp