Function Initial8073
Description This function initials 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 unsigned int Initial8073(int slot, unsigned long *BlockNumber,
unsigned long *MemorySize, int mode);

unsigned 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 initials the MMC and I/O function and selects analog input range ( -5V to 5V ) ,if success the status is 0, block number and memory size are returnned.
Modules I-8073

Reference
Initial8073
Initial8073_MMC
MMC_WRITE_BLOCK
MMC_READ_BLOCK
EE_WriteEnable_8073
EE_WriteProtect_8073
EE_MultiRead_8073
EE_MultiWrite_8073
EE_RandomRead_8073
EE_RandomWrite_8073
EE_ReadNext_8073
SetDO
GetDI
AnalogIn
GetAngIn
Read_AD_CalibraionGain
Read_AD_CalibraionOffset
Write_AD_CalibraionGain
Write_AD_CalibraionOffset



Back to Previous Page