Lightweight converter functions suitable for control firmware develompent.
Include the following at the top of any translation unit which requires this library: @code #include <ecl/converters_lite.hpp> // The converter functions using ecl::from_byte_array; @endcode
Since it is solely comprised of inline header functions, no linking is required if you are only using this class.
These convert between integral types and character arrays. This is quite a common operation for control systems which are reading/writing to and from i/o character devices (e.g. serial port).
These functions do need some care as you're passing pointers which must be pointing to memory with at least the required number of bytes to do the conversion
The following are listed with the 'to' type on the left and 'from' types on the right.
- <b>Nar 11</b> : added from_byte_array functions.