/* Copyright (C) 1986 by M. J. Shannon, Jr. ** Permission to distribute for non-commercial uses granted as long as this ** notice is retained. Violators will be prosecuted. */ #include "mpu.h" /* int mpu_get(): ** send the MPU a command which requires a single byte response, and return ** that response; timeouts are used, and we try to get the proper ** acknowledgement. */ int mpu_get(cmd) unsigned char cmd; { mpu_put(cmd); return ((int) mpu_dget()); }