Struct libosdp_sys::osdp_pd_info_t
source · #[repr(C)]pub struct osdp_pd_info_t {
pub name: *const c_char,
pub baud_rate: c_int,
pub address: c_int,
pub flags: c_int,
pub id: osdp_pd_id,
pub cap: *const osdp_pd_cap,
pub channel: osdp_channel,
pub scbk: *const u8,
}Expand description
@brief OSDP PD Information. This struct is used to describe a PD to LibOSDP.
Fields§
§name: *const c_charUser provided name for this PD (log messages include this name)
baud_rate: c_intCan be one of 9600/19200/38400/57600/115200/230400
address: c_int7 bit PD address. the rest of the bits are ignored. The special address 0x7F is used for broadcast. So there can be 2^7-1 devices on a multi-drop channel
flags: c_intUsed to modify the way the context is setup. See OSDP_FLAG_*
macros.
id: osdp_pd_idStatic information that the PD reports to the CP when it received a
CMD_ID. These information must be populated by a PD application.
cap: *const osdp_pd_capThis is a pointer to an array of structures containing the PD’ capabilities. Use { -1, 0, 0 } to terminate the array. This is used only PD mode of operation
channel: osdp_channelCommunication channel ops structure, containing send/recv function pointers
scbk: *const u8Pointer to 16 bytes of Secure Channel Base Key for the PD. If non-null, this is used to set-up the secure channel.
Trait Implementations§
source§impl Clone for osdp_pd_info_t
impl Clone for osdp_pd_info_t
source§fn clone(&self) -> osdp_pd_info_t
fn clone(&self) -> osdp_pd_info_t
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more