RNS::RNodeSubInterface
Inherits RNS::Interface < Reference < Object
Individual virtual radio sub-interface on RNode multi-interface device. Ports RNodeSubInterface from RNS/Interfaces/RNodeMultiInterface.py.
Constants
HIGH_FREQ_MAX = 2600000000_i64
HIGH_FREQ_MIN = 2200000000_i64
LOW_FREQ_MAX = 1000000000_i64
LOW_FREQ_MIN = 137000000_i64
Q_SNR_MAX = 6
Q_SNR_MIN_BASE = -9
Q_SNR_STEP = 2
RSSI_OFFSET = 157
Constructors
new(name : String = "", parent_interface : RNodeMultiInterface = RNodeMultiInterface.new("", ""), index : Int32 = 0, interface_type : String = "SX127X", frequency : Int64 | Nil = nil, bandwidth : Int64 | Nil = nil, txpower : Int32 | Nil = nil, sf : Int32 | Nil = nil, cr : Int32 | Nil = nil, flow_control : Bool = false, st_alock : Float64 | Nil = nil, lt_alock : Float64 | Nil = nil)
SourceInstance methods
bandwidth
Sourcebitrate_kbps
Sourceconfigure_device
Sourcecr
Sourcedetected
Sourcedir_in
Sourcedir_out
Sourceflow_control
Sourcefrequency
Sourceindex
Sourceinit_radio
Sourceinterface_ready
Sourceinterface_type
Sourcelt_alock
Sourcepacket_queue
Sourceprocess_outgoing(data : Bytes)
Send data out through the interface. Subclasses must implement this.
process_queue
Sourcer_airtime_long
Sourcer_airtime_short
Sourcer_bandwidth
Sourcer_channel_load_long
Sourcer_channel_load_short
Sourcer_cr
Sourcer_csma_slot_time_ms
Sourcer_frequency
Sourcer_lock
Sourcer_lt_alock
Sourcer_preamble_symbols
Sourcer_premable_time_ms
Sourcer_sf
Sourcer_st_alock
Sourcer_stat_q
Sourcer_stat_rssi
Sourcer_stat_rx
Sourcer_stat_snr
Sourcer_stat_tx
Sourcer_state
Sourcer_symbol_rate
Sourcer_symbol_time_ms
Sourcer_txpower
Sourcernode_parent
Sourcernode_parent=(rnode_parent : RNodeMultiInterface)
Sourcesf
Sourcest_alock
Sourcestate
Sourceto_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
txpower
Sourceupdate_bitrate
Sourcevalidate_radio_state
Source