Adding memory control structure

for gyro