There are a few registers that map nicely onto structs. Switch from using index constants and byte arrays in those cases. Signed-off-by: Andreas Sandberg <andreas@sandberg.uk>