#[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.
Fields§
§output_no: u8
0 = First Output, 1 = Second Output, etc.
control_code: u8
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
timer_count: u16
Time in units of 100 ms
Trait 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 duplicate 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 Freeze for osdp_cmd_output
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