pub struct CanFilterModify {
pub target_system: u8,
pub target_component: u8,
pub bus: u8,
pub operation: CanFilterOp,
pub num_ids: u8,
pub ids: [u16; 16],
}Expand description
MAVLink CAN_FILTER_MODIFY message.
Minimum supported MAVLink version is MAVLink 2.
§Description
Modify the filter of what CAN messages to forward over the mavlink. This can be used to make CAN forwarding work well on low bandwidth links. The filtering is applied on bits 8 to 24 of the CAN id (2nd and 3rd bytes) which corresponds to the DroneCAN message ID for DroneCAN. Filters with more than 16 IDs can be constructed by sending multiple CAN_FILTER_MODIFY messages.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
CanFilterModify (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§target_system: u8MAVLink field target_system.
System ID.
target_component: u8MAVLink field target_component.
Component ID.
bus: u8MAVLink field bus.
bus number
operation: CanFilterOpMAVLink field operation.
what operation to perform on the filter list. See CAN_FILTER_OP enum.
num_ids: u8MAVLink field num_ids.
number of IDs in filter list
ids: [u16; 16]MAVLink field ids.
filter IDs, length num_ids
Implementations§
Source§impl CanFilterModify
impl CanFilterModify
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> MessageId
pub const fn message_id() -> MessageId
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for CanFilterModify
impl Clone for CanFilterModify
Source§fn clone(&self) -> CanFilterModify
fn clone(&self) -> CanFilterModify
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CanFilterModify
impl Debug for CanFilterModify
Source§impl Default for CanFilterModify
impl Default for CanFilterModify
Source§impl<'de> Deserialize<'de> for CanFilterModify
impl<'de> Deserialize<'de> for CanFilterModify
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<CanFilterModify> for Common
impl From<CanFilterModify> for Common
Source§fn from(value: CanFilterModify) -> Self
fn from(value: CanFilterModify) -> Self
Source§impl IntoPayload for CanFilterModify
impl IntoPayload for CanFilterModify
Source§impl MessageSpec for CanFilterModify
impl MessageSpec for CanFilterModify
Source§impl MessageSpecStatic for CanFilterModify
impl MessageSpecStatic for CanFilterModify
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> MessageId
fn message_id() -> MessageId
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for CanFilterModify
impl NamedType for CanFilterModify
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for CanFilterModify
impl PartialEq for CanFilterModify
Source§impl Serialize for CanFilterModify
impl Serialize for CanFilterModify
Source§impl TryFrom<&Payload> for CanFilterModify
impl TryFrom<&Payload> for CanFilterModify
Source§impl Type for CanFilterModify
impl Type for CanFilterModify
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.