A C library for embedded programming on the XMEGA AVR