osdp_cp_send_command

Function osdp_cp_send_command 

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

@brief Generic command enqueue API.

@param ctx OSDP context @param pd PD offset (0-indexed) of this PD in osdp_pd_info_t * passed to osdp_cp_setup() @param cmd command pointer. Must be filled by application.

@retval 0 on success @retval -1 on failure

@note This method only adds the command on to a particular PD’s command queue. The command itself can fail due to various reasons.