Struct libosdp_sys::osdp_cmd_led_params
source · #[repr(C)]pub struct osdp_cmd_led_params {
pub control_code: u8,
pub on_count: u8,
pub off_count: u8,
pub on_color: u8,
pub off_color: u8,
pub timer_count: u16,
}Expand description
@brief LED params sub-structure. Part of LED command. See @ref osdp_cmd_led.
Fields§
§control_code: u8Control code.
Temporary Control Code:
- 0 - NOP - do not alter this LED’s temporary settings.
- 1 - Cancel any temporary operation and display this LED’s permanent state immediately.
- 2 - Set the temporary state as given and start timer immediately.
Permanent Control Code:
- 0 - NOP - do not alter this LED’s permanent settings.
- 1 - Set the permanent state as given.
on_count: u8The ON duration of the flash, in units of 100 ms.
off_count: u8The OFF duration of the flash, in units of 100 ms.
on_color: u8Color to set during the ON timer (see @ref osdp_led_color_e).
off_color: u8Color to set during the OFF timer (see @ref osdp_led_color_e).
timer_count: u16Time in units of 100 ms (only for temporary mode).
Trait Implementations§
source§impl Clone for osdp_cmd_led_params
impl Clone for osdp_cmd_led_params
source§fn clone(&self) -> osdp_cmd_led_params
fn clone(&self) -> osdp_cmd_led_params
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_led_params
impl Debug for osdp_cmd_led_params
impl Copy for osdp_cmd_led_params
Auto Trait Implementations§
impl Freeze for osdp_cmd_led_params
impl RefUnwindSafe for osdp_cmd_led_params
impl Send for osdp_cmd_led_params
impl Sync for osdp_cmd_led_params
impl Unpin for osdp_cmd_led_params
impl UnwindSafe for osdp_cmd_led_params
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