tw_allocate_memory
error = tw_allocate_memory(tw_dev, sizeof(TW_Command), 0);
error = tw_allocate_memory(tw_dev, sizeof(TW_Sector), 1);