misc- Miscellaneous Features
2023-08-31
Module feature: shutdown, software restart, PWM and ADC.
Diversity Antenna Configuration Interface
misc.antennaSecRXOffCtrl
misc.antennaSecRXOffCtrl(*args)
Configures and queries the diversity antennas. (EC200A series module supports this interface).
Parameter:
It is a variable parameter:
When the number of parameter is 0, query through: misc.antennaSecRXOffCtrl();
When the number of parameter is 1, set through: misc.antennaSecRXOffCtrl(SecRXOff_set).
SecRXOff_set
- Integer type. Range: 0/1.0
: Do not close diversity antennas1
: Close diversity antennas.
Return Value:
Query: If successful, it returns the diversity antenna configuration. If failed, it returns integer -1
;
Set: If successful, it returns integer 0
; If failed, it returns integer -1
.
Example:
import misc
misc.antennaSecRXOffCtrl()
0
misc.antennaSecRXOffCtrl(1)
0
misc.antennaSecRXOffCtrl()
1
Classes
- class PowerKey – PowerKey Callback Registration
- class PWM – Pulse Width Modulation
- class ADC - Analog-to-digital Conversion
- class USB– USB Plug-in Detection