Struct libosdp_sys::osdp_cmd_buzzer
source · #[repr(C)]pub struct osdp_cmd_buzzer {
pub reader: u8,
pub control_code: u8,
pub on_count: u8,
pub off_count: u8,
pub rep_count: u8,
}Expand description
@brief Sent from CP to control the behaviour of a buzzer in the PD.
@param reader 0 = First Reader, 1 = Second Reader, etc. @param control_code 0: no tone, 1: off, 2: default tone, 3+ is TBD. @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 rep_count The number of times to repeat the ON/OFF cycle; 0: forever
Fields§
§reader: u8§control_code: u8§on_count: u8§off_count: u8§rep_count: u8Trait Implementations§
source§impl Clone for osdp_cmd_buzzer
impl Clone for osdp_cmd_buzzer
source§fn clone(&self) -> osdp_cmd_buzzer
fn clone(&self) -> osdp_cmd_buzzer
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_buzzer
impl Debug for osdp_cmd_buzzer
impl Copy for osdp_cmd_buzzer
Auto Trait Implementations§
impl RefUnwindSafe for osdp_cmd_buzzer
impl Send for osdp_cmd_buzzer
impl Sync for osdp_cmd_buzzer
impl Unpin for osdp_cmd_buzzer
impl UnwindSafe for osdp_cmd_buzzer
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