15 mmuxinit, 16 mmuxrelease, 17 mmuxgetver – IEI Integration HDC-502E_SDK_Linux User Manual

Page 26

Advertising
background image

HDC-502E SDK (Linux)

Page 26

Return Value: 0: function succeeded, other values: function failed

2.3.15 MmuxInit

Description: initialize the CPLD to control handle

Prototype: MmuxHandle MmuxInit(int deviceNum)

Parameters: deviceNum: request to initialize the version of card number and strat from 0

Return Value: MmuxHandle

2.3.16 MmuxRelease

Description: release CPLD and control handle

Prototype: void MmuxRelease(MmuxHandle hdMmux)

Parameters: hdMmux: get handle when MmuxInit executes

Return Value: None

2.3.17 MmuxGetVer

Description: get the current version of CPLD, FPGA and driver

Prototype: int MmuxGetVer(MmuxHandle hdMmux, struct MmuxVer *p_Ver)

struct MmuxVer {

unsigned

long

CPLD;

unsigned

long

FPGA;

char

driver[MMUX_VER_LEN];

};

Parameters: hdMmux: handle obtained when MmuxInit executes, p_Ver: the structure

indicator of stored information

Return Value: 0: get version successfully, the other value failed

Advertising