pps_decoder_status()

Updated: April 19, 2023

Return the current error status of the decoder

Synopsis:

#include <sys/pps.h>
            
pps_decoder_error_t pps_decoder_status(
                                    pps_decoder_t *decoder,
                                    bool clear);

Arguments:

decoder
A pointer to the PPS decoder structure.
clear
Flag to indicate whether the error status should be reset. To reset, set to true. To leave the error status intact, set to false.

Library:

libpps

Description:

The function pps_decoder_status() returns the current error status of the decoder. If an error occurs during an attempt to extract data or push into objects, the decoder is set to an error state. Rather than check return codes after every operation, you can perform a series and then check if the entire set completed successfully.

Returns:

The error status of the decoder. See pps_decoder_error_t.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes