Struct ethercat_sys::ec_master_state_t
source · #[repr(C)]pub struct ec_master_state_t {
pub slaves_responding: c_uint,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 3],
}
Expand description
Master state.
This is used for the output parameter of ecrt_master_state().
\see ecrt_master_state().
Fields§
§slaves_responding: c_uint
< Sum of responding slaves on all Ethernet devices.
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§__bindgen_padding_0: [u8; 3]
Implementations§
source§impl ec_master_state_t
impl ec_master_state_t
pub fn al_states(&self) -> c_uint
pub fn set_al_states(&mut self, val: c_uint)
pub fn link_up(&self) -> c_uint
pub fn set_link_up(&mut self, val: c_uint)
pub fn new_bitfield_1( al_states: c_uint, link_up: c_uint ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
source§impl Clone for ec_master_state_t
impl Clone for ec_master_state_t
source§fn clone(&self) -> ec_master_state_t
fn clone(&self) -> ec_master_state_t
Returns a copy 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 Default for ec_master_state_t
impl Default for ec_master_state_t
source§fn default() -> ec_master_state_t
fn default() -> ec_master_state_t
Returns the “default value” for a type. Read more
impl Copy for ec_master_state_t
Auto Trait Implementations§
impl RefUnwindSafe for ec_master_state_t
impl Send for ec_master_state_t
impl Sync for ec_master_state_t
impl Unpin for ec_master_state_t
impl UnwindSafe for ec_master_state_t
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