|
modm API documentation
|
#include <modm/architecture/interface/unaligned.hpp>
Public Member Functions | |
| unaligned_t (T value) | |
| operator T () const | |
Protected Member Functions | |
| void | write (T &value) |
| void | read (T &value) const |
Accesses a type using byte-wise copy.
This wrapper manages unaligned access to memory, by copying the memory to and from the stack, which is always correctly aligned. Use this with the asUnaligned helper: