Interfaced code with hardware