osdp_cp_disable_pd

Function osdp_cp_disable_pd 

Source
pub unsafe extern "C" fn osdp_cp_disable_pd(
    ctx: *mut osdp_t,
    pd: c_int,
) -> c_int
Expand description

@brief Disable a PD managed by the CP. Disabled PDs are brought to a safe state and will not process commands or generate events.

@param ctx OSDP context @param pd PD offset (0-indexed) of this PD in osdp_pd_info_t * passed to osdp_cp_setup()

@retval 0 on success @retval -1 on failure