Struct sbp::messages::piksi::msg_front_end_gain::MsgFrontEndGain
source · [−]pub struct MsgFrontEndGain {
pub sender_id: Option<u16>,
pub rf_gain: [i8; 8],
pub if_gain: [i8; 8],
}
Expand description
RF AGC status
This message describes the gain of each channel in the receiver frontend. Each gain is encoded as a non-dimensional percentage relative to the maximum range possible for the gain stage of the frontend. By convention, each gain array has 8 entries and the index of the array corresponding to the index of the rf channel in the frontend. A gain of 127 percent encodes that rf channel is not present in the hardware. A negative value implies an error for the particular gain stage as reported by the frontend.
Fields
sender_id: Option<u16>
The message sender_id
rf_gain: [i8; 8]
RF gain for each frontend channel
if_gain: [i8; 8]
Intermediate frequency gain for each frontend channel
Trait Implementations
sourceimpl Clone for MsgFrontEndGain
impl Clone for MsgFrontEndGain
sourcefn clone(&self) -> MsgFrontEndGain
fn clone(&self) -> MsgFrontEndGain
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConcreteMessage for MsgFrontEndGain
impl ConcreteMessage for MsgFrontEndGain
sourceconst MESSAGE_TYPE: u16 = 191u16
const MESSAGE_TYPE: u16 = 191u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_FRONT_END_GAIN"
const MESSAGE_NAME: &'static str = "MSG_FRONT_END_GAIN"
The message name.
sourceimpl Debug for MsgFrontEndGain
impl Debug for MsgFrontEndGain
sourceimpl From<MsgFrontEndGain> for Sbp
impl From<MsgFrontEndGain> for Sbp
sourcefn from(msg: MsgFrontEndGain) -> Self
fn from(msg: MsgFrontEndGain) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgFrontEndGain
impl SbpMessage for MsgFrontEndGain
sourcefn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
sourcefn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type.
sourcefn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgFrontEndGain
impl Send for MsgFrontEndGain
impl Sync for MsgFrontEndGain
impl Unpin for MsgFrontEndGain
impl UnwindSafe for MsgFrontEndGain
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more