pub struct VtxTelemetry {
pub origin_address: u8,
pub power_dbm: u8,
pub frequency_mhz: u16,
pub pit_mode: bool,
pub pitmode_control: u8,
pub pitmode_switch: u8,
}Expand description
Represents a VTX Telemetry packet.
Fields§
§origin_address: u8Origin device address.
power_dbm: u8VTX power in dBm.
frequency_mhz: u16VTX frequency in MHz.
pit_mode: boolPit mode status (0=Off, 1=On).
pitmode_control: u8Pit mode control (0=Off, 1=On, 2=Switch, 3=Failsafe).
pitmode_switch: u8Pit mode switch (0=Ch5, 1=Ch5 Inv, …).
Implementations§
Trait Implementations§
Source§impl Clone for VtxTelemetry
impl Clone for VtxTelemetry
Source§fn clone(&self) -> VtxTelemetry
fn clone(&self) -> VtxTelemetry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CrsfPacket for VtxTelemetry
impl CrsfPacket for VtxTelemetry
Source§const PACKET_TYPE: PacketType = PacketType::VtxTelemetry
const PACKET_TYPE: PacketType = PacketType::VtxTelemetry
The CRSF frame type identifier for this packet.
Source§const MIN_PAYLOAD_SIZE: usize = 5usize
const MIN_PAYLOAD_SIZE: usize = 5usize
The minimum expected length of the packet’s payload in bytes.
For fixed-size packets, this is the same as the payload size.
fn to_bytes(&self, buffer: &mut [u8]) -> Result<usize, CrsfParsingError>
Source§fn from_bytes(data: &[u8]) -> Result<Self, CrsfParsingError>
fn from_bytes(data: &[u8]) -> Result<Self, CrsfParsingError>
Creates a packet instance from a payload byte slice.
The slice is guaranteed to have a length of at least
MIN_PAYLOAD_SIZE.fn validate_buffer_size(&self, buffer: &[u8]) -> Result<(), CrsfParsingError>
Source§impl Debug for VtxTelemetry
impl Debug for VtxTelemetry
Source§impl PartialEq for VtxTelemetry
impl PartialEq for VtxTelemetry
impl StructuralPartialEq for VtxTelemetry
Auto Trait Implementations§
impl Freeze for VtxTelemetry
impl RefUnwindSafe for VtxTelemetry
impl Send for VtxTelemetry
impl Sync for VtxTelemetry
impl Unpin for VtxTelemetry
impl UnwindSafe for VtxTelemetry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more