|
libmcm 1.4.0
A client library for Moxa Connection Management
|
#include <inttypes.h>#include <stdbool.h>Go to the source code of this file.
Classes | |
| struct | mcm_object_info |
| struct | mcm_property_info |
| struct | mcm_property_info_linked_list |
| struct | mcm_interface_info |
| struct | mcm_network_info |
| struct | mcm_network_status |
| struct | mcm_ethernet_info |
| struct | mcm_wifi_info |
| struct | mcm_modem_info |
| struct | mcm_wifi_ap |
| struct | mcm_profiles |
| struct | mcm_datausage_info |
| struct | mcm_diag_info |
| struct | mcm_upgrade_info |
Typedefs | |
| typedef struct mcm_object_info | mcm_object_info |
| typedef struct mcm_property_info | mcm_property_info |
| typedef struct mcm_property_info_linked_list | mcm_property_info_linked_list |
| typedef struct mcm_interface_info | mcm_interface_info |
| typedef struct mcm_network_info | mcm_network_info |
| typedef struct mcm_network_status | mcm_network_status |
| typedef struct mcm_ethernet_info | mcm_ethernet_info |
| typedef struct mcm_wifi_info | mcm_wifi_info |
| typedef struct mcm_modem_info | mcm_modem_info |
| typedef struct mcm_wifi_ap | mcm_wifi_ap |
| typedef struct mcm_profiles | mcm_profiles |
| typedef struct mcm_datausage_info | mcm_datausage_info |
| typedef struct mcm_diag_info | mcm_diag_info |
| typedef struct mcm_upgrade_info | mcm_upgrade_info |
Enumerations | |
| enum | MCM_ERROR_CODE { MCM_SUCCESS = 0 , MCM_GENERIC_ERR = 1 , MCM_ENOMEM = 2 , MCM_ENODEV = 3 , MCM_EINVAL = 4 } |
Functions | |
| struct mcm_property_info | __attribute__ ((packed)) |
| void | mcm_free_property_info (int arr_len, mcm_property_info *info) |
| A help function for properies array free. More... | |
| char * | mcm_get_error_message (int error_num) |
| A help function for propertyInfo_sub appended to propertyInfo. More... | |
Variables | |
| char * | propertyName |
| char * | propertyValue |
| struct mcm_property_info_linked_list * | next |
| char | interface_name [64] |
| char | device_name [16] |
| char | device_type [16] |
| bool | enabled |
| uint32_t | wan_priority |
| char | name [64] |
| char | network_ifname [16] |
| char | network_type [16] |
| char | ipv4_method [16] |
| char | ipv6_method [16] |
| char | mac_address [64] |
| char | err_reason [200] |
| bool | default_route |
| char | ipv4_address [16] |
| char | ipv4_netmask [16] |
| char | ipv4_gateway [16] |
| char | ipv4_dns [2][16] |
| char | ipv6_address [64] |
| char | ipv6_netmask [64] |
| char | ipv6_gateway [64] |
| char | ipv6_dns [2][64] |
| uint32_t | connection_status |
| bool | link_detected |
| uint32_t | link_speed |
| char | duplex [16] |
| bool | dhcp_server |
| char | bssid [32] |
| char | hwmode [16] |
| char | frequency [16] |
| char | operation_mode [16] |
| char | ssid [40] |
| char | secure_mode [16] |
| char | signal [16] |
| uint32_t | channel |
| bool | broadcast |
| char | cell_id [16] |
| char | device_imei [16] |
| char | network_rat [16] |
| char | operator[32] |
| char | sim_iccid [32] |
| char | sim_imsi [16] |
| char | apn [32] |
| char | taclac [16] |
| int32_t | pin_retries |
| uint32_t | signal_strength |
| uint32_t | sim_slot |
| int32_t | modem_state |
| char | modem_name [64] |
| char | modem_version [64] |
| int32_t | umts_rssi |
| int32_t | umts_ecio |
| int32_t | lte_rsrp |
| int32_t | lte_rssnr |
| int32_t | nr_rsrp |
| int32_t | nr_snr |
| char | encryption_type [32] |
| int32_t | rssi |
| char | profile_name [32] |
| uint32_t | tx |
| uint32_t | rx |
| uint32_t | diag_state |
| char | message [512] |
| uint32_t | state |
This library is for Moxa Connection Management
| enum MCM_ERROR_CODE |
| void mcm_free_property_info | ( | int | arr_len, |
| mcm_property_info * | info | ||
| ) |
A help function for properies array free.
| arr_len | (input) A number of properties array. |
| info | (input) A properies array being to free. |
| char * mcm_get_error_message | ( | int | error_num | ) |
A help function for propertyInfo_sub appended to propertyInfo.
| error_num | (input) A error number. |
| char apn[32] |
apn
| bool broadcast |
broadcast
| char bssid |
BSSID
bssid
| char cell_id[16] |
cell id
| uint32_t channel |
channel
| uint32_t connection_status |
connection status (Indexed by McmConnectionState)
| bool default_route |
default route
| char device_imei[16] |
device imei
| char device_name |
device name
| char device_type |
device type
| bool dhcp_server |
DHCP Server status
| uint32_t diag_state |
diag bitmask state
| char duplex[16] |
duplex
| bool enabled |
enabled
| char encryption_type[32] |
encryption type
| char err_reason[200] |
error reason
| char frequency |
is 2.4g/5g
freqency
| char hwmode[16] |
hwmode
| char interface_name[64] |
interface name
| char ipv4_address[16] |
ipv4 address
| char ipv4_dns[2][16] |
ipv4 DNS
| char ipv4_gateway[16] |
ipv4 gateway
| char ipv4_method[16] |
ipv4 method
| char ipv4_netmask[16] |
ipv4 netmask
| char ipv6_address[64] |
ipv6 address
| char ipv6_dns[2][64] |
ipv6 DNS
| char ipv6_gateway[64] |
ipv6 gateway
| char ipv6_method[16] |
ipv6 method
| char ipv6_netmask[64] |
ipv6 netmask
| bool link_detected |
link detected
| uint32_t link_speed |
link speed
| int32_t lte_rsrp |
4G RSRP
| int32_t lte_rssnr |
4G RSSNR
| char mac_address[64] |
mac address
| char message |
diag message
upgrade message
| char modem_name[64] |
modem name
| int32_t modem_state |
modem state (Indexed by McmModemState)
| char modem_version[64] |
modem FWR version
| char name[64] |
name
| char network_ifname[16] |
network ifname
| char network_rat[16] |
network rat
| char network_type[16] |
network type
| struct mcm_property_info_linked_list* next |
linked-list
| int32_t nr_rsrp |
5G RSRP
| int32_t nr_snr |
5G SNR
| char operation_mode[16] |
operation mode
| char operator[32] |
operator
| int32_t pin_retries |
pin retries
| char profile_name[32] |
profile name
| char * propertyName |
property name
| char * propertyValue |
property value
| int32_t rssi |
rssi
| uint32_t rx |
RX Bytes
| char secure_mode[16] |
scure mode
| char signal[16] |
signal
| uint32_t signal_strength |
signal strength
| char sim_iccid[32] |
sim iccid
| char sim_imsi[16] |
sim imsi
| uint32_t sim_slot |
sim slot
| char ssid |
SSID
ssid
| uint32_t state |
upgrade bitmask state
| char taclac[16] |
taclac
| uint32_t tx |
TX Bytes
| int32_t umts_ecio |
3G RSRP
| int32_t umts_rssi |
3G RSSI
| uint32_t wan_priority |
wan priority