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 struct osdp_cmd_led
@param control_code One of the following: 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 @param on_count The ON duration of the flash, in units of 100 ms @param off_count The OFF duration of the flash, in units of 100 ms @param on_color Color to set during the ON timer (enum osdp_led_color_e) @param off_color Color to set during the OFF timer (enum osdp_led_color_e) @param timer_count Time in units of 100 ms (only for temporary mode)
Fields§
§control_code: u8§on_count: u8§off_count: u8§on_color: u8§off_color: u8§timer_count: u16Trait 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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more