home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sound Sensations!
/
sound_sensations.iso
/
miditool
/
mpu401c
/
mpuget.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-11-02
|
483b
|
21 lines
/* 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());
}