pub enum PowerSavingMode {
Disabled,
Enabled,
CtrlByRts,
CtrlByDtr,
}
Disabled: (default and factory-programmed value)
Enabled:
The UART is re-enabled from time to time to allow the DTE to transmit, and
the module switches from idle to active mode in a cyclic way. If during the
active mode any data is received, the UART (and the module) is forced to stay
“awake” for a time specified by the parameter. Any subsequent data
reception during the “awake” period resets and restarts the “awake” timer
Power saving is controlled by UART RTS line:
o If the RTS line state is set to OFF, the power saving mode is allowed
o If the RTS line state is set to ON, the module shall exit from power saving mode
=2 is allowed only if the HW flow control has been previously disabled
on the UART interface (e.g. with AT&K0), otherwise the command returns an
error result code (+CME ERROR: operation not allowed if +CMEE is set to 2).
With =2 the DTE can start sending data to the module without risk of
data loss after having asserted the UART RTS line (RTS line set to ON state).
Power saving is controlled by UART DTR line:
If the DTR line state is set to OFF, the power saving mode is allowed
If the DTR line state is set to ON, the module shall exit from power saving mode
=3 is allowed regardless the flow control setting on the UART
interface. In particular, the HW flow control can be set on UART during this
mode.
With =3 the DTE can start sending data to the module without risk of
data loss after having asserted the UART DTR line (DTR line set to ON state).
Performs copy-assignment from source
. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Serialize this value into the given Serde serializer. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.