implemented all write hw regs cmds