osdp_cp_setup

Function osdp_cp_setup 

Source
pub unsafe extern "C" fn osdp_cp_setup(
    num_pd: c_int,
    info: *const osdp_pd_info_t,
) -> *mut osdp_t
Expand description

@brief This method is used to setup a device in CP mode. Application must store the returned context pointer and pass it back to all OSDP functions intact.

@param num_pd Number of PDs connected to this CP. The osdp_pd_info_t * is treated as an array of length num_pd. @param info Pointer to info struct populated by application.

@retval OSDP Context on success @retval NULL on errors