#[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.
Fields§
§reader: u8Reader number. 0 = First Reader, 1 = Second Reader, etc.
control_code: u8Control code.
- 0 - no tone
- 1 - off
- 2 - default tone
- 3+ - TBD
on_count: u8The ON duration of the sound, in units of 100 ms.
off_count: u8The OFF duration of the sound, in units of 100 ms.
rep_count: u8The number of times to repeat the ON/OFF cycle; 0: forever.
Trait 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 Freeze for osdp_cmd_buzzer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)