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.
@param name User provided name for this PD (log messages include this name)
@param baud_rate Can be one of 9600/19200/38400/57600/115200/230400
@param address 7 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
@param flags Used to modify the way the context is setup. See OSDP_FLAG_XXX
@param id Static information that the PD reports to the CP when it received a
CMD_ID. These information must be populated by a PD application.
@param cap This 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
@param channel Communication channel ops structure, containing send/recv
function pointers.
@param scbk Pointer to 16 bytes of Secure Channel Base Key for the PD. If
non-null, this is used to set-up the secure channel.
Fields§
§name: *const c_char§baud_rate: c_int§address: c_int§flags: c_int§id: osdp_pd_id§cap: *const osdp_pd_cap§channel: osdp_channel§scbk: *const u8Trait 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