#[repr(C)]
pub struct RXConfig { /* private fields */ }
Expand description

Configuration values specific to receive

Implementations

Create a new receive configuration

See CommonConfig for valid argument values.

Example
let config = RXConfig::new(433.92, Modulation::OOK, 1.0, 1024, None, None, None, None, None, None, None)?;

Get the common configuration elements

Get a mutable reference to the common configuration elements

Set the configured bandwith in KHz

Valid values are 58,67,81,101,116,135,162,203,232,270,325,406,464,541,650,812

Get the configured bandwidth

Sets the carrier sense threshold in dB.

For CarrierSense::Relative an increase of 6, 10 or 14 dB can be specified. This will begin RX on a sudden increase in RSSI greather than or equal to this value.

For CarrierSense::Absolute a value between -7 dB and 7 dB can be set. When RSSI exceeds magn_target +/- this value, packet RX will begin. max_lna_gain and max_dvga_gain will also require configuring to set the correct absolute RSSI value.

None disables carrier sense.

Get the configured carrier sense

Sets the amount to decrease the maximum LNA gain by approximately the specified amount in dB. Valid values are 0, 3, 6, 7, 9, 12, 15, 17

Get the configured maximum LNA gain

Sets the amount to decrease the maximum DVGA gain by approximately the specified amount in dB. Valid values are 0, 6, 12, 18

Get the configured maximum DVGA gain

Sets the target channel filter amplitude in dB Valid values are 24, 27, 30, 33, 36, 38, 40, 42

Get the configured maximum DVGA gain

Set the length of packets to receive in bytes

Get the configured packet length

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.