pub struct InitData {
pub api_version: u8,
pub capabilities: u8,
pub nodes: Vec<NodeId>,
pub chip_type: Option<u8>,
pub chip_version: Option<u8>,
}Expand description
Response to GET_INIT_DATA.
Fields§
§api_version: u8Serial API version.
capabilities: u8Capability flags.
nodes: Vec<NodeId>Nodes in the network.
chip_type: Option<u8>Chip type (e.g. 0x07 for 700 series, 0x08 for 800 series).
chip_version: Option<u8>Chip version.
Implementations§
Source§impl InitData
impl InitData
Sourcepub fn is_end_node(&self) -> bool
pub fn is_end_node(&self) -> bool
The controller runs the end node (slave) API, not a controller API.
Sourcepub fn is_secondary(&self) -> bool
pub fn is_secondary(&self) -> bool
The controller is a secondary controller.
Trait Implementations§
impl Eq for InitData
impl StructuralPartialEq for InitData
Auto Trait Implementations§
impl Freeze for InitData
impl RefUnwindSafe for InitData
impl Send for InitData
impl Sync for InitData
impl Unpin for InitData
impl UnsafeUnpin for InitData
impl UnwindSafe for InitData
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