pub struct CellularConfig {
pub enable_lte: u8,
pub enable_pin: u8,
pub pin: [u8; 16],
pub new_pin: [u8; 16],
pub apn: [u8; 32],
pub puk: [u8; 16],
pub roaming: u8,
pub response: CellularConfigResponse,
}Expand description
MAVLink CELLULAR_CONFIG message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Configure cellular modems. This message is re-emitted as an acknowledgement by the modem. The message may also be explicitly requested using MAV_CMD_REQUEST_MESSAGE.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
CellularConfig (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§enable_lte: u8MAVLink field enable_lte.
Enable/disable LTE. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response.
enable_pin: u8MAVLink field enable_pin.
Enable/disable PIN on the SIM card. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response.
pin: [u8; 16]MAVLink field pin.
PIN sent to the SIM card. Blank when PIN is disabled. Empty when message is sent back as a response.
new_pin: [u8; 16]MAVLink field new_pin.
New PIN when changing the PIN. Blank to leave it unchanged. Empty when message is sent back as a response.
apn: [u8; 32]MAVLink field apn.
Name of the cellular APN. Blank to leave it unchanged. Current APN when sent back as a response.
puk: [u8; 16]MAVLink field puk.
Required PUK code in case the user failed to authenticate 3 times with the PIN. Empty when message is sent back as a response.
roaming: u8MAVLink field roaming.
Enable/disable roaming. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response.
response: CellularConfigResponseMAVLink field response.
Message acceptance response (sent back to GS).
Implementations§
Source§impl CellularConfig
impl CellularConfig
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 CellularConfig
impl Clone for CellularConfig
Source§fn clone(&self) -> CellularConfig
fn clone(&self) -> CellularConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CellularConfig
impl Debug for CellularConfig
Source§impl Default for CellularConfig
impl Default for CellularConfig
Source§impl<'de> Deserialize<'de> for CellularConfig
impl<'de> Deserialize<'de> for CellularConfig
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<CellularConfig> for Common
impl From<CellularConfig> for Common
Source§fn from(value: CellularConfig) -> Self
fn from(value: CellularConfig) -> Self
Source§impl IntoPayload for CellularConfig
impl IntoPayload for CellularConfig
Source§impl MessageSpec for CellularConfig
impl MessageSpec for CellularConfig
Source§impl MessageSpecStatic for CellularConfig
impl MessageSpecStatic for CellularConfig
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 CellularConfig
impl NamedType for CellularConfig
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 CellularConfig
impl PartialEq for CellularConfig
Source§impl Serialize for CellularConfig
impl Serialize for CellularConfig
Source§impl TryFrom<&Payload> for CellularConfig
impl TryFrom<&Payload> for CellularConfig
Source§impl Type for CellularConfig
impl Type for CellularConfig
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.