Archive for 17 Nov 2010

Tips and tricks (6)

PreviousT&T Mapping a structure to an array of bytes, the lazy,the ¬†clean and the smart way. What for? While designing a data logger application, I decided to use a custom variable in order to store individual records and declared it the academic way typedef struct varRecord { double time; uint8_t temperature; uint16_t pressure; } newRecord; […]