Documentation
PD Info
osdp_pd_info_t is a user-provided structure that describes how the PD is tobe set up. In CP mode, the app describes the PDs it wants to communicate withusing an array of osdp_pd_info_t structures.
OSDP PD Information. This struct is used to describe a PD to LibOSDP.
const char * nameint baud_rateint addressint flagsstruct osdp_pd_id idconst struct osdp_pd_cap * capconst uint8_t * scbkSetup Flags
OSDP setup in CP or PD mode can be influenced by the following flags (set inosdp_pd_info_t::flags). Some are effective only in CP or PD mode — seeindividual flag documentation below.
0x00010000OSDP setup flags. See osdp_pd_info_t::flags.
0x00020000When set, the PD would allow one session of secure channel to be setup with SCBK-D.
0x00040000When set, CP will not error and fail when the PD sends an unknown, unsolicited response (in response to osdp_POLL command).
0x00080000Enable LibOSDP-synthesized notifications - osdp_notification - to be reported to the application.
0x00100000Capture raw osdp packets as seen by this device to a pcap file. LibOSDP must be built with OPT_OSDP_PACKET_TRACE or OPT_OSDP_DATA_TRACE for this flag to be in effect.
0x00200000Allow an empty encrypted data block(SCS_17 and SCS_18 packets). This is non-conforming to the standard. If there is no data to be transferred, the CP should instead use the SCS_15/SCS_16 messages. Some OSDP implementations are buggy and send a 0-length data block with the SCS_17 and SCS_18 messages, this flag accepts that buggy behavior.
define::OSDP_FLAG_APP_OWNED_CMD_EVENT_DATAOSDP_FLAG_APP_OWNED_CMD_EVENT_DATA is effective only when LibOSDP is usedwith app-owned queue payload semantics (the default behavior).