MX Foundation 4

Functions

uint32 mxfDeviceFileUpload (HMXF_DEVICE device, uint64 type, const char *name)
 
uint32 mxfStandAloneFileGenerate (const char *app, const char *trapHandlers, uint64 fileNum, const char **files, const char *name)
 
uint32 mxfStandAloneOptionSet (HMXF_DEVICE device, uint64 options)
 
uint32 mxfDeviceInfoGet (HMXF_DEVICE device, MXF_DEVICE_INFO *info)
 
uint32 mxfDeviceFlashInfoRead (HMXF_DEVICE device, int64 index, MXF_FLASH_INFO *info)
 
uint32 mxfDeviceBuffersFree (HMXF_DEVICE device)
 
uint32 mxfDeviceLocationGet (HMXF_DEVICE device, uint64 *index)
 
uint32 mxfDeviceIpAddressSet (HMXF_DEVICE device, const char *ipAddress, const char *ipNetMask)
 
uint32 mxfDeviceIpAddressGet (HMXF_DEVICE device, uint64 ipAddressSize, uint64 ipNetMaskSize, char *ipAddress, char *ipNetMask)
 
uint32 mxfDeviceLedSet (HMXF_DEVICE device, uint64 mask, uint64 state)
 
uint32 mxfDeviceLedGet (HMXF_DEVICE device, uint64 *mask, uint64 *state)
 
uint32 mxfSensorsCountGet (HMXF_HANDLE handle, uint64 *count)
 
uint32 mxfSensorsRead (HMXF_HANDLE handle, uint64 id, double *value)
 
uint32 mxfSensorsReadAll (HMXF_HANDLE handle, uint64 maxCount, uint64 *count, MXF_SENSOR_VALUE *value)
 
uint32 mxfSensorsInfoGet (HMXF_HANDLE handle, uint64 id, MXF_SENSOR_INFO *info)
 
uint32 mxfDeviceStatisticsErrorDetailsGet (HMXF_DEVICE device, MXF_DEVICE_STAT_ERROR_DETAILS *stats)
 
uint32 mxfDeviceStatisticsResourcesGet (HMXF_DEVICE device, MXF_DEVICE_STAT_RESOURCES *stats)
 
uint32 mxfDeviceStatisticReset (HMXF_DEVICE device, uint64 options)
 

Detailed Description

Function Documentation

uint32 mxfDeviceFileUpload ( HMXF_DEVICE  device,
uint64  type,
const char *  name 
)
C#
public static extern UInt32 mxfDeviceFileUpload(UInt64 device, UInt64 type, string name);

Uploads a file or an user application on specified device.

If an application is uploaded, it will also be launched. The application must be compiled to run in embedded environment. Once embedded application is started, most of MX Foundation function calls from the host are not allowed. Some functions are still allowed and can be used to exchange information with embedded application. mxfDeviceCommBufferWrite() and mxfDeviceCommBufferRead() are example of allowed functions.

Only one embedded application can be started and running on the device.

Asynchronous event handler must be detached from host application before calling mxfDeviceFileUpload() for an application. Asynchronous event handler can be attached when an embedded application is running, but only these asynchronous event conditions are supported when an embedded application is started:

When the embedded application terminates, the library must be unloaded and reloaded (with mxfSystemInit() or mxfSystemResourcesRelease() followed by mxfSystemResourcesInit()) for host application to continue. Handles obtained before that are now invalid and must be obtained again.

Parameters
[in]devicedevice handle
[in]type
Constant Description
MXF_DEVICE_FILETYPE_FILE Uploads a file.
MXF_FILETYPE_APPLICATION Uploads an application and launches it. This type is not available for device in Ethernet or USB mode.
[in]namecomplete filename (with path) to the file or application to upload.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSystemDeviceAllGet()
Examples:
ar429_comm_queues.c, ar429_comm_queues.cs, mil1553_embedded_async_to_1553.c, mil1553_embedded_async_to_1553.cs, mil1553_embedded_update_host.c, and mil1553_embedded_update_host.cs.
uint32 mxfStandAloneFileGenerate ( const char *  app,
const char *  trapHandlers,
uint64  fileNum,
const char **  files,
const char *  name 
)
C#
public static extern UInt32 mxfStandAloneFileGenerate(string app, string trapHandlers, UInt64 fileNum, IntPtr[] files, string name);

public static extern UInt32 mxfStandAloneFileGenerate(IntPtr app, IntPtr trapHandlers, UInt64 fileNum, IntPtr[] files, string name);

Generates the necessary package for an auto-run application. This package can then be uploaded to the device nor-flash by using deviceprog utility. This function can also be used to generate the package to update MXF Server configuration and password files.

Parameters
[in]appcomplete filename (with path) to embedded linux auto-run application (.mxf file). Optional, can be NULL if no application is wanted in the package.
[in]trapHandlerscomplete filename (with path) to MX-Embedded trap handler application (.trap file). Optional, can be NULL if no application is wanted in the package.
[in]fileNumnumber of user files
[in]filescomplete filename (with path) to user files (optional, NULL if not used).
[in]namecomplete filename (with path) to auto-run package to generate.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
deviceprog
uint32 mxfStandAloneOptionSet ( HMXF_DEVICE  device,
uint64  options 
)
C#
public static extern UInt32 mxfStandAloneOptionSet(UInt64 device, UInt64 options);

Sets the options for stand-alone operation of the devive.

Parameters
[in]devicedevice handle.
[in]optionsstand-alone options.
Options Meaning
MXF_STANDALONE_OPT_AUTOSTART The device will automatically start the application at boot-up when a stand-alone package has been flashed.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.5.0 and later.
See also
mxfStandAloneFileGenerate
uint32 mxfDeviceInfoGet ( HMXF_DEVICE  device,
MXF_DEVICE_INFO info 
)
C#
public static extern UInt32 mxfDeviceInfoGet(UInt64 device, out MXF_DEVICE_INFO info);

Gets information of the specified device. This function can be called before the initialization of MX Foundation.

This function can be called from within the initialization callback handler. In this case, MXF_DEVICE_INFO.modules array will contain MXF_DEVICE_INFO.moduleCount modules, but they will be returned at the index of the physical module index, not logical index. Iteration on MXF_DEVICE_INFO.moduleCount will not be sufficient because some indexes can hold no modules, in that case the module type will be 0. This is done this way so that the moduleIndex parameter of the initialization callback handler can be used to directly index MXF_DEVICE_INFO.modules array.

Parameters
[in]deviceDevice handle
[out]infoInformation
Returns
MAXT_SUCCESS is returned when the function has succeeded. Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSystemDeviceGet
Examples:
ar717.c, ar717.cs, ar717_advance.c, ar717_advance.cs, ar717_bridge_from_ar429.c, ar717_bridge_from_ar429.cs, ar717_buffer_threshold.c, ar717_buffer_threshold.cs, ar717_embedded_recorder.c, ar717_embedded_recorder.cs, ar717_rx_acquisition_trigger.c, ar717_rx_acquisition_trigger.cs, async_flow_control_hw.c, async_flow_control_hw.cs, async_flow_control_sw.c, async_flow_control_sw.cs, csdb_aperiodic.c, csdb_aperiodic.cs, csdb_buffer_threshold.c, csdb_buffer_threshold.cs, csdb_rx_acquisition_trigger.c, csdb_rx_acquisition_trigger.cs, csdb_rx_event_handler.c, csdb_rx_event_handler.cs, csdb_rx_sampling.c, csdb_rx_sampling.cs, device_info.c, device_info.cs, discrete_Multi.c, discrete_Multi.cs, hdlc.c, hdlc.cs, hdlc_aperiodic.c, hdlc_aperiodic.cs, hdlc_buffer_threshold.c, hdlc_buffer_threshold.cs, hdlc_trigger.c, hdlc_trigger.cs, hdlc_tx_error_injection.c, hdlc_tx_error_injection.cs, multi.c, multi.cs, pulse.c, write_read_async.c, and write_read_async.cs.
uint32 mxfDeviceFlashInfoRead ( HMXF_DEVICE  device,
int64  index,
MXF_FLASH_INFO info 
)
C#
public static extern UInt32 mxfDeviceFlashInfoRead(UInt64 device, Int64 index, out MXF_FLASH_INFO info);

Reads the flash information of a specified device or module.

Parameters
[in]deviceDevice handle
[in]indexModule index (-1 to get info of the device)
[out]infoFlash information
Returns
MAXT_SUCCESS is returned when the function has succeeded. Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSystemDeviceGet
Examples:
device_info.c, and device_info.cs.
uint32 mxfDeviceBuffersFree ( HMXF_DEVICE  device)
C#
public static extern UInt32 mxfDeviceBuffersFree(UInt64 device);

Frees all the buffers allocated on the device.

Parameters
[in]devicedevice handle

Before calling this function, all services must be stopped and all buffers empty.

Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxAcqBufferAlloc()
mxfRxSamplingBufferAlloc()
mxfTxAperiodicBufferAlloc()
mxfEmbeddedRxBufferAlloc()
mxfEmbeddedTxBufferAlloc()
mxfDeviceCommBufferAlloc()
mxfTxPeriodicUpdateMsgBufferAlloc()
Examples:
ar429_comm_queues.c, ar429_comm_queues.cs, ar429_embedded_comm_queues.c, ar629_alternate.c, ar629_alternate.cs, ar629_independent_mode.c, ar629_independent_mode.cs, async_flow_control_sw.c, csdb_rx_acquisition_trigger.c, csdb_rx_acquisition_trigger.cs, ipm_async_rs485_9bit.c, mil1553_aperiodic.c, mil1553_aperiodic.cs, mil1553_embedded_async_to_1553.c, mil1553_embedded_async_to_1553.cs, mil1553_embedded_update_embedded.c, usb.c, and usb.cs.
uint32 mxfDeviceLocationGet ( HMXF_DEVICE  device,
uint64 *  index 
)
C#
public static extern UInt32 mxfDeviceLocationGet(UInt64 device, out UInt64 index);

Returns the device logical position.

Parameters
[in]devicedevice handle
[out]indexlogical location index for the device
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSystemDeviceAllGet()
uint32 mxfDeviceIpAddressSet ( HMXF_DEVICE  device,
const char *  ipAddress,
const char *  ipNetMask 
)
C#
public static extern UInt32 mxfDeviceIpAddressSet(UInt64 device, string ipAddress, string ipNetMask);

Changes the IP address (IPv4) and netmask of the specified device. This change is valid until next reset of the device when the values programmed on the device will be reloaded. To change permanently the boot default value you must use flex_change_ip utility.

Parameters
[in]devicedevice handle
[in]ipAddressNetwork address in dot-decimal notation (ex: “192.168.0.1”)
[in]ipNetMaskNetwork mask in dot-decimal notation (ex: “255.255.255.0”)
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfDeviceIpAddressGet()
uint32 mxfDeviceIpAddressGet ( HMXF_DEVICE  device,
uint64  ipAddressSize,
uint64  ipNetMaskSize,
char *  ipAddress,
char *  ipNetMask 
)
C#
public static extern UInt32 mxfDeviceIpAddressGet(UInt64 device, UInt64 ipAddressSize, UInt64 ipNetMaskSize, StringBuilder ipAddress, StringBuilder ipNetMask);

Returns the actual IP address (IPv4) and netmask of the specified device.

Parameters
[in]devicedevice handle
[in]ipAddressSizesize of the network address return buffer (minimum 15)
[in]ipNetMaskSizesize of the network mask return buffer (minimum 15)
[out]ipAddresspointer to network address return buffer. IP address is in dot-decimal notation (ex: “192.168.0.1”)
[out]ipNetMaskpointer to network mask return buffer. Netmask is in dot-decimal notation (ex: “255.255.255.0”)
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfDeviceIpAddressSet()
uint32 mxfDeviceLedSet ( HMXF_DEVICE  device,
uint64  mask,
uint64  state 
)
C#
public static extern UInt32 mxfDeviceLedSet(UInt64 device, UInt64 mask, UInt64 state);

Sets the user LEDs state.

Parameters
[in]devicedevice handle
[in]maskLED mask bitmap
[in]stateLED state for the bimap mask; (0: LED OFF, 1: LED ON).

For instance, if the mask is 0x3 and the stateMask is 0x1, then LED #0 will turn ON, LED #1 will turn OFF and the others will not change.

Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfDeviceLedGet()
Examples:
discrete_fifo.c, discrete_fifo.cs, and flexdio_fifo.c.
uint32 mxfDeviceLedGet ( HMXF_DEVICE  device,
uint64 *  mask,
uint64 *  state 
)
C#
public static extern UInt32 mxfDeviceLedGet(UInt64 device, out UInt64 mask, out UInt64 state);

Returns the current state of user LEDs on the device.

Parameters
[in]devicedevice handle
[out]maskpointer to LED mask bitmap variable (1: LED available, 0: No LED)
[out]stateLED state for the bimap mask; (0: LED OFF, 1: LED ON).
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfDeviceLedSet()
uint32 mxfSensorsCountGet ( HMXF_HANDLE  handle,
uint64 *  count 
)
C#
public static extern UInt32 mxfSensorsCountGet(UInt64 handle, out UInt64 count);

Returns the number of sensors on the device. This function can be called with a device handle before the initialization of MX Foundation.

Parameters
[in]handledevice or module handle
[out]countpointer to the count variable
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSensorsRead()
mxfSensorsReadAll()
uint32 mxfSensorsRead ( HMXF_HANDLE  handle,
uint64  id,
double *  value 
)
C#
public static extern UInt32 mxfSensorsRead(UInt64 handle, UInt64 id, out double value);

Returns specific sensor value based on the id. This function can be called with a device handle before the initialization of MX Foundation.

Parameters
[in]handledevice or module handle
[in]idsensor identification
Sensor ID Description Note
MXF_DEVICE_SENSOR_ID_FPGA_TEMP FPGA Temperature (°C) All Flex devices. Use device handle.
MXF_DEVICE_SENSOR_ID_CPU_TEMP CPU Temperature (°C) All FlexMulti and Flex1553 devices. Use device handle.
MXF_DEVICE_SENSOR_ID_3_3V_VOLTAGE +3.3 V voltage (V) All FlexMulti, Flex1553 and PMC/XMC devices. Use device handle.
MXF_DEVICE_SENSOR_ID_3_3V_CURRENT +3.3 V current (A) All FlexMulti, Flex1553 and PMC/XMC devices. Use device handle.
MXF_DEVICE_SENSOR_ID_12V_VOLTAGE +12 V voltage (V) All Flex and PMC/XMC devices. Use device handle.
MXF_DEVICE_SENSOR_ID_12V_CURRENT +12 V current (A) All Flex and PMC/XMC devices. Use device handle.
MXF_DEVICE_SENSOR_ID_5V_VOLTAGE +5 V voltage (V) All FlexMulti family and PMC/XMC devices. Use device handle.
MXF_DEVICE_SENSOR_ID_5V_CURRENT +5 V current (A) All FlexMulti family and PMC/XMC devices. Use device handle.
MXF_DEVICE_SENSOR_ID_3_3V_SWITCHERS_VOLTAGE +3.3 V switchers voltage (V) FlexMulti 629 and FlexMulti 1553 devices. Use device handle.
MXF_DEVICE_SENSOR_ID_3_3V_SWITCHERS_CURRENT +3.3 V switchers current (A) FlexMulti 629 and FlexMulti 1553 devices. Use device handle.
MXF_MODULE_SENSOR_ID_MULTI_UST0_3_TEMP MULTI UST 0-3 Temperature (°C) All FlexMulti family devices. Use device handle.
IPM-MULTI. Use module handle.
MXF_MODULE_SENSOR_ID_MULTI_UST4_7_TEMP MULTI UST 4-7 Temperature (°C) All FlexMulti family devices. Use device handle.
IPM-MULTI. Use module handle.
MXF_DEVICE_SENSOR_ID_2_5V_VOLTAGE +2.5 V voltage (V) FlexMulti 664, FlexMulti 429 and FlexMulti. Use device handle.
MXF_DEVICE_SENSOR_ID_2_5V_CURRENT +2.5 V current (A) FlexMulti 664, FlexMulti 429 and FlexMulti. Use device handle.
MXF_DEVICE_SENSOR_ID_POWER_TEMP Temperature power section (°C) 500 series. Use device handle.
MXF_DEVICE_SENSOR_ID_PARAMETRIC_TEMP Temperature parametric section (°C) FlexMobile 429+. Use device handle.
MXF_DEVICE_SENSOR_ID_AVIONICS_TEMP Temperature avionics section (°C) PMC/XMC. Use device handle.
MXF_MODULE_SENSOR_ID_TEMP Temperature (°C) FlexMAX modules. Use module handle.
MXF_DEVICE_SENSOR_ID_12V_MODULE_VOLTAGE +12 V module voltage (V) FlexMAX. Use device handle.
MXF_DEVICE_SENSOR_ID_12V_MODULE_CURRENT +12 V module current (A) FlexMAX. Use device handle.
MXF_MODULE_SENSOR_ID_TEMP_IO Temperature IO section (°C) All FlexMAX modules except FlexDIO. Use module handle.
Parameters
[out]valuesensor value returned
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSensorsCountGet()
mxfSensorsReadAll()
mxfSensorsInfoGet()
uint32 mxfSensorsReadAll ( HMXF_HANDLE  handle,
uint64  maxCount,
uint64 *  count,
MXF_SENSOR_VALUE value 
)
C#
public static extern UInt32 mxfSensorsReadAll(UInt64 handle, UInt64 maxCount, out UInt64 count, [Out] MXF_SENSOR_VALUE[] value);

Returns the value of all hardware sensors for the specified device. This function can be called with a device handle before the initialization of MX Foundation.

Parameters
[in]handledevice or module handle
[in]maxCountmaximum number of sensor values to read
[out]countnumber of sensors variable returned
[out]valueArray of sensor values
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSensorsRead()
mxfSensorsCountGet()
mxfSensorsInfoGet()
Examples:
device_info.c, and device_info.cs.
uint32 mxfSensorsInfoGet ( HMXF_HANDLE  handle,
uint64  id,
MXF_SENSOR_INFO info 
)
C#
public static extern UInt32 mxfSensorsInfoGet(UInt64 handle, UInt64 id, out MXF_SENSOR_INFO info);

Returns information on the sensor specified by id. This function can be called with a device handle before the initialization of MX Foundation.

Parameters
[in]handledevice or module handle
[in]idsensor id
Sensor ID Description Unit Minimum Maximum Note
MXF_DEVICE_SENSOR_ID_FPGA_TEMP FPGA Temperature °C 0 85 All FlexMulti and Flex1553 devices. Use device handle.
MXF_DEVICE_SENSOR_ID_CPU_TEMP CPU Temperature °C 0 85 All FlexMulti and Flex1553 devices. Use device handle.
MXF_DEVICE_SENSOR_ID_3_3V_VOLTAGE +3.3 V voltage V 3.1 3.4 All FlexMulti and Flex1553 devices. Use device handle.
MXF_DEVICE_SENSOR_ID_3_3V_CURRENT +3.3 V current A 0 3.1 All FlexMulti and Flex1553 devices. Use device handle.
MXF_DEVICE_SENSOR_ID_12V_VOLTAGE +12 V voltage V 11.8 12.1 All Flex devices. Use device handle.
MXF_DEVICE_SENSOR_ID_12V_CURRENT +12 V current A 0 5.5 All Flex devices. Use device handle.
MXF_DEVICE_SENSOR_ID_5V_VOLTAGE +5 V voltage V 4.8 5.2 All FlexMulti family devices. Use device handle.
MXF_DEVICE_SENSOR_ID_5V_CURRENT +5 V current A 0 2.5 All FlexMulti family devices. Use device handle.
MXF_DEVICE_SENSOR_ID_3_3V_SWITCHERS_VOLTAGE +3.3 V switchers voltage V 3.1 3.4 FlexMulti 629 and FlexMulti 1553 devices. Use device handle.
MXF_DEVICE_SENSOR_ID_3_3V_SWITCHERS_CURRENT +3.3 V switchers current A 0 4.0 FlexMulti 629 and FlexMulti 1553 devices. Use device handle.
MXF_MODULE_SENSOR_ID_MULTI_UST0_3_TEMP MULTI UST 0-3 Temperature °C 0 115 All FlexMulti family devices. Use device handle.
IPM-MULTI. Use module handle.
MXF_MODULE_SENSOR_ID_MULTI_UST4_7_TEMP MULTI UST 4-7 Temperature °C 0 115 All FlexMulti family devices. Use device handle.
IPM-MULTI. Use module handle.
MXF_DEVICE_SENSOR_ID_2_5V_VOLTAGE +2.5 V voltage (V) V 2.4 2.6 FlexMulti 664, FlexMulti 429 and FlexMulti. Use device handle.
MXF_DEVICE_SENSOR_ID_2_5V_CURRENT +2.5 V current (A) A 0 1.5 FlexMulti 664, FlexMulti 429 and FlexMulti. Use device handle.
MXF_DEVICE_SENSOR_ID_POWER_TEMP Temperature power section °C 20 85 500 series. Use device handle.
MXF_DEVICE_SENSOR_ID_PARAMETRIC_TEMP Temperature parametric section °C 20 115 FlexMobile 429+. Use device handle.
MXF_DEVICE_SENSOR_ID_AVIONICS_TEMP Temperature avionics section °C 20 85 PMC/XMC. Use device handle.
MXF_MODULE_SENSOR_ID_TEMP Temperature °C 10 70 FlexMAX modules. Use module handle.
MXF_DEVICE_SENSOR_ID_12V_MODULE_VOLTAGE +12 V module voltage V 11.8 12.1 FlexMAX. Use device handle.
MXF_DEVICE_SENSOR_ID_12V_MODULE_CURRENT +12 V module current A 0 6 FlexMAX. Use device handle.
MXF_MODULE_SENSOR_ID_TEMP_IO Temperature IO section °C 0 85 All FlexMAX modules except FlexDIO. Use module handle.
Parameters
[out]infosensor info
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSensorsRead()
mxfSensorsReadAll()
mxfSensorsCountGet()
Examples:
device_info.c, and device_info.cs.
uint32 mxfDeviceStatisticsErrorDetailsGet ( HMXF_DEVICE  device,
MXF_DEVICE_STAT_ERROR_DETAILS stats 
)
C#
public static extern UInt32 mxfDeviceStatisticsErrorDetailsGet(UInt64 device, out MXF_DEVICE_STAT_ERROR_DETAILS stats);

Returns the error statistics for the specified device.

Parameters
[in]devicedevice handle
[out]statsreturned device error statistics
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSystemDeviceAllGet()
mxfDeviceStatisticsResourcesGet()
mxfDeviceStatisticReset()
uint32 mxfDeviceStatisticsResourcesGet ( HMXF_DEVICE  device,
MXF_DEVICE_STAT_RESOURCES stats 
)
C#
public static extern UInt32 mxfDeviceStatisticsResourcesGet(UInt64 device, out MXF_DEVICE_STAT_RESOURCES stats);

Returns the resources statistics for the specified device.

Parameters
[in]devicedevice handle
[out]statsreturned device resources statistics
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSystemDeviceAllGet()
mxfDeviceStatisticsErrorDetailsGet()
mxfDeviceStatisticReset()
uint32 mxfDeviceStatisticReset ( HMXF_DEVICE  device,
uint64  options 
)
C#
public static extern UInt32 mxfDeviceStatisticReset(UInt64 device, UInt64 options);

Resets all error statistics.

Parameters
[in]devicedevice handle
[in]optionsReserved for future use. Must be set to 0.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfSystemDeviceAllGet()
mxfDeviceStatisticsErrorDetailsGet()
Updated 10/23/2023