Function Initial8073
Description This function initial the MMC(MultiMediaCard)and I/O function to I-8142 in the specified slot of the I-8000 system.
This function is used for C/C++ compiler.
Function Prototype int Initial8073(int slot,long *BlockNumber,long *MemorySize,int mode);
int Function return
0: no error
1: MMC initial fail,NO MMC
The DIO and AD are still available
slot Specified slot of the I-8000 system
Range from 0 to 3 for 4 slot
Range from 0 to 7 for 8 slot
BlockNumber Total block,one block equal to 512 byte
MemorySize Total memory size in byte
Mode Select analog input mode and load AD calibration:
0 : -5V to 5V
1 : 0V to 5V
Example
Function status = Initial8073(0,&BN,&MS,0)
Return status
Description The example initial the MMC and I/O function and select analog input range ( -5V to 5V ) ,if success will return Block number and Memory size
Reference Initial8073
MMC_WRITE_BLOCK
MMC_READ_BLOCK
GetAngIn
GetDI
SetDO
EE_WriteEnable_8073
EE_WriteProtect_8073
EE_MultiRead_8073
EE_MultiWrite_8073
Read_AD_CalibraionGain
Read_AD_CalibraionOffset
Write_AD_CalibraionGain
Write_AD_CalibraionOffset
Modules I-8073



Back to Previous Page