#include <nitro/mi.h>
typedef struct MIDevice
{
/* private: */
void *userdata;
MIDeviceReadFunction Read;
MIDeviceWriteFunction Write;
}
MIDevice;
This is an interface structure for wrapping device control.
You can use this structure when you want to write transparent control code for any device that has a linear address space.
This is a utility feature designed to separate the device control component from the module design.
MI_InitDevice, MI_ReadDevice MI_WriteDevice
MIDevice, MIDeviceReadFunction, MIDeviceWriteFunction
2007/05/09 Initial version.
CONFIDENTIAL