linux

canReadStatus

Syntax


#include <canlib.h>
canStatus canReadStatus(int handle, unsigned long* flags);

Description

Returns the status for the specified circuit. flags points to a longword which receives a combination of the canSTAT_xxx flags.

Input Parameters

handle
A handle to an open circuit.
Input/Output Parameters

flags
Pointer to an UNSIGNED INT which receives the status flags; this is a combination of any of the canSTAT_xxx flags.
Return Value

canOK (zero) if success
canERR_xxx (negative) if failure.