Embedded firmware simulation: simple bridge for simulating a peripheral in C