![]() |
![]() |
![]() |
libnm-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#define NM_DEVICE_WIMAX_HW_ADDRESS #define NM_DEVICE_WIMAX_ACTIVE_NSP #define NM_DEVICE_WIMAX_CENTER_FREQUENCY #define NM_DEVICE_WIMAX_RSSI #define NM_DEVICE_WIMAX_CINR #define NM_DEVICE_WIMAX_TX_POWER #define NM_DEVICE_WIMAX_BSID NMDeviceWimax; NMDeviceWimaxClass; GObject * nm_device_wimax_new (DBusGConnection *connection
,const char *path
); const char * nm_device_wimax_get_hw_address (NMDeviceWimax *wimax
); NMWimaxNsp * nm_device_wimax_get_active_nsp (NMDeviceWimax *wimax
); NMWimaxNsp * nm_device_wimax_get_nsp_by_path (NMDeviceWimax *wimax
,const char *path
); const GPtrArray * nm_device_wimax_get_nsps (NMDeviceWimax *wimax
); guint nm_device_wimax_get_center_frequency (NMDeviceWimax *self
); gint nm_device_wimax_get_rssi (NMDeviceWimax *self
); gint nm_device_wimax_get_cinr (NMDeviceWimax *self
); gint nm_device_wimax_get_tx_power (NMDeviceWimax *self
); const char * nm_device_wimax_get_bsid (NMDeviceWimax *self
);
"active-nsp" NMWimaxNsp* : Read "bsid" gchar* : Read "center-frequency" guint : Read "cinr" gint : Read "hw-address" gchar* : Read "rssi" gint : Read "tx-power" gint : Read
typedef struct { NMDeviceClass parent; /* Signals */ void (*nsp_added) (NMDeviceWimax *self, NMWimaxNsp *nsp); void (*nsp_removed) (NMDeviceWimax *self, NMWimaxNsp *nsp); } NMDeviceWimaxClass;
GObject * nm_device_wimax_new (DBusGConnection *connection
,const char *path
);
Creates a new NMDeviceWimax.
|
the DBusGConnection |
|
the D-Bus object path of the WiMAX device |
Returns : |
a new WiMAX device. [transfer full] |
const char * nm_device_wimax_get_hw_address (NMDeviceWimax *wimax
);
Gets the hardware (MAC) address of the NMDeviceWimax
|
a NMDeviceWimax |
Returns : |
the hardware address. This is the internal string used by the device, and must not be modified. |
NMWimaxNsp * nm_device_wimax_get_active_nsp (NMDeviceWimax *wimax
);
Gets the active NMWimaxNsp.
|
a NMDeviceWimax |
Returns : |
the access point or NULL if none is active. [transfer full]
|
NMWimaxNsp * nm_device_wimax_get_nsp_by_path (NMDeviceWimax *wimax
,const char *path
);
Gets a NMWimaxNsp by path.
|
a NMDeviceWimax |
|
the object path of the NSP |
Returns : |
the access point or NULL if none is found. [transfer none]
|
const GPtrArray * nm_device_wimax_get_nsps (NMDeviceWimax *wimax
);
Gets all the scanned NSPs of the NMDeviceWimax.
|
a NMDeviceWimax |
Returns : |
a GPtrArray containing all the scanned NMWimaxNsps. The returned array is owned by the client and should not be modified. [element-type NMClient.WimaxNsp] |
guint nm_device_wimax_get_center_frequency
(NMDeviceWimax *self
);
Gets the center frequency (in KHz) of the radio channel the device is using to communicate with the network when connected. Has no meaning when the device is not connected.
|
a NMDeviceWimax |
Returns : |
the center frequency in KHz, or 0 |
gint nm_device_wimax_get_rssi (NMDeviceWimax *self
);
Gets the RSSI of the current radio link in dBm. This value indicates how strong the raw received RF signal from the base station is, but does not indicate the overall quality of the radio link. Has no meaning when the device is not connected.
|
a NMDeviceWimax |
Returns : |
the RSSI in dBm, or 0 |
gint nm_device_wimax_get_cinr (NMDeviceWimax *self
);
Gets the CINR (Carrier to Interference + Noise Ratio) of the current radio link in dB. CINR is a more accurate measure of radio link quality. Has no meaning when the device is not connected.
|
a NMDeviceWimax |
Returns : |
the CINR in dB, or 0 |
gint nm_device_wimax_get_tx_power (NMDeviceWimax *self
);
Average power of the last burst transmitted by the device, in units of 0.5 dBm. i.e. a TxPower of -11 represents an actual device TX power of -5.5 dBm. Has no meaning when the device is not connected.
|
a NMDeviceWimax |
Returns : |
the TX power in dBm, or 0 |
const char * nm_device_wimax_get_bsid (NMDeviceWimax *self
);
Gets the ID of the serving Base Station when the device is connected.
|
a NMDeviceWimax |
Returns : |
the ID of the serving Base Station, or NULL |
"bsid"
property"bsid" gchar* : Read
The ID of the serving base station as received from the network. Has no meaning when the device is not connected.
Default value: NULL
"center-frequency"
property"center-frequency" guint : Read
The center frequency (in KHz) of the radio channel the device is using to communicate with the network when connected. Has no meaning when the device is not connected.
Default value: 0
"cinr"
property"cinr" gint : Read
CINR (Carrier to Interference + Noise Ratio) of the current radio link in dB. CINR is a more accurate measure of radio link quality. Has no meaning when the device is not connected.
Default value: 0
"hw-address"
property"hw-address" gchar* : Read
The hardware (MAC) address of the device.
Default value: NULL
"rssi"
property"rssi" gint : Read
RSSI of the current radio link in dBm. This value indicates how strong the raw received RF signal from the base station is, but does not indicate the overall quality of the radio link. Has no meaning when the device is not connected.
Default value: 0
"tx-power"
property"tx-power" gint : Read
Average power of the last burst transmitted by the device, in units of 0.5 dBm. i.e. a TxPower of -11 represents an actual device TX power of -5.5 dBm. Has no meaning when the device is not connected.
Default value: 0
"nsp-added"
signalvoid user_function (NMDeviceWimax *self,
GObject *nsp,
gpointer user_data) : Run First
Notifies that a NMWimaxNsp is added to the wimax device.
|
the wimax device that received the signal |
|
the new NSP |
|
user data set when the signal handler was connected. |
"nsp-removed"
signalvoid user_function (NMDeviceWimax *self,
GObject *nsp,
gpointer user_data) : Run First
Notifies that a NMWimaxNsp is removed from the wimax device.
|
the wimax device that received the signal |
|
the removed NSP |
|
user data set when the signal handler was connected. |