Add functions and macros to read and write 24 bit values.