Moxa V2201-E2-T [18/21] Api functions

Moxa V2201-E2-T [18/21] Api functions
Moxa Proactive Monitoring Moxa Proactive Monitoring API
2-2
API Functions
Function int get_average_cpu_usage(double *value)
Description Obtain the average CPU utilization of the system.
Input <value> The variable used to save the average CPU utilization of the system.
Output
<value> The CPU utilization of the system.
Return Refer to the return value table.
Function int get_cpu_count(int *value)
Description Obtain the number of CPU cores in the system.
Input <value> The variable used to save the number of CPU cores.
Output <value> The number of CPU cores.
Return Refer to the return value table.
Function int get_cpu_usage(int index, double *value)
Description Obtain the specified CPU core utilization.
Input <index> CPU number (0, 1, 2, 3 ...)
<value> The variable used to save the CPU core utilization.
Output <value> The specified CPU core utilization.
Return Refer to the return value table.
Function int get_mem_total_size(double *value)
Description Obtain the system’s total memory size.
Input <value> The variable used to save the total memory size.
Output <value> The system’s total memory size.
Return Refer to the return value table.
Function int get_mem_usage(int *value)
Description Obtain the memory utilization of the system.
Input <value> The variable used to save the memory utilization.
Output
<value> The memory utilization.
Return Refer to the return value table.
Function int get_mem_avail_size(double *value)
Description Obtain the available memory size in the system.
Input <value> The variable used to save the available memory size.
Output <value> The available memory size.
Return Refer to the return value table.
Function int get_uart_count(int *value)
Description Obtain the number of UART in the system.
Input <value> The variable used to save the number of UARTs.
Output <value> The number of UARTs.
Return Refer to the return value table.
Function int get_uart_status(int index, int *value)
Description Obtain the specified UART status. (0) UART port is free, (1) in use
Input <index> UART port (0, 1, 2 …)
<value> The variable used to save the specified UART status.
Output <value> The specified UART status. (0) UART port is free, (1) in use
Return Refer to the return value table.

Содержание

Похожие устройства

Скачать