Library for MSP430 processors implemented as C++ templates