<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="NMSerialDevice">
<refmeta>
<refentrytitle role="top_of_page">NMSerialDevice</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBNM-GLIB Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>NMSerialDevice</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>



                    <link linkend="NMSerialDevice-struct">NMSerialDevice</link>;
<link linkend="guint32">guint32</link>             <link linkend="nm-serial-device-get-bytes-received">nm_serial_device_get_bytes_received</link> (<link linkend="NMSerialDevice">NMSerialDevice</link> *self);
<link linkend="guint32">guint32</link>             <link linkend="nm-serial-device-get-bytes-sent">nm_serial_device_get_bytes_sent</link>     (<link linkend="NMSerialDevice">NMSerialDevice</link> *self);

</synopsis>
</refsynopsisdiv>

<refsect1 role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="NMObject">NMObject</link>
         +----<link linkend="NMDevice">NMDevice</link>
               +----NMSerialDevice
                     +----<link linkend="NMGsmDevice">NMGsmDevice</link>
                     +----<link linkend="NMCdmaDevice">NMCdmaDevice</link>
</synopsis>

</refsect1>






<refsect1 role="signal_proto">
<title role="signal_proto.title">Signals</title>
<synopsis>

  &quot;<link linkend="NMSerialDevice-ppp-stats">ppp-stats</link>&quot;                                      : Run First
</synopsis>
</refsect1>


<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="NMSerialDevice-struct" role="struct"/>NMSerialDevice</title>
<indexterm><primary>NMSerialDevice</primary></indexterm><programlisting>typedef struct _NMSerialDevice NMSerialDevice;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="nm-serial-device-get-bytes-received" role="function"/>nm_serial_device_get_bytes_received ()</title>
<indexterm><primary>nm_serial_device_get_bytes_received</primary></indexterm><programlisting><link linkend="guint32">guint32</link>             nm_serial_device_get_bytes_received (<link linkend="NMSerialDevice">NMSerialDevice</link> *self);</programlisting>
<para>
Gets the amount of bytes received by the serial device.
This counter is reset when the device is activated.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>self</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="NMSerialDevice"><type>NMSerialDevice</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> bytes received
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="nm-serial-device-get-bytes-sent" role="function"/>nm_serial_device_get_bytes_sent ()</title>
<indexterm><primary>nm_serial_device_get_bytes_sent</primary></indexterm><programlisting><link linkend="guint32">guint32</link>             nm_serial_device_get_bytes_sent     (<link linkend="NMSerialDevice">NMSerialDevice</link> *self);</programlisting>
<para>
Gets the amount of bytes sent by the serial device.
This counter is reset when the device is activated.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>self</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="NMSerialDevice"><type>NMSerialDevice</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> bytes sent
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>

<refsect1 role="signals">
<title role="signals.title">Signal Details</title>
<refsect2><title><anchor id="NMSerialDevice-ppp-stats"/>The <literal>&quot;ppp-stats&quot;</literal> signal</title>
<indexterm><primary>NMSerialDevice::ppp-stats</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="NMSerialDevice">NMSerialDevice</link> *device,
                                                        <link linkend="guint">guint</link>           in_bytes,
                                                        <link linkend="guint">guint</link>           out_bytes,
                                                        <link linkend="gpointer">gpointer</link>        user_data)      : Run First</programlisting>
<para>
Notifies that a <link linkend="NMAccessPoint"><type>NMAccessPoint</type></link> is added to the wifi device.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>device</parameter>&nbsp;:</term>
<listitem><simpara> the serial device that received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>in_bytes</parameter>&nbsp;:</term>
<listitem><simpara> the amount of bytes received
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>out_bytes</parameter>&nbsp;:</term>
<listitem><simpara> the amount of bytes sent
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>




<refsect1><refsect2 /><refsect2 /></refsect1>
</refentry>
