Struct mavlink::common::CELLULAR_CONFIG_DATA
source · pub struct CELLULAR_CONFIG_DATA {
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,
}
common
only.Expand description
id: 336 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..
Fields§
§enable_lte: u8
Enable/disable LTE. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response..
enable_pin: u8
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]
PIN sent to the SIM card. Blank when PIN is disabled. Empty when message is sent back as a response..
new_pin: [u8; 16]
New PIN when changing the PIN. Blank to leave it unchanged. Empty when message is sent back as a response..
apn: [u8; 32]
Name of the cellular APN. Blank to leave it unchanged. Current APN when sent back as a response..
puk: [u8; 16]
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: u8
Enable/disable roaming. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response..
response: CellularConfigResponse
Message acceptance response (sent back to GS)..
Implementations§
source§impl CELLULAR_CONFIG_DATA
impl CELLULAR_CONFIG_DATA
pub const ENCODED_LEN: usize = 84usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for CELLULAR_CONFIG_DATA
impl Clone for CELLULAR_CONFIG_DATA
source§fn clone(&self) -> CELLULAR_CONFIG_DATA
fn clone(&self) -> CELLULAR_CONFIG_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CELLULAR_CONFIG_DATA
impl Debug for CELLULAR_CONFIG_DATA
source§impl Default for CELLULAR_CONFIG_DATA
impl Default for CELLULAR_CONFIG_DATA
source§impl<'de> Deserialize<'de> for CELLULAR_CONFIG_DATA
impl<'de> Deserialize<'de> for CELLULAR_CONFIG_DATA
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 MessageData for CELLULAR_CONFIG_DATA
impl MessageData for CELLULAR_CONFIG_DATA
const ID: u32 = 336u32
const NAME: &'static str = "CELLULAR_CONFIG"
const EXTRA_CRC: u8 = 245u8
const ENCODED_LEN: usize = 84usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for CELLULAR_CONFIG_DATA
impl PartialEq for CELLULAR_CONFIG_DATA
source§impl Serialize for CELLULAR_CONFIG_DATA
impl Serialize for CELLULAR_CONFIG_DATA
impl StructuralPartialEq for CELLULAR_CONFIG_DATA
Auto Trait Implementations§
impl Freeze for CELLULAR_CONFIG_DATA
impl RefUnwindSafe for CELLULAR_CONFIG_DATA
impl Send for CELLULAR_CONFIG_DATA
impl Sync for CELLULAR_CONFIG_DATA
impl Unpin for CELLULAR_CONFIG_DATA
impl UnwindSafe for CELLULAR_CONFIG_DATA
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)