pub unsafe extern "C" fn infrared_check_decoder_ready(
handler: *mut InfraredDecoderHandler,
) -> *const InfraredMessageExpand description
Check whether decoder is ready. Functionality is quite similar to infrared_decode(), but with no timing providing. Some protocols (e.g. Sony SIRC) has variable payload length, which means we can’t recognize end of message right after receiving last bit. That’s why application should call to infrared_check_decoder_ready() after some timeout to retrieve decoded message, if so.
§Arguments
handler(direction in) - - handler to INFRARED decoders. Should be acquired withinfrared_alloc_decoder().
§Returns
if message is ready, returns pointer to decoded message, returns NULL. Note: ownership of returned ptr belongs to handler. So pointer is valid up to next infrared_free_decoder(), infrared_reset_decoder(), infrared_decode(), infrared_check_decoder_ready() calls.