librpipErrorGetCode

uint32_t librpipErrorGetCode(void);

Description

This function returns the error code set by a previous function.

Parameters

None.

Returns

The error code. See the Error Code description page for details on an actual code.

Example

Attempt to toggle an invalid GPIO pin and get the resultant error code.

uint32_t error=0;
if(!librpipGpioPinToggle(32)) {
        error=librpipErrorGetCode();
}