Lely core libraries 2.3.4
io_can_chan_read_result Struct Reference

The result of a CAN channel read operation. More...

#include <can.h>

Data Fields

int result
 The result of the read operation: 1 if a CAN frame is received, 0 if an error frame is received, or -1 on error (or if the operation is canceled). More...
 
int errc
 The error number, obtained as if by get_errc(), if result is -1.
 

Detailed Description

The result of a CAN channel read operation.

Definition at line 62 of file can.h.

Field Documentation

◆ result

int io_can_chan_read_result::result

The result of the read operation: 1 if a CAN frame is received, 0 if an error frame is received, or -1 on error (or if the operation is canceled).

In the latter case, the error number is stored in errc.

Definition at line 68 of file can.h.


The documentation for this struct was generated from the following file: