Struct libosdp_sys::osdp_cmd_output
source · #[repr(C)]pub struct osdp_cmd_output {
pub output_no: u8,
pub control_code: u8,
pub timer_count: u16,
}Expand description
@brief Command sent from CP to Control digital output of PD.
@param output_no 0 = First Output, 1 = Second Output, etc. @param control_code One of the following: 0 - NOP – do not alter this output 1 - set the permanent state to OFF, abort timed operation (if any) 2 - set the permanent state to ON, abort timed operation (if any) 3 - set the permanent state to OFF, allow timed operation to complete 4 - set the permanent state to ON, allow timed operation to complete 5 - set the temporary state to ON, resume perm state on timeout 6 - set the temporary state to OFF, resume permanent state on timeout @param timer_count Time in units of 100 ms
Fields§
§output_no: u8§control_code: u8§timer_count: u16Trait Implementations§
source§impl Clone for osdp_cmd_output
impl Clone for osdp_cmd_output
source§fn clone(&self) -> osdp_cmd_output
fn clone(&self) -> osdp_cmd_output
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 Debug for osdp_cmd_output
impl Debug for osdp_cmd_output
impl Copy for osdp_cmd_output
Auto Trait Implementations§
impl RefUnwindSafe for osdp_cmd_output
impl Send for osdp_cmd_output
impl Sync for osdp_cmd_output
impl Unpin for osdp_cmd_output
impl UnwindSafe for osdp_cmd_output
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