Add some helpful data structures
Change u16* to const void* in transfer function definitions